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

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Some parts of gcc still assume that MS_ABI stack is always aligned to 128bits.

Proposed patch:

--cut here--
@@ -11283,7 +11296,8 @@ ix86_compute_frame_layout (struct ix86_frame *fram
      function prologues and leaf.  */
   if ((TARGET_64BIT_MS_ABI && crtl->preferred_stack_boundary < 128)
       && (!crtl->is_leaf || cfun->calls_alloca != 0
-          || ix86_current_function_calls_tls_descriptor))
+         || ix86_current_function_calls_tls_descriptor
+         || ix86_incoming_stack_boundary < 128))
     {
       crtl->preferred_stack_boundary = 128;
       crtl->stack_alignment_needed = 128;
--cut here--

Reply via email to