]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Move the -mpreferred-stack-boundary test for gcc later on, so it does not
authorJulian Seward <jseward@acm.org>
Mon, 3 Jun 2002 22:53:35 +0000 (22:53 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 3 Jun 2002 22:53:35 +0000 (22:53 +0000)
mess up earlier tests.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@368

configure.in

index 2fe40f131c41701255bf6f47a783a0f94495d9dc..73e54cf6faf6562fb1a286abe5de4a9380ddc91f 100644 (file)
@@ -50,25 +50,6 @@ case "${gcc_version}" in
        ;;
 esac
 
-# does this compiler support -mpreferred-stack-boundary=2 ?
-AC_MSG_CHECKING([for extra compiler options])
-
-CFLAGS="-mpreferred-stack-boundary=2"
-
-AC_TRY_COMPILE(, [
-
-int main () { return 0 ; }
-
-],
-[
-PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
-AC_MSG_RESULT([$PREFERRED_STACK_BOUNDARY])
-], [
-PREFERRED_STACK_BOUNDARY=""
-AC_MSG_RESULT([none])
-])
-
-AC_SUBST(PREFERRED_STACK_BOUNDARY)
 
 # Checks for the platform
 AC_CANONICAL_HOST
@@ -257,6 +238,28 @@ EOF
    rm -f conftest conftest.c
 fi
 
+# does this compiler support -mpreferred-stack-boundary=2 ?
+AC_MSG_CHECKING([if gcc accepts -mpreferred-stack-boundary])
+
+CFLAGS="-mpreferred-stack-boundary=2"
+
+AC_TRY_COMPILE(, [
+
+int main () { return 0 ; }
+
+],
+[
+PREFERRED_STACK_BOUNDARY="-mpreferred-stack-boundary=2"
+AC_MSG_RESULT([$PREFERRED_STACK_BOUNDARY])
+], [
+PREFERRED_STACK_BOUNDARY=""
+AC_MSG_RESULT([no])
+])
+
+AC_SUBST(PREFERRED_STACK_BOUNDARY)
+
+
+
 # Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h asm/atomic.h])