This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/43340] miscompiled code at -O2
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2010 11:41:31 -0000
- Subject: [Bug middle-end/43340] miscompiled code at -O2
- References: <bug-43340-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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