https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86069

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
   Target Milestone|9.0                         |---

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to mpf from comment #0)
> The obvious/simple solution may well be to mark all conditional branches as
> using the GOT pointer for PIC code but this will effectively disable shrink
> wrapping. To do anything smarter would require handling out-of-range
> branches much earlier which is also unlikely to be a good idea.

But I think this is the only sensible thing to do.  It will only disable
shrink-wrapping for non-local binding function calls but shrink-wrapping
works in a lot of other cases as well.

Possibly other archs have similar issues with their large code/data models.

Reply via email to