summaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-10 17:26:54 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-10 17:26:54 +0000
commit620dd87af85d87853cc1199b7cc6d1e08cf72076 (patch)
treec7c829896e71e90e4b581457fc0c822857375d2f /gcc/config/darwin.c
parent263cbdb8f01c5ffbaee35d0ada4d8c9931897cf4 (diff)
downloadgcc-620dd87af85d87853cc1199b7cc6d1e08cf72076.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87309 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c3
1 files changed, 2 insertions, 1 deletions
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