summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/mips/bits/machine-gmon.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-04-16 00:59:00 +0000
committerEric Andersen <andersen@codepoet.org>2003-04-16 00:59:00 +0000
commit412abbeed6aa21ae626bc6f6260ef5b23c9862cc (patch)
tree20475e73b5cd098856a0833c12a85a0ce9af66a7 /libc/sysdeps/linux/mips/bits/machine-gmon.h
parentf3b60effac147fdae8c10a33cf213df65e0274ae (diff)
Patch from Liam Girdwood to fix mips profiling when using
newer gcc versions.
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/machine-gmon.h')
-rw-r--r--libc/sysdeps/linux/mips/bits/machine-gmon.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/bits/machine-gmon.h b/libc/sysdeps/linux/mips/bits/machine-gmon.h
index 102da2c36..244718ed0 100644
--- a/libc/sysdeps/linux/mips/bits/machine-gmon.h
+++ b/libc/sysdeps/linux/mips/bits/machine-gmon.h
@@ -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. */