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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com

--- Comment #20 from Uroš Bizjak <ubizjak at gmail dot com> ---
Created attachment 44928
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44928&action=edit
Proposed patch

It turned out that functions, called directly through emit_library_call (as the
above testcase, which builds call to _Unwind_SjLj_Register from
sjlj_emit_function_enter) miss a whole lot of stack realignmnet setup. There is
an update to crtl->preferred_stack_boundary, but several updates for
SUPPORTS_STACK_ALIGNMENT targets are missing, including eventual DRAP setup.

Attached patch fixes the path through emit_library_call.

Can someone please test the patch on SJLJ target?

Reply via email to