Browse Source

fix testing "gcc -mpreferred-stack-boundary=2" on x86_64

Denis Vlasenko 15 years ago
parent
commit
64577cf4a6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Rules.mak

+ 2 - 1
Rules.mak

@@ -184,7 +184,8 @@ ifeq ($(CONFIG_386)$(CONFIG_486)$(CONFIG_586)$(CONFIG_586MMX),y)
 	# NB: this may make SSE insns segfault!
 	# -O1 -march=pentium3, -Os -msse etc are known to be affected.
 	# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13685
-	OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=2,)
+	# -m32 is needed if host is 64-bit
+	OPTIMIZATION+=$(call check_gcc,-m32 -mpreferred-stack-boundary=2,)
 else
 	OPTIMIZATION+=$(call check_gcc,-mpreferred-stack-boundary=4,)
 endif