From: Uros Bizjak Date: Thu, 10 Aug 2017 20:52:50 +0000 (+0200) Subject: Rename ix86_split_stack_boundary to ix86_split_stack_guard. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f18f68226c2abb77008da7bd0aef5d7ee905c4c6;p=gcc.git Rename ix86_split_stack_boundary to ix86_split_stack_guard. From-SVN: r251039 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ccb553b909f..f2105979894 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,13 +1,13 @@ 2017-08-10 Uros Bizjak - * config/i386/i386-protos.h (ix86_split_stack_boundary): New prototype. - * config/i386/i386.c (ix86_split_stack_boundary): New function. - (ix86_xpand_split_stack_prologue): Call ix86_split_stack_boundary. + * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype. + * config/i386/i386.c (ix86_split_stack_guard): New function. + (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard. (ix86_legitimate_address_p) : Remove. (i386_asm_output_addr_const_extra) : Ditto. (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling. * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK. - (split_stack_space_check): Call ix86_split_stack_boundary. + (split_stack_space_check): Call ix86_split_stack_guard. 2017-08-10 Martin Sebor diff --git a/gcc/config/i386/i386-protos.h b/gcc/config/i386/i386-protos.h index ae945cb8c9e..2c15ba8505c 100644 --- a/gcc/config/i386/i386-protos.h +++ b/gcc/config/i386/i386-protos.h @@ -201,7 +201,7 @@ extern void ix86_expand_truncdf_32 (rtx, rtx); extern void ix86_expand_vecop_qihi (enum rtx_code, rtx, rtx, rtx); -extern rtx ix86_split_stack_boundary (void); +extern rtx ix86_split_stack_guard (void); #ifdef TREE_CODE extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree, int); diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1204e111bb8..9d59c78cada 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -15785,15 +15785,17 @@ static GTY(()) rtx split_stack_fn; static GTY(()) rtx split_stack_fn_large; -/* Return location of the stack boundary value in the TLS block. */ +/* Return location of the stack guard value in the TLS block. */ rtx -ix86_split_stack_boundary (void) +ix86_split_stack_guard (void) { int offset; addr_space_t as = DEFAULT_TLS_SEG_REG; rtx r; + gcc_assert (flag_split_stack); + #ifdef TARGET_THREAD_SPLIT_STACK_OFFSET offset = TARGET_THREAD_SPLIT_STACK_OFFSET; #else @@ -15838,7 +15840,7 @@ ix86_expand_split_stack_prologue (void) us SPLIT_STACK_AVAILABLE bytes, so if we need less than that we can compare directly. Otherwise we need to do an addition. */ - limit = ix86_split_stack_boundary (); + limit = ix86_split_stack_guard (); if (allocate < SPLIT_STACK_AVAILABLE) current = stack_pointer_rtx; diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 8ccc975049a..3af3b7aed4f 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -12638,7 +12638,7 @@ emit_insn (gen_sub3_insn (reg, stack_pointer_rtx, operands[0])); - operands[2] = ix86_split_stack_boundary (); + operands[2] = ix86_split_stack_guard (); ix86_expand_branch (GEU, reg, operands[2], operands[1]); DONE;