This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/38929] Optimisation with inline function causes invalid behaviour
- From: "gcc at twistedsquare dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2009 17:03:45 -0000
- Subject: [Bug c/38929] Optimisation with inline function causes invalid behaviour
- References: <bug-38929-17214@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from gcc at twistedsquare dot com 2009-01-21 17:03 -------
I tried fiddling with various optimisations. With -O1 the code works fine.
With -O2 the code breaks. With -O2 -fno-tree-vrp it works fine again, so that
may help in finding the bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38929