[coreboot-gerrit] Patch set updated for coreboot: xcompile: x86-64-elf wants -Wa, --divide, too

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Sat Jun 20 01:48:14 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10574

-gerrit

commit 2e7107151ea031fc5e3efa6e58a884a641904ebb
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Wed Jun 17 16:07:38 2015 -0700

    xcompile: x86-64-elf wants -Wa,--divide, too
    
    Change-Id: I03eb1c0f1e0b0c6213ec6b26cf41dadd4df9b910
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 util/xcompile/xcompile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 7363b19..1af02ad 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"



More information about the coreboot-gerrit mailing list