[uClibc-cvs] uClibc/libc/sysdeps/linux/mips/bits machine-gmon.h,1.1,1.2

Erik Andersen andersen at codepoet.org
Wed Apr 16 00:59:03 UTC 2003


Update of /var/cvs/uClibc/libc/sysdeps/linux/mips/bits
In directory winder:/tmp/cvs-serv1826/libc/sysdeps/linux/mips/bits

Modified Files:
	machine-gmon.h 
Log Message:
Patch from Liam Girdwood to fix mips profiling when using
newer gcc versions.


Index: machine-gmon.h
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/mips/bits/machine-gmon.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- machine-gmon.h	3 Mar 2003 20:58:25 -0000	1.1
+++ machine-gmon.h	16 Apr 2003 00:59:00 -0000	1.2
@@ -17,8 +17,13 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ <= 1)
 #define _MCOUNT_DECL(frompc,selfpc) \
 static void __attribute_used__ __mcount (u_long frompc, u_long selfpc)
+#else
+#define _MCOUNT_DECL(frompc,selfpc) \
+static void __mcount (u_long frompc, u_long selfpc)
+#endif
 
 /* Call __mcount with our the return PC for our caller,
    and the return PC our caller will return to.  */



More information about the uClibc-cvs mailing list