diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 1997-11-04 02:11:45 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 1997-11-04 02:11:45 +0000 |
commit | 1686f1a2ae7a6dfacd3fabf85034dcbd71bd45f0 (patch) | |
tree | fe64f0e26214230ce5d505110ea7c5603deaa1d7 /gcc/profile.c | |
parent | a8a63732c4f3ee7af0543a1790f9076363205213 (diff) | |
download | gcc-1686f1a2ae7a6dfacd3fabf85034dcbd71bd45f0.zip gcc-1686f1a2ae7a6dfacd3fabf85034dcbd71bd45f0.tar.gz gcc-1686f1a2ae7a6dfacd3fabf85034dcbd71bd45f0.tar.bz2 |
* profile.c (branch_prob): Insert an insn after a NOTE_INSN_SETJMP.
From-SVN: r16309
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 4de6166..23617ed 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 |