re PR target/63534 (Bootstrap failure on x86_64/i686-linux)
authorEvgeny Stupachenko <evstupac@gmail.com>
Fri, 31 Oct 2014 13:30:06 +0000 (13:30 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 31 Oct 2014 13:30:06 +0000 (13:30 +0000)
commit9a2db19920ccf87adac7ec25807ca0608d9d022e
treefaa0a80a8c3e2c8b636f651c7f2a8d46a39e61c6
parentbae83890e2d8b168f7503acd2df9a460fd5443a3
re PR target/63534 (Bootstrap failure on x86_64/i686-linux)

gcc/

PR target/63534
* config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
(ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
using mcount in 32bit PIC mode.
(ix86_elim_entry_set_got): New.
(ix86_expand_prologue): For the mcount profiling emit new SET_GOT
in PROLOGUE, delete initial if possible.

gcc/testsuite/

PR target/63534
* gcc.target/i386/mcount_pic.c: New.

From-SVN: r216975
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mcount_pic.c [new file with mode: 0644]