From: Jeff Law Date: Wed, 20 Sep 2017 22:06:11 +0000 (-0600) Subject: powerpcspe.c (rs6000_expand_prologue): Fix thinko in stack clash protection support. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=329c9aee7390d033fc3f186d72d3fbe2138de80c;p=gcc.git 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 --- 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;