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/50506] gcc fails at assembly with -O1 while inlining is forced


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.


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