[coreboot] Patch set updated for coreboot: 73392a7 xcompile: Tell gcc to use i486-class instructions

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Tue Mar 6 22:32:32 CET 2012


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/748

-gerrit

commit 73392a7c2993a6c4dcf47cb2ae8118e89ef3b5d1
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Tue Mar 6 21:13:47 2012 +0100

    xcompile: Tell gcc to use i486-class instructions
    
    Instead of hardcoding "no-sse" (which disables various intrinsics)
    xcompile now tests for -march=i486, which tells gcc to restrict
    itself to i486 class instructions (but allows the developer to
    override it by using intrinsics and asm).
    
    Change-Id: Ief4a6faba236f215e7dc23872cd7e4ee405a33d2
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/xcompile/xcompile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index f5d43d0..d4eaab0 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -87,7 +87,7 @@ testcc "$CC" "$CFLAGS-Wno-unused-but-set-variable " && \
 # Use bfd linker instead of gold if available:
 testcc "$CC" "$CFLAGS-fuse-ld=bfd " && CFLAGS="$CFLAGS-fuse-ld=bfd " && LINKER_SUFFIX='.bfd'
 # Prevent SSE instructions sneaking in:
-testcc "$CC" "$CFLAGS-mno-sse " && CFLAGS="$CFLAGS-mno-sse "
+testcc "$CC" "$CFLAGS-march=i486 " && CFLAGS="$CFLAGS-march=i486 "
 
 if which gcc 2>/dev/null >/dev/null; then
 	HOSTCC=gcc




More information about the coreboot mailing list