summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a6d96d37967..43c8f688998 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-10 Andrew Pinski <apinski@apple.com>
+
+ * config/darwin.c (machopic_mcount_stub_name): Call
+ machopic_indirection_name instead of making the string
+ ourselves.
+
2004-09-10 Diego Novillo <dnovillo@redhat.com>
Revert
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index cd1d47b66bd..429bddb8fe5 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -361,7 +361,8 @@ machopic_indirection_name (rtx sym_ref, bool stub_p)
const char*
machopic_mcount_stub_name (void)
{
- return "&L*mcount$stub";
+ rtx symbol = gen_rtx_SYMBOL_REF (Pmode, "*mcount");
+ return machopic_indirection_name (symbol, /*stub_p=*/true);
}
/* If NAME is the name of a stub or a non-lazy pointer , mark the stub