Commit 3a5e4ad6 by Richard Henderson Committed by Richard Henderson

re PR target/49714 (Revision 176128 introduced many ICEs in…

re PR target/49714 (Revision 176128  introduced many ICEs in insn_default_length, at config/i386/i386.md:600)

PR target/49714
        * config/i386/i386.c (x86_output_mi_thunk): Use
        machopic_indirect_call_target instead of machopic_indirection_name
        directly.

From-SVN: r176211
parent 9e9bd455
2011-07-12 Richard Henderson <rth@redhat.com>
PR target/49714
* config/i386/i386.c (x86_output_mi_thunk): Use
machopic_indirect_call_target instead of machopic_indirection_name
directly.
2011-07-12 Laurent GUERBY <laurent@guerby.net> 2011-07-12 Laurent GUERBY <laurent@guerby.net>
Eric Botcazou <ebotcazou@adacore.com> Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -29508,12 +29508,8 @@ x86_output_mi_thunk (FILE *file, ...@@ -29508,12 +29508,8 @@ x86_output_mi_thunk (FILE *file,
#if TARGET_MACHO #if TARGET_MACHO
else if (TARGET_MACHO) else if (TARGET_MACHO)
{ {
rtx sym_ref = XEXP (DECL_RTL (function), 0); fnaddr = machopic_indirect_call_target (DECL_RTL (function));
if (TARGET_MACHO_BRANCH_ISLANDS) fnaddr = XEXP (fnaddr, 0);
sym_ref = (gen_rtx_SYMBOL_REF
(Pmode,
machopic_indirection_name (sym_ref, /*stub_p=*/true)));
fnaddr = gen_rtx_MEM (Pmode, sym_ref);
} }
#endif /* TARGET_MACHO */ #endif /* TARGET_MACHO */
else else
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment