From 76f60aa59ce0edd9aabdbe63e5ec039ffc937c54 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 10 Sep 2004 17:26:54 +0000 Subject: [PATCH] darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead of making the string ourselves. 2004-09-10 Andrew Pinski * config/darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead of making the string ourselves. From-SVN: r87309 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * config/darwin.c (machopic_mcount_stub_name): Call + machopic_indirection_name instead of making the string + ourselves. + 2004-09-10 Diego Novillo 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 -- 2.30.2