From: Andrew Pinski Date: Sat, 29 May 2004 02:55:23 +0000 (+0000) Subject: re PR target/15720 (function marked inline which is called directly isn't emitted) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f935f97b9f5e60a65c37bde6404bfce9e2b02a36;p=gcc.git re PR target/15720 (function marked inline which is called directly isn't emitted) 2005-05-28 Andrew Pinski PR target/15720 * config/darwin.c (machopic_indirect_call_target): Copy the SYMBOL_REF_DECL from the original RTX for the new stub RTX. From-SVN: r82414 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90bc6c33154..36b025cf845 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2005-05-28 Andrew Pinski + + PR target/15720 + * config/darwin.c (machopic_indirect_call_target): Copy + the SYMBOL_REF_DECL from the original RTX for the new + stub RTX. + 2004-05-28 DJ Delorie * stor-layout.c (place_field): Revert erroneous commit. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 89e11ded2e6..7a89615453a 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -583,8 +583,10 @@ machopic_indirect_call_target (rtx target) if (!machopic_name_defined_p (name)) { const char *stub_name = machopic_stub_name (name); + tree decl = SYMBOL_REF_DECL (XEXP (target, 0)); XEXP (target, 0) = gen_rtx_SYMBOL_REF (mode, stub_name); + SYMBOL_REF_DECL (XEXP (target, 0)) = decl; RTX_UNCHANGING_P (target) = 1; } }