From 7979dc09a84c653d507b776c0c2bbc1f06c570c5 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 17 Jun 2015 16:07:38 -0700 Subject: [PATCH] xcompile: x86-64-elf wants -Wa,--divide, too Change-Id: I03eb1c0f1e0b0c6213ec6b26cf41dadd4df9b910 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/10574 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- util/xcompile/xcompile | 6 ++++++ 1 file changed, 6 insertions(+) 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"