From 6d3cc8f0516347d5e1a1dec49e872889967c0136 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 11 May 2011 15:15:26 +0000 Subject: [PATCH] function.c (expand_function_start): Initialize stack_check_probe_note only if the generic stack checking mechanism... * function.c (expand_function_start): Initialize stack_check_probe_note only if the generic stack checking mechanism is used. From-SVN: r173661 --- gcc/ChangeLog | 5 +++++ gcc/function.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09654faf15d..6db1f29e8ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 Eric Botcazou + + * function.c (expand_function_start): Initialize stack_check_probe_note + only if the generic stack checking mechanism is used. + 2011-05-11 Richard Guenther PR tree-optimization/15256 diff --git a/gcc/function.c b/gcc/function.c index ab1ca9ecf52..4b022011743 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4813,9 +4813,8 @@ expand_function_start (tree subr) #endif } - /* After the display initializations is where the stack checking - probe should go. */ - if(flag_stack_check) + /* If we are doing generic stack checking, the probe should go here. */ + if (flag_stack_check == GENERIC_STACK_CHECK) stack_check_probe_note = emit_note (NOTE_INSN_DELETED); /* Make sure there is a line number after the function entry setup code. */ -- 2.30.2