summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-16 07:48:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-16 07:48:29 +0000
commit64577cf4a644a240ada3e2ba454e0094feb5985a (patch)
tree19bd66b66e381651ea129d54511f26ff6760676f
parenta53368f98c431dd9a30b7999735a7ef5170f1e9d (diff)
fix testing "gcc -mpreferred-stack-boundary=2" on x86_64
-rw-r--r--Rules.mak3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index b3dec5bde..86a7c48d3 100644
--- a/Rules.mak
+++ b/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