darwin.c (machopic_mcount_stub_name): Call machopic_indirection_name instead of makin...
authorAndrew Pinski <apinski@apple.com>
Fri, 10 Sep 2004 17:26:54 +0000 (17:26 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Fri, 10 Sep 2004 17:26:54 +0000 (10:26 -0700)
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.

From-SVN: r87309

gcc/ChangeLog
gcc/config/darwin.c

index a6d96d3796744a1dbff8a37bc7e77567665c4efa..43c8f688998504f4e906ff475fd20216cf6e018c 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 cd1d47b66bde698373009fdfe9a39cfd7fb73ec4..429bddb8fe59f8a8dd3b64b3d8c2cebaef669230 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