aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-08-19 17:37:27 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-08-19 17:37:27 -0400
commite63815200c0fce0f5c8cb9bf7657495bd8c3c20d (patch)
tree578fb37ac49e26e04584b9293dd0bceec0137615
parent92065e1fe2e21a4d722242f6ae6827f6e31da0c8 (diff)
downloadgcc-e63815200c0fce0f5c8cb9bf7657495bd8c3c20d.zip
gcc-e63815200c0fce0f5c8cb9bf7657495bd8c3c20d.tar.gz
gcc-e63815200c0fce0f5c8cb9bf7657495bd8c3c20d.tar.bz2
(_mcount): Define.
From-SVN: r10257
-rw-r--r--gcc/config/sparc/gmon-sol2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/sparc/gmon-sol2.c b/gcc/config/sparc/gmon-sol2.c
index 16014c0..ba1549b 100644
--- a/gcc/config/sparc/gmon-sol2.c
+++ b/gcc/config/sparc/gmon-sol2.c
@@ -249,6 +249,9 @@ _mcleanup()
/* i7 == last ret, -> frompcindex */
/* o7 == current ret, -> selfpc */
+/* Solaris 2 libraries use _mcount. */
+asm(".global _mcount; _mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
+/* This is for compatibility with old versions of gcc which used mcount. */
asm(".global mcount; mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
static internal_mcount(selfpc, frompcindex)