Closed
Bug 450691
Opened 16 years ago
Closed 11 years ago
SM: using -Wstrict-aliasing=2 by default in optimized builts
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 657806
People
(Reporter: igor, Unassigned)
References
Details
The optimization level -Os, that is used when building with GCC an optimized version of SM, implies -fstrict-aliasing. To avoid any potential surprises leading to incorrect code due to improper aliasing we should consider passing -Wstrict-aliasing=2 when building the engine. This will report false positives (see bug 450392 comment 1), but with just -Wstrict-aliasing=1, enabled with -Wall, real bugs may not be reported by the compiler. Another suggestion is to use -fstrict-aliasing -Wstrict-aliasing=2 with debug builds to have warning as early as possible.
Comment 1•11 years ago
|
||
See more recent discussion in bug 657806.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•