From e63815200c0fce0f5c8cb9bf7657495bd8c3c20d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 19 Aug 1995 17:37:27 -0400 Subject: [PATCH] (_mcount): Define. From-SVN: r10257 --- gcc/config/sparc/gmon-sol2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/sparc/gmon-sol2.c b/gcc/config/sparc/gmon-sol2.c index 16014c03235..ba1549b036e 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) -- 2.30.2