summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-17 16:07:38 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-20 18:14:27 +0200
commit7979dc09a84c653d507b776c0c2bbc1f06c570c5 (patch)
tree0a1770cae328d2aa0856479238ace431d3fcffe4 /util
parentdbe6ba465e298afc4acdf769844c9d515846a843 (diff)
downloadcoreboot-7979dc09a84c653d507b776c0c2bbc1f06c570c5.tar.xz
xcompile: x86-64-elf wants -Wa,--divide, too
Change-Id: I03eb1c0f1e0b0c6213ec6b26cf41dadd4df9b910 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10574 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 7363b196e6..1af02ad28a 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -153,6 +153,12 @@ detect_special_flags() {
# specify -mmsse, etc flags.
CFLAGS_GCC="$CFLAGS_GCC -march=i686"
;;
+ x64)
+ testcc "$GCC" "$CFLAGS_GCC -Wa,--divide" &&
+ CFLAGS_GCC="$CFLAGS_GCC -Wa,--divide"
+ testcc "$CLANG" "$CFLAGS_CLANG -Wa,--divide" &&
+ CFLAGS_CLANG="$CFLAGS_CLANG -Wa,--divide"
+ ;;
mipsel)
testcc "$GCC" "$CFLAGS_GCC -mno-abicalls -fno-pic" && \
CFLAGS_GCC+=" -mno-abicalls -fno-pic"