OSDN Git Service

Patch from Liam Girdwood to fix mips profiling when using
authorEric Andersen <andersen@codepoet.org>
Wed, 16 Apr 2003 00:59:00 +0000 (00:59 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 16 Apr 2003 00:59:00 +0000 (00:59 -0000)
newer gcc versions.

libc/sysdeps/linux/mips/bits/machine-gmon.h

index 102da2c..244718e 100644 (file)
    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.  */