re PR target/53811 (ICE: in insn_default_length, at config/i386/i386.md:529 (unrecogn...
authorUros Bizjak <ubizjak@gmail.com>
Tue, 3 Jul 2012 11:58:12 +0000 (13:58 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 3 Jul 2012 11:58:12 +0000 (13:58 +0200)
commit19d7dc0dfadb205e6ab119f930a42732e2787686
tree8289a420b95ae310df243f25e137487982be9460
parent1fcd23ac0dc27ed94b8cf1fe00f5b7b4c3fb9c64
re PR target/53811 (ICE: in insn_default_length, at config/i386/i386.md:529 (unrecognizable insn) with -mcmodel=large)

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.

testsuite/ChangLog:

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

From-SVN: r189218
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr53811.C [new file with mode: 0644]