]> gcc.gnu.org Git - gcc.git/commitdiff
* profile.c (branch_prob): Insert an insn after a NOTE_INSN_SETJMP.
authorJ"orn Rennecke <amylaar@cygnus.co.uk>
Tue, 4 Nov 1997 02:11:45 +0000 (02:11 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Tue, 4 Nov 1997 02:11:45 +0000 (02:11 +0000)
From-SVN: r16309

gcc/ChangeLog
gcc/profile.c

index e38e428394ff2251fe8e3dcc03a8730ae7154a94..7ed8c837038b5f1415c005db97841e92125504bf 100644 (file)
@@ -1,3 +1,7 @@
+Tue Nov  4 00:55:48 1997  J"orn Rennecke <amylaar@cygnus.co.uk>
+       * 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.
index 4de616625f1d5a42e37b73deaeb3bb144d7f2d6d..23617ede9c9f021a6fc275ed4e3e3afdbf43683a 100644 (file)
@@ -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
This page took 0.064324 seconds and 5 git commands to generate.