Blame SOURCES/gcc48-rh1469697-13.patch

85359c
	* config/i386/i386.c (ix86_expand_prologue): Tighten assert
85359c
	for int_registers_saved.
85359c
85359c
diff -rup a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
85359c
--- a/gcc/config/i386/i386.c	2017-11-03 10:39:24.585633524 -0600
85359c
+++ b/gcc/config/i386/i386.c	2017-11-03 10:41:10.654774032 -0600
85359c
@@ -10686,8 +10686,12 @@ ix86_expand_prologue (void)
85359c
       && (flag_stack_check == STATIC_BUILTIN_STACK_CHECK
85359c
 	  || flag_stack_clash_protection))
85359c
     {
85359c
-      /* We expect the registers to be saved when probes are used.  */
85359c
-      gcc_assert (int_registers_saved);
85359c
+      /* This assert wants to verify that integer registers were saved
85359c
+	 prior to probing.  This is necessary when probing may be implemented
85359c
+	 as a function call (Windows).  It is not necessary for stack clash
85359c
+	 protection probing.  */
85359c
+      if (!flag_stack_clash_protection)
85359c
+	gcc_assert (int_registers_saved);
85359c
 
85359c
       if (flag_stack_clash_protection)
85359c
 	{