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