This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/14637] [lno] invalid code at -O3


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]