gcc produces wrong code when optimizer (O1 O2 or O3) is used. The c-source showing the problem is generated by the flex lexical scanner. Applies to gcc versions 3.0.4, 3.3.5 and 3.4.4 (and maybe others not tested). Tested on Debian/Intel platforms only. On gcc 2.95 and multiple former versions of gcc, the problem does not occur.
-- Summary: Wrong code generated when using optimizer Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: critical Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: buergel at limmat dot ch CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i486-pc-linux-gnu GCC host triplet: i486-pc-linux-gnu GCC target triplet: i486-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24015