From 329c9aee7390d033fc3f186d72d3fbe2138de80c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 20 Sep 2017 16:06:11 -0600 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/config/powerpcspe/powerpcspe.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f0c821fc65..588542c6eef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2017-09-20 Jeff Law + * 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. diff --git a/gcc/config/powerpcspe/powerpcspe.c b/gcc/config/powerpcspe/powerpcspe.c index e235d3c6a82..c7ccda10f7b 100644 --- a/gcc/config/powerpcspe/powerpcspe.c +++ b/gcc/config/powerpcspe/powerpcspe.c @@ -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; -- 2.30.2