Closed Bug 595420 Opened 14 years ago Closed 14 years ago

TrampolineCompiler.cpp:71: warning: dereferencing type-punned pointer

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: brendan, Assigned: dmandelin)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Darwin_OPT.OBJ/made:../methodjit/TrampolineCompiler.cpp:71: warning: dereferencing type-punned pointer will break strict-aliasing rules

Sorry if a dup, couldn't find it searching for obvious keywords.

/be
Attached patch PatchSplinter Review
I think this does it. Someday, I would like to know exactly what the strict aliasing rule is, and exactly what it is that GCC allows, which I'm guessing are not the same.

There is a dup, but I WFM'd it because I forgot that I had to do an opt build in order to see this one, so I didn't see it. So let's just fix here.
Assignee: general → dmandelin
Status: NEW → ASSIGNED
Attachment #474309 - Flags: review?(lw)
Attachment #474309 - Flags: review?(lw) → review+
http://hg.mozilla.org/tracemonkey/rev/dc8b793cfe67
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/dc8b793cfe67
Status: ASSIGNED → RESOLVED
Closed: 14 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: