OSDN Git Service

2004-09-10 Andrew Pinski <apinski@apple.com>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2004 17:26:54 +0000 (17:26 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Sep 2004 17:26:54 +0000 (17:26 +0000)
        * 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

gcc/ChangeLog
gcc/config/darwin.c

index a6d96d3..43c8f68 100644 (file)
@@ -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
index cd1d47b..429bddb 100644 (file)
@@ -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