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

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: brendan, Assigned: dmandelin)

Tracking

Other Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
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
(Assignee)

Comment 1

8 years ago
Created attachment 474309 [details] [diff] [review]
Patch

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+
(Assignee)

Comment 2

8 years ago
http://hg.mozilla.org/tracemonkey/rev/dc8b793cfe67
Whiteboard: fixed-in-tracemonkey

Comment 3

8 years ago
http://hg.mozilla.org/mozilla-central/rev/dc8b793cfe67
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.