aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 8134c4e..2c9deac 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4874,11 +4874,6 @@ init_function_start (tree subr)
/* Expand code to verify the stack_protect_guard. This is invoked at
the end of a function to be protected. */
-#ifndef HAVE_stack_protect_test
-# define HAVE_stack_protect_test 0
-# define gen_stack_protect_test(x, y, z) (gcc_unreachable (), NULL_RTX)
-#endif
-
void
stack_protect_epilogue (void)
{
@@ -4891,13 +4886,12 @@ stack_protect_epilogue (void)
/* Allow the target to compare Y with X without leaking either into
a register. */
- switch (HAVE_stack_protect_test != 0)
+ switch (targetm.have_stack_protect_test ())
{
case 1:
- tmp = gen_stack_protect_test (x, y, label);
- if (tmp)
+ if (rtx_insn *seq = targetm.gen_stack_protect_test (x, y, label))
{
- emit_insn (tmp);
+ emit_insn (seq);
break;
}
/* FALLTHRU */