The following test case produces wrong result when compiled with -O2 or -O3.
expected result (-O1, or using intel compiler): ReadX: x = -5.9436e+29 [ OK ] WriteX: [ OK ] observed results (-O2 or -O3) ReadX: x = 0 [ FAIL ] WriteX: [ FAIL ] -- Summary: GCC 3.4.4 - Wrong code generated with -O2 and -O3 optimization levels Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: major Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andreg at discreet dot com GCC target triplet: x86_64 linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25862