aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-02-17 21:30:22 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-17 14:30:22 -0700
commitb1a0c81697656f8d454c20fd996e627e0e4d5399 (patch)
tree9795fdedcf3b73da470f4f7c1a4bd3026dca9858 /gcc/loop.c
parentc03f75435d00f279ffd70bde36a96b63b7da9a64 (diff)
downloadgcc-b1a0c81697656f8d454c20fd996e627e0e4d5399.zip
gcc-b1a0c81697656f8d454c20fd996e627e0e4d5399.tar.gz
gcc-b1a0c81697656f8d454c20fd996e627e0e4d5399.tar.bz2
loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate a dangling else clause.
* loop.c (rtx_equal_for_loop_p): Add some braces to disambiguate a dangling else clause. From-SVN: r18047
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index efb6b29..ac0df87 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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))