diff options
author | jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-23 21:19:28 +0000 |
---|---|---|
committer | jiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-23 21:19:28 +0000 |
commit | e48d7755e73ef9662306aa7e45e7f4d22361d156 (patch) | |
tree | cee47c2e3367f697da68bb22d63933e9d85870de /gcc/shrink-wrap.c | |
parent | 5bf45fadf3e45d4feb74472862a2fbe7917869b8 (diff) | |
download | gcc-e48d7755e73ef9662306aa7e45e7f4d22361d156.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215533 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/shrink-wrap.c')
-rw-r--r-- | gcc/shrink-wrap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/shrink-wrap.c b/gcc/shrink-wrap.c index fd24135e06a..9ae8a08ec10 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) |