------- Comment #5 from jv244 at cam dot ac dot uk 2010-03-12 11:41 ------- (In reply to comment #4) > Candidates to try for -O1 vs. -O2 are -f[no-]tree-vrp, -f[no-]tree-pre, > -f[no-]strict-aliasing. You can also rule out inlining effects by > -fno-inline.
no luck :-( -O1 OK -O2 BUG -O2 -fno-inline BUG -O2 -fno-inline -fno-tree-vrp BUG -O2 -fno-inline -fno-tree-vrp -fno-tree-pre BUG -O2 -fno-inline -fno-tree-vrp -fno-tree-pre -fstrict-aliasing BUG -O1 -ftree-vrp -ftree-pre -fno-strict-aliasing OK -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43340