Closed Bug 560504 Opened 15 years ago Closed 15 years ago

JSAPI no longer compiles with Leopard's default compiler

Categories

(Core :: JavaScript Engine, defect)

1.9.2 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wes, Assigned: wes)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

The default compiler being "gcc version 4.0.1 (Apple Inc. build 5465)". I believe this is XCode 3.01. Anyhow, it's what came on my Leopard DVD when I bought this mac. What happen is that it refuses to build jsemit.o, with errors like this: /Users/wes/hg/tracemonkey/js/src/jsemit.cpp:1239: error: ‘JSTreeContext’ has not been declared /Users/wes/hg/tracemonkey/js/src/jsemit.cpp: In function ‘bool inStatement(JSStmtType)’: /Users/wes/hg/tracemonkey/js/src/jsemit.cpp:1241: error: ‘topStmt’ was not declared in this scope This bug was introduced very recently, I believe with change set 341ffe867ea8, Bug 558437 (although I haven't I been completely thorough in verifying that). Jorendorff believes this is a compiler bug; not being a C++ guy I can't comment on that, but I think we should support this compiler if we can.
This winds up being a two-colon fix
Assignee: general → wes
Attachment #440194 - Flags: review?(jorendorff)
Attachment #440194 - Attachment is patch: true
Attachment #440194 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 440194 [details] [diff] [review] Trivial patch to fix I agree with all that.
Attachment #440194 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: