https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86386
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> ---
I am testing this patch
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index ee409cfe7e4..9971b369f45 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -13281,8 +13281,7 @@ ix86_finalize_stack_frame_flags (void)
recompute_frame_layout_p = true;
}
}
- else if (crtl->max_used_stack_slot_alignment
- > crtl->preferred_stack_boundary)
+ else if (crtl->max_used_stack_slot_alignment)
{
/* We don't need to realign stack. But we still need to keep
stack frame properly aligned to satisfy the largest alignment