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

--- Comment #17 from Uroš Bizjak <ubizjak at gmail dot com> ---
(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.

Reply via email to