aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-05-29 02:55:23 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-05-28 19:55:23 -0700
commitf935f97b9f5e60a65c37bde6404bfce9e2b02a36 (patch)
tree39b08373b86eca9d664c77a07b48a1c526c5655f
parentb63e5497f3a01e91c526e52550da7c907737792b (diff)
downloadgcc-f935f97b9f5e60a65c37bde6404bfce9e2b02a36.zip
gcc-f935f97b9f5e60a65c37bde6404bfce9e2b02a36.tar.gz
gcc-f935f97b9f5e60a65c37bde6404bfce9e2b02a36.tar.bz2
re PR target/15720 (function marked inline which is called directly isn't emitted)
2005-05-28 Andrew Pinski <pinskia@physics.uc.edu> 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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/darwin.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 90bc6c3..36b025c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-28 Andrew Pinski <pinskia@physics.uc.edu>
+
+ 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 <dj@redhat.com>
* stor-layout.c (place_field): Revert erroneous commit.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 89e11de..7a89615 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;
}
}