aboutsummaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1999-08-21 00:54:22 +0000
committerJim Wilson <wilson@gcc.gnu.org>1999-08-20 17:54:22 -0700
commit8328efa35757478f4653c9c6857f33ab5bcfd7e5 (patch)
treea1340389959d4f5cd2ed54126caeb7b2bb60e8b4 /gcc/resource.c
parent1f9a015e8368a74b1d47a6bd5eba15eaf5861c5d (diff)
downloadgcc-8328efa35757478f4653c9c6857f33ab5bcfd7e5.zip
gcc-8328efa35757478f4653c9c6857f33ab5bcfd7e5.tar.gz
gcc-8328efa35757478f4653c9c6857f33ab5bcfd7e5.tar.bz2
Fix cse.c/resource.c register lifetime inconsistency.
* resource.c (mark_target_live_regs): Use PIC_OFFSET_TABLE_REG_CALL_CLOBBERED. From-SVN: r28786
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/resource.c b/gcc/resource.c
index f49777e..d200f30 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -967,7 +967,7 @@ mark_target_live_regs (insns, target, res)
#if ARG_POINTER_REGNUM != FRAME_POINTER_REGNUM
&& ! (i == ARG_POINTER_REGNUM && fixed_regs[i])
#endif
-#ifdef PIC_OFFSET_TABLE_REGNUM
+#if defined (PIC_OFFSET_TABLE_REGNUM) && !defined (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED)
&& ! (i == PIC_OFFSET_TABLE_REGNUM && flag_pic)
#endif
)