From: Jiong Wang Date: Tue, 23 Sep 2014 21:19:28 +0000 (+0000) Subject: Fix compile time warning caused by PIC_OFFSET_TABLE_REGNUM be INVALID_REGNUM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6508d6a627a0f4f52c5fb31844d4045fcd5ad7d3;p=gcc.git Fix compile time warning caused by PIC_OFFSET_TABLE_REGNUM be INVALID_REGNUM 2014-09-23 Jiong Wang gcc/ * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not be INVALID_REGNUM. From-SVN: r215533 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2b7b2dd794..4d1c9149c25 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-23 Jiong Wang + + * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not + be INVALID_REGNUM. + 2014-09-23 Thomas Schwinge * configure: Regenerate. 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)