Closed Bug 483956 Opened 15 years ago Closed 15 years ago

gcc 4.4 warnings about "may be undefined" operations

Categories

(Core :: JavaScript Engine, defect)

1.9.1 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: wolfiR, Assigned: Waldo)

Details

(Keywords: fixed1.9.1, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

jstracer.cpp: In function 'bool isPromoteInt(nanojit::LIns*)':
jstracer.cpp:624: warning: operation on 'd' may be undefined
jstracer.cpp: In function 'bool isPromoteUint(nanojit::LIns*)':
jstracer.cpp:631: warning: operation on 'd' may be undefined
On a sidenote I'm a bit confused as jstracer.cpp is not compiled on x86-64 Linux apparently
Hardware: All → x86
Hm, this is pretty bad actually -- we're relying on spec-undefined left-then-right order of evaluation for ==.  Presumably every compiler we've tested against is doing left-then-right, else we'd have had crashes in tests, but this is going to bite us eventually if we keep relying on it.
Assignee: general → jwalden+bmo
Status: NEW → ASSIGNED
Flags: wanted1.9.1?
OS: Linux → All
Hardware: x86 → All
Attached patch PatchSplinter Review
Attachment #368348 - Flags: review?(gal)
jstracer.cpp isn't compiled on x86-64 because JIT isn't going to be supported in 64-bit builds for a little while; with no official 64-bit release and fairly few people running 64-bit OSes it didn't make sense to put special effort into 64-bit right now.
Attachment #368348 - Flags: review?(gal) → review+
http://hg.mozilla.org/tracemonkey/rev/2b3812472561
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/2b3812472561
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: wanted1.9.1? → wanted1.9.1+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: