re PR rtl-optimization/14229 (20000504-1.c:15: error: missing barrier after block 1)
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Sat, 28 Feb 2004 09:51:56 +0000 (10:51 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Sat, 28 Feb 2004 09:51:56 +0000 (09:51 +0000)
PR optimization/14229
* cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.

From-SVN: r78605

gcc/ChangeLog
gcc/cfgrtl.c

index 8722e946c578d8b6ebb30083c35316be0ffe2382..6acbafbd5356248378b23fffee98cc97c23987b9 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       PR optimization/14229
+       * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
+
 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
 
        * fold-const.c (fold): Strip NOPs that change the signedness
index f35263f14e0ff2e2d71b6d2357c2a9a97d983829..35d7c9ebe1bebe133e4e8ce75d995c7538204c49 100644 (file)
@@ -1130,11 +1130,6 @@ rtl_tidy_fallthru_edge (edge e)
   rtx q;
   basic_block b = e->src, c = b->next_bb;
 
-  /* If the jump insn has side effects, we can't tidy the edge.  */
-  if (GET_CODE (BB_END (b)) == JUMP_INSN
-      && !onlyjump_p (BB_END (b)))
-    return;
-
   /* ??? In a late-running flow pass, other folks may have deleted basic
      blocks by nopping out blocks, leaving multiple BARRIERs between here
      and the target label. They ought to be chastized and fixed.