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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2026-10-29
     Ever confirmed|0                           |1
                 CC|                            |hjl.tools at gmail dot com,
                   |                            |jakub at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
Untested fix: don’t take the red-zone shortcut in ix86_add_cfa_restore_note for
the hard frame pointer when it is saved via the DRAP expression rule.

  bool expr_rule = (reg == hard_frame_pointer_rtx
                    && crtl->drap_reg != NULL_RTX);

  if (!expr_rule
      && !crtl->shrink_wrapped
      && cfa_offset <= cfun->machine->fs.red_zone_offset)
    return;

Not really my area of expertise, adding some CCs.

Reply via email to