This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14637] [lno] invalid code at -O3
- From: "1319 at bot dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2004 22:06:42 -0000
- Subject: [Bug c/14637] [lno] invalid code at -O3
- References: <20040318164340.14637.1319@bot.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From 1319 at bot dot ru 2004-03-18 22:06 -------
Surely this is miscompilation of gcc itself. I changed BOOT_CFLAGS from '-O3
-fomit-frame-pointer -fno-rename-registers' to '-O2 -fomit-frame-pointer -fweb'
and this 'bug' disappeares.
Reduced testcase for above, obviously invalid, bug is just
static int f () {return 0;}
void g () {f ();}
Is -O3 option supposed to generate invalid code in lno and tree-ssa or this is
something new?
--
What |Removed |Added
----------------------------------------------------------------------------
Component|optimization |c
Summary|[lno][unit-at-a-time] ICE in|[lno] invalid code at -O3
|cgraph_remove_edge, at |
|cgraph.c:292 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14637