]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: set mips64r2 as default for 64-builds
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 29 Sep 2017 17:14:42 +0000 (19:14 +0200)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 29 Sep 2017 17:16:37 +0000 (19:16 +0200)
Set mips64r2 as default. Major 64-bit platforms are Rev2.
This also fixes small issue when -march=octeon is in conflict with -mips64.

configure.ac

index 2b4f958b350788db130307c36f9c842f0191eafb..fde97ae769a2e6ccd23af2585f554e9b37aee9f5 100644 (file)
@@ -1732,16 +1732,16 @@ CFLAGS=$safe_CFLAGS
 AC_SUBST(FLAG_MIPS32)
 
 
-# does this compiler support -march=mips64 (mips64 default) ?
-AC_MSG_CHECKING([if gcc accepts -march=mips64])
+# does this compiler support -march=mips64r2 (mips64r2 default) ?
+AC_MSG_CHECKING([if gcc accepts -march=mips64r2])
 
 safe_CFLAGS=$CFLAGS
-CFLAGS="$CFLAGS -march=mips64 -Werror"
+CFLAGS="$CFLAGS -march=mips64r2 -Werror"
 
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
   return 0;
 ]])], [
-FLAG_MIPS64="-march=mips64"
+FLAG_MIPS64="-march=mips64r2"
 AC_MSG_RESULT([yes])
 ], [
 FLAG_MIPS64=""