diff options
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb1a354..c55a6ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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> Eric Botcazou <ebotcazou@adacore.com> diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index e75e1b1..325d901 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -29508,12 +29508,8 @@ x86_output_mi_thunk (FILE *file, #if TARGET_MACHO else if (TARGET_MACHO) { - rtx sym_ref = XEXP (DECL_RTL (function), 0); - if (TARGET_MACHO_BRANCH_ISLANDS) - sym_ref = (gen_rtx_SYMBOL_REF - (Pmode, - machopic_indirection_name (sym_ref, /*stub_p=*/true))); - fnaddr = gen_rtx_MEM (Pmode, sym_ref); + fnaddr = machopic_indirect_call_target (DECL_RTL (function)); + fnaddr = XEXP (fnaddr, 0); } #endif /* TARGET_MACHO */ else |