diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e38e428394ff..7ed8c837038b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 4 00:55:48 1997 J"orn Rennecke + + * profile.c (branch_prob): Insert an insn after a NOTE_INSN_SETJMP. + Mon Nov 3 14:36:50 1997 Jeffrey A Law (law@cygnus.com) * configure.in (sco5): Use cpio to install header files. diff --git a/gcc/profile.c b/gcc/profile.c index 4de616625f1d..23617ede9c9f 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