From 4926b4052b0eb7c71645038a856a62f26a8b79ab Mon Sep 17 00:00:00 2001 From: amylaar Date: Tue, 4 Nov 1997 02:11:45 +0000 Subject: * 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 --- gcc/profile.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/profile.c') 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 -- cgit v1.2.1