summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1997-11-04 02:11:45 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>1997-11-04 02:11:45 +0000
commit4926b4052b0eb7c71645038a856a62f26a8b79ab (patch)
treefe64f0e26214230ce5d505110ea7c5603deaa1d7 /gcc/profile.c
parente7a26f1b89c189c9e80acc0c7e4e776300ffd2df (diff)
downloadgcc-4926b4052b0eb7c71645038a856a62f26a8b79ab.tar.gz
* profile.c (branch_prob): Insert an insn after a NOTE_INSN_SETJMP.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16309 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 4de616625f1..23617ede9c9 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -818,7 +818,13 @@ branch_prob (f, dump_file)
if (code != NOTE)
prev_code = code;
else if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_SETJMP)
- prev_code = CALL_INSN;
+ {
+ /* Make a fake insn to tag our notes on. */
+ bb_graph[i].first_insn = insn
+ = emit_insn_after (gen_rtx (USE, VOIDmode, stack_pointer_rtx),
+ insn);
+ prev_code = CALL_INSN;
+ }
}
/* If the code at the end of the function would give a new block, then