summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc/loop.c')
-rw-r--r--gnu/egcs/gcc/loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/loop.c b/gnu/egcs/gcc/loop.c
index 16f4f47481e..4edc9eeee29 100644
--- a/gnu/egcs/gcc/loop.c
+++ b/gnu/egcs/gcc/loop.c
@@ -6204,7 +6204,8 @@ general_induction_var (x, src_reg, add_val, mult_val, is_addr, pbenefit)
#ifndef FRAME_GROWS_DOWNWARD
if (flag_propolice_protection
&& GET_CODE (*add_val) == PLUS
- && XEXP (*add_val, 0) == frame_pointer_rtx)
+ && (XEXP (*add_val, 0) == frame_pointer_rtx
+ || XEXP (*add_val, 1) == frame_pointer_rtx))
return 0;
#endif