summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 5df08668977..a65595f2a44 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -3230,7 +3230,7 @@ loop_invariant_p (loop, x)
since the reg might be set by initialization within the loop. */
if ((x == frame_pointer_rtx || x == hard_frame_pointer_rtx
- || x == arg_pointer_rtx)
+ || x == arg_pointer_rtx || x == pic_offset_table_rtx)
&& ! current_function_has_nonlocal_goto)
return 1;