loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate a dangling else clause.
authorJeffrey A Law <law@cygnus.com>
Tue, 17 Feb 1998 21:30:22 +0000 (21:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 17 Feb 1998 21:30:22 +0000 (14:30 -0700)
        * loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate
        a dangling else clause.

From-SVN: r18047

gcc/ChangeLog
gcc/loop.c

index 787f54626afaace53bb7291867121a23d02f20e5..910b366961f10da4dfc34372bb3ff6a1b8f4b8b1 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb 17 22:31:04 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate
+       a dangling else clause.
+
 Tue Feb 17 21:28:12 1998  Gavin Koch  <gavin@cygnus.com>
 
        * mips/mips.h (CAN_ELIMINATE): Don't eliminate the frame
index efb6b29e6b83e5efe46ce551355d1520872692cd..ac0df8796ac98030ad63917ab0a27a34c37eceef 100644 (file)
@@ -1477,17 +1477,20 @@ rtx_equal_for_loop_p (x, y, movables)
      equal.  */
   if (GET_CODE (x) == REG && n_times_set[REGNO (x)] == -2
       && CONSTANT_P (y))
-    for (m = movables; m; m = m->next)
-      if (m->move_insn && m->regno == REGNO (x)
-         && rtx_equal_p (m->set_src, y))
-       return 1;
-
+    {
+      for (m = movables; m; m = m->next)
+       if (m->move_insn && m->regno == REGNO (x)
+           && rtx_equal_p (m->set_src, y))
+         return 1;
+    }
   else if (GET_CODE (y) == REG && n_times_set[REGNO (y)] == -2
           && CONSTANT_P (x))
-    for (m = movables; m; m = m->next)
-      if (m->move_insn && m->regno == REGNO (y)
-         && rtx_equal_p (m->set_src, x))
-       return 1;
+    {
+      for (m = movables; m; m = m->next)
+       if (m->move_insn && m->regno == REGNO (y)
+           && rtx_equal_p (m->set_src, x))
+         return 1;
+    }
 
   /* Otherwise, rtx's of different codes cannot be equal.  */
   if (code != GET_CODE (y))