Browse Source

Patch from Liam Girdwood to fix mips profiling when using
newer gcc versions.

Eric Andersen 22 years ago
parent
commit
412abbeed6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/mips/bits/machine-gmon.h

+ 5 - 0
libc/sysdeps/linux/mips/bits/machine-gmon.h

@@ -17,8 +17,13 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
    02111-1307 USA.  */
 
 
+#if __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ <= 1)
 #define _MCOUNT_DECL(frompc,selfpc) \
 #define _MCOUNT_DECL(frompc,selfpc) \
 static void __attribute_used__ __mcount (u_long frompc, u_long 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,
 /* Call __mcount with our the return PC for our caller,
    and the return PC our caller will return to.  */
    and the return PC our caller will return to.  */