[Bug c/42908] New: gcc -O2 -Wall doesn't warn about strict aliasing

fejj at novell dot com gcc-bugzilla@gcc.gnu.org
Sat Jan 30 21:54:00 GMT 2010


gcc 4.4.1 doesn't warn about strict aliasing that it encounters with -Wall -O2

See bug #42907.

That -Wall did not warn about the code that it ended up miscompiling.

It should at least warn about strict aliasing when gcc is going to break stuff.


-- 
           Summary: gcc -O2 -Wall doesn't warn about strict aliasing
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fejj at novell dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42908



More information about the Gcc-bugs mailing list