OSDN Git Service

(_mcount): Define.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Aug 1995 21:37:27 +0000 (21:37 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Aug 1995 21:37:27 +0000 (21:37 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10257 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/sparc/gmon-sol2.c

index 16014c0..ba1549b 100644 (file)
@@ -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)