* loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Feb 1998 21:30:22 +0000 (21:30 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Feb 1998 21:30:22 +0000 (21:30 +0000)
        a dangling else clause.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18047 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop.c

index 787f546..910b366 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 efb6b29..ac0df87 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))