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

--- Comment #18 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Uroš Bizjak from comment #17)
> (In reply to H.J. Lu from comment #16)
> 
> > SHRINK_WRAPPING_ENABLED is for checking if shrink wrapping is enabled.
> True, but we could place mcount at entry only for functions where it is
> strictly required. IIRC, shrink-wrapping is always enabled on x86, so this
> effectively forces -fentry.
> 
> Perhaps a better approach is to error out for -fstack-protector-all -pg
> without -fentry.

It can happen without -fstack-protector-all.

Reply via email to