This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/50506] gcc fails at assembly with -O1 while inlining is forced
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Sep 2011 17:16:16 +0000
- Subject: [Bug c/50506] gcc fails at assembly with -O1 while inlining is forced
- Auto-submitted: auto-generated
- References: <bug-50506-4@http.gcc.gnu.org/bugzilla/>
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.