powerpcspe.c (rs6000_expand_prologue): Fix thinko in stack clash protection support.

* config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
	thinko in stack clash protection support.

From-SVN: r253036
This commit is contained in:
Jeff Law 2017-09-20 16:06:11 -06:00 committed by Jeff Law
parent 9d2bac69bc
commit 329c9aee73
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2017-09-20 Jeff Law <law@redhat.com>
* config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
thinko in stack clash protection support.
* explow.c (compute_stack_clash_protection_loop_data): Use
CONST_INT_P instead of explicit test. Verify object is a
CONST_INT_P before looking at INTVAL.

View file

@ -29688,7 +29688,7 @@ rs6000_emit_prologue (void)
current_function_static_stack_size = info->total_size;
if (flag_stack_check == STATIC_BUILTIN_STACK_CHECK
|| flag_stack_check_protection)
|| flag_stack_clash_protection)
{
HOST_WIDE_INT size = info->total_size;