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

--- Comment #17 from Michael Matz <matz at gcc dot gnu.org> ---
(In reply to Ard Biesheuvel from comment #16)
> OK, so in summary, the fallthrough for CM_SMALL_PIC/CM_MEDIUM_PIC should be
> removed, and instead, a 'call mcount@PLT' should be emitted.

That crucially depends on the answer to Alexanders question.  Does the PLT need
to be avoided in all cases, or not?  I can't imagine why it would be so, but
the code before r14-811 explicitly went out of its way to ensure that no PLT
would
be used.  Perhaps there was a reason for that?

> I suppose this should check for -fno-plt as well, and revert to 'call
> *mcount@GOTPCREL(%rip)' in that case?

Reply via email to