From 1686f1a2ae7a6dfacd3fabf85034dcbd71bd45f0 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Tue, 4 Nov 1997 02:11:45 +0000 Subject: * profile.c (branch_prob): Insert an insn after a NOTE_INSN_SETJMP. From-SVN: r16309 --- 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 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 -- cgit v1.1