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