diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 15:15:26 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 15:15:26 +0000 |
commit | f8c438a184aa50339f9a4a374658f6df06f42ecf (patch) | |
tree | be8601ff815f749ff05faac53f3097ea2ad6cc7e /gcc/function.c | |
parent | 26f54bd0b95a0b9799a2d1671c36600132398eb1 (diff) | |
download | gcc-f8c438a184aa50339f9a4a374658f6df06f42ecf.tar.gz |
* function.c (expand_function_start): Initialize stack_check_probe_note
only if the generic stack checking mechanism is used.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173661 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 5 |
1 files changed, 2 insertions, 3 deletions
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. */ |