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

--- Comment #15 from Uroš Bizjak <ubizjak at gmail dot com> ---
Comment on attachment 61783
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61783
A patch to place mcount at the function entry with shrink

>@@ -493,7 +493,7 @@ ix86_using_red_zone (void)
> static bool
> ix86_profile_before_prologue (void)
> {
>-  return flag_fentry != 0;
>+  return (TARGET_64BIT && SHRINK_WRAPPING_ENABLED) || flag_fentry != 0;

Should we use crtl->shrink_wrapped (or crtl->shrink_wrapped_separate) here
instead?

Reply via email to