OSDN Git Service

* cse.c (cse_insn): Emit barrier after unconditional jump.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2000 01:10:35 +0000 (01:10 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2000 01:10:35 +0000 (01:10 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33433 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cse.c

index 9cbe4c8..921a3d0 100644 (file)
@@ -1,5 +1,7 @@
 2000-04-25  Richard Henderson  <rth@cygnus.com>
 
+        * cse.c (cse_insn): Emit barrier after unconditional jump.
+
        * calls.c (expand_call): Disable tail call generation once
        rtx_equal_function_value_matters is false.
 
index 8c57d79..3e872e2 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -5250,6 +5250,11 @@ cse_insn (insn, libcall_insn)
 
              PATTERN (insn) = gen_jump (XEXP (trial, 0));
              INSN_CODE (insn) = -1;
+
+             if (NEXT_INSN (insn) != 0
+                 && GET_CODE (NEXT_INSN (insn)) != BARRIER)
+               emit_barrier_after (insn);
+
              cse_jumps_altered = 1;
              break;
            }