i386.c (ix86_expand_prologue): Tighten assert for int_registers_saved.

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

From-SVN: r254386
This commit is contained in:
Jeff Law 2017-11-03 11:14:23 -06:00 committed by Jeff Law
parent ece615ecc6
commit 74a6366d23
2 changed files with 9 additions and 2 deletions

View File

@ -6,6 +6,9 @@
2017-11-03 Jeff Law <law@redhat.com>
* config/i386/i386.c (ix86_expand_prologue): Tighten assert
for int_registers_saved.
* cfganal.c (single_pred_edge_ignoring_loop_edges): New function
extracted from tree-ssa-dom.c.
* cfganal.h (single_pred_edge_ignoring_loop_edges): Prototype.

View File

@ -13167,8 +13167,12 @@ ix86_expand_prologue (void)
&& (flag_stack_check == STATIC_BUILTIN_STACK_CHECK
|| flag_stack_clash_protection))
{
/* We expect the GP registers to be saved when probes are used. */
gcc_assert (int_registers_saved);
/* This assert wants to verify that integer registers were saved
prior to probing. This is necessary when probing may be implemented
as a function call (Windows). It is not necessary for stack clash
protection probing. */
if (!flag_stack_clash_protection)
gcc_assert (int_registers_saved);
if (flag_stack_clash_protection)
{