summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-31 01:37:22 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-31 01:37:22 +0000
commit930cea6a28b5f3b01d40194e2752a180828c3cc4 (patch)
tree8b8530fcdcc774d7555de65d49d6c342b3297e0e /gcc/loop.c
parentd14afa4889b7a500c3665141d38fd9d56b4dc95d (diff)
downloadgcc-930cea6a28b5f3b01d40194e2752a180828c3cc4.tar.gz
* loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49355 138bc75d-0d04-0410-961f-82ee72b054a4
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;