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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #9 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Uggh - these ancient options in the backend. mapcs-frame is quite ancient
> and isn't really something that's tested very often, no wonder it's rotting.
> In this case we seem to have regressed something that worked earlier,

Yes, indirect tailcalls used to be rejected by the back-end.

> I do wonder if the fix here is to just turn IP regnum into a fixed register in
> the presence of mapcs-frame.

This would only turn the problem into an ICE here.  I think this needs to be
fixed in arm_function_ok_for_sibcall, either in a big-hammer-ish way (disable
again indirect tailcalls with -mapcs-frame) or in a more precise way.

Reply via email to