Bug 20693 - REGRESSION(r36016): JavaScriptCore no longer builds with GCC 4.2 due to strict aliasing violations
Summary: REGRESSION(r36016): JavaScriptCore no longer builds with GCC 4.2 due to stric...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords: Regression
Depends on:
Blocks:
 
Reported: 2008-09-06 23:28 PDT by Mark Rowe (bdash)
Modified: 2009-03-12 02:38 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Rowe (bdash) 2008-09-06 23:28:01 PDT
The warnings are as follows:
kjs/PropertyMap.h: In member function 'KJS::JSValue* KJS::PropertyMap::getOffset(size_t)':
kjs/PropertyMap.h:102: warning: dereferencing type-punned pointer will break strict-aliasing rules
kjs/PropertyMap.h: In member function 'void KJS::PropertyMap::putOffset(size_t, KJS::JSValue*)':
kjs/PropertyMap.h:107: warning: dereferencing type-punned pointer will break strict-aliasing rules
kjs/PropertyMap.h: In member function 'size_t KJS::PropertyMap::offsetForTableLocation(KJS::JSValue**)':
kjs/PropertyMap.h:133: warning: dereferencing type-punned pointer will break strict-aliasing rules

I believe this was introduced by <http://trac.webkit.org/changeset/36016>.
Comment 1 Sam Weinig 2008-09-07 00:43:11 PDT
I will be fixing this shortly.
Comment 2 Alexey Proskuryakov 2009-03-12 02:31:14 PDT
Is this still an issue?
Comment 3 Mark Rowe (bdash) 2009-03-12 02:38:29 PDT
Nope.  JavaScriptCore has defaulted to GCC 4.2 for a while now, so we'd have noticed if things were broke.