aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2014-09-23 21:19:28 +0000
committerJiong Wang <jiwang@gcc.gnu.org>2014-09-23 21:19:28 +0000
commit6508d6a627a0f4f52c5fb31844d4045fcd5ad7d3 (patch)
treecee47c2e3367f697da68bb22d63933e9d85870de /gcc
parent2a4fa5dcae09e1c819a937e9aeeb5e5551837223 (diff)
downloadgcc-6508d6a627a0f4f52c5fb31844d4045fcd5ad7d3.zip
gcc-6508d6a627a0f4f52c5fb31844d4045fcd5ad7d3.tar.gz
gcc-6508d6a627a0f4f52c5fb31844d4045fcd5ad7d3.tar.bz2
Fix compile time warning caused by PIC_OFFSET_TABLE_REGNUM be INVALID_REGNUM
2014-09-23 Jiong Wang <jiong.wang@arm.com> gcc/ * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not be INVALID_REGNUM. From-SVN: r215533
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/shrink-wrap.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2b7b2d..4d1c914 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-23 Jiong Wang <jiong.wang@arm.com>
+
+ * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
+ be INVALID_REGNUM.
+
2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
* configure: Regenerate.
diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c
index fd24135..9ae8a08 100644
--- a/gcc/shrink-wrap.c
+++ b/gcc/shrink-wrap.c
@@ -495,7 +495,7 @@ try_shrink_wrapping (edge *entry_edge, edge orig_entry_edge,
if (frame_pointer_needed)
add_to_hard_reg_set (&set_up_by_prologue.set, Pmode,
HARD_FRAME_POINTER_REGNUM);
- if (pic_offset_table_rtx)
+ if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
add_to_hard_reg_set (&set_up_by_prologue.set, Pmode,
PIC_OFFSET_TABLE_REGNUM);
if (crtl->drap_reg)