From: Petar Jovanovic Date: Fri, 29 Sep 2017 17:14:42 +0000 (+0200) Subject: mips64: set mips64r2 as default for 64-builds X-Git-Tag: VALGRIND_3_14_0~243 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711d3a53c3d9774dfefcf43b4394e3a23289ee02;p=thirdparty%2Fvalgrind.git mips64: set mips64r2 as default for 64-builds Set mips64r2 as default. Major 64-bit platforms are Rev2. This also fixes small issue when -march=octeon is in conflict with -mips64. --- diff --git a/configure.ac b/configure.ac index 2b4f958b35..fde97ae769 100644 --- a/configure.ac +++ b/configure.ac @@ -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=""