>            * config/i386/i386.c (ix86_expand_prologue): Tighten assert
>            for int_registers_saved.

OK with a small comment addition.

Thanks,
Uros.

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 2967872..ea29ef3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -13168,7 +13168,8 @@ ix86_expand_prologue (void)
   || flag_stack_clash_protection))
     {
       /* We expect the GP registers to be saved when probes are used.  */

Please add a small comment on why this is not needed for stack clash protection.

-      gcc_assert (int_registers_saved);
+      if (!flag_stack_clash_protection)
+ gcc_assert (int_registers_saved);

       if (flag_stack_clash_protection)
  {

Reply via email to