diff options
author | Evgeny Stupachenko <evstupac@gmail.com> | 2014-10-23 16:52:11 +0000 |
---|---|---|
committer | Ilya Verbin <iverbin@gcc.gnu.org> | 2014-10-23 16:52:11 +0000 |
commit | 56873e134278518a658a25bb928b473a51f57b95 (patch) | |
tree | 762dafe16440a2ac39820ecedae967e46f1e97ff /gcc/dce.c | |
parent | 1bc5a4513e09efd42f22ccbc25ff8cd7ec5619f5 (diff) | |
download | gcc-56873e134278518a658a25bb928b473a51f57b95.tar.gz |
re PR target/63534 (Bootstrap failure on x86_64/i686-linux)
PR target/63534
PR target/63618
gcc/
* cse.c (delete_trivially_dead_insns): Consider PIC register is used
while it is pseudo.
* dse.c (deletable_insn_p): Likewise.
gcc/testsuite/
* gcc.target/i386/pr63618.c: New test.
From-SVN: r216596
Diffstat (limited to 'gcc/dce.c')
-rw-r--r-- | gcc/dce.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dce.c b/gcc/dce.c index 5b7d36ee156..a52a59c604d 100644 --- a/gcc/dce.c +++ b/gcc/dce.c @@ -127,6 +127,10 @@ deletable_insn_p (rtx_insn *insn, bool fast, bitmap arg_stores) if (HARD_REGISTER_NUM_P (DF_REF_REGNO (def)) && global_regs[DF_REF_REGNO (def)]) return false; + /* Initialization of pseudo PIC register should never be removed. */ + else if (DF_REF_REG (def) == pic_offset_table_rtx + && REGNO (pic_offset_table_rtx) >= FIRST_PSEUDO_REGISTER) + return false; body = PATTERN (insn); switch (GET_CODE (body)) |