OSDN Git Service

Backport from mainline
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jul 2012 17:53:48 +0000 (17:53 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Jul 2012 17:53:48 +0000 (17:53 +0000)
commit23a4780c5260641f5b24b9a11a1b3b0bce7e12d1
tree62ad5739c3ee13b9f7321943fec829b5efff6502
parent9fde6982a1d0b3dd4e0a814c6deb4477884de945
Backport from mainline
2012-07-03  Uros Bizjak  <ubizjak@gmail.com>

PR target/53811
* config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
sibcall_insn_operand.  Move it to a temporary register if not.

2012-07-06  Uros Bizjak  <ubizjak@gmail.com>

PR target/53853
* config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
emit PIC sequence for fnaddr symbol reference in advance.

testsuite/ChangeLog:

Backport from mainline
2012-07-03  Uros Bizjak  <ubizjak@gmail.com>

PR target/53811
* g++.dg/other/pr53811.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@189412 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr53811.C [new file with mode: 0644]