[Bug c/50506] gcc fails at assembly with -O1 while inlining is forced
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Sep 25 17:20:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50506
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-25 17:16:16 UTC ---
(In reply to comment #9)
> What I'm trying to say is that gcc should either:
> - accept the code even with -fno-ipa-cp
> - reject the code even with -fipa-cp
> - print better diagnostics, if -fipa-cp should be the magic switch to make the
> code work
only -fipa-cp makes us see that the indirect call resolves to an always-inline
function. We could issue an error whenever the out-of-line body of an
always-inline function cannot be removed after optimization, but that would
upset even more people.
More information about the Gcc-bugs
mailing list