[coreboot] New patch to review for coreboot: 3adfa8c xcompile: Tell gcc to use pentium-class instructions

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Tue Mar 6 21:11:25 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


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

    xcompile: Tell gcc to use pentium-class instructions
    Instead of hardcoding "no-sse" (which disables various intrinsics)
    xcompile now tests for -march=pentium, which tells gcc to restrict
    itself to pentium 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..3c82eea 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=pentium " && CFLAGS="$CFLAGS-march=pentium "
 if which gcc 2>/dev/null >/dev/null; then

More information about the coreboot mailing list