https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027
--- Comment #14 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
diff --git a/gcc/cfgexpand.cc b/gcc/cfgexpand.cc
index 0de299c62e3..92062378d8e 100644
--- a/gcc/cfgexpand.cc
+++ b/gcc/cfgexpand.cc
@@ -1214,7 +1214,7 @@ expand_stack_vars (bool (*pred) (size_t), class
stack_vars_data *data)
            {
              if (data->asan_vec.is_empty ())
                {
-                 align_frame_offset (ASAN_RED_ZONE_SIZE);
+                 align_frame_offset (MAX (alignb, ASAN_RED_ZONE_SIZE));
                  prev_offset = frame_offset.to_constant ();
                }
              prev_offset = align_base (prev_offset,


This can fix the issue, but not sure if it's the correct way.

Reply via email to