[coreboot-gerrit] Patch set updated for coreboot: 4b70d04 crossgcc: Improve compatibility of the toolchain across host systems

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Thu Jun 4 09:14:34 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10412

-gerrit

commit 4b70d048b70c4d54942014e83e356f9bca60ba6c
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Thu Jun 4 00:09:12 2015 +0200

    crossgcc: Improve compatibility of the toolchain across host systems
    
    crossgcc builds gmp, whose build system normally optimises for the hardware
    it's built on. That may give a minor performance boost but has the downside
    that the compiler becomes non-portable and may break on other systems due to
    illegal instructions.
    
    Setting CFLAGS to some reasonable value prevents gmp's configure script from
    choosing CPU specific -mtune flags (which may enable optimizations that only
    run on CPUs with the same feature set).
    Enabling "fat" builds make the build system add all optimized assembler
    routines and makes the selection of the right one a runtime decision instead
    of deciding at compile time.
    
    Change-Id: I72d20627270baa082cd02ebb4c9a09cd23f30f8c
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/crossgcc/buildgcc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 15bcd92..a1b596e 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -22,8 +22,8 @@
 
 cd `dirname $0`
 
-CROSSGCC_DATE="March 8th, 2015"
-CROSSGCC_VERSION="1.27"
+CROSSGCC_DATE="June 3th, 2015"
+CROSSGCC_VERSION="1.28"
 
 # default settings
 TARGETDIR=`pwd`/xgcc
@@ -418,7 +418,7 @@ printf "Building GMP ${GMP_VERSION} ... "
 (
 	cd ${BUILDDIRPREFIX}-gmp
 	rm -f .failed
-	CC="$CC" ../${GMP_DIR}/configure --disable-shared --prefix=$TARGETDIR $OPTIONS \
+	CC="$CC" CFLAGS="-Os" ../${GMP_DIR}/configure --disable-shared --enable-fat --prefix=$TARGETDIR $OPTIONS \
 		|| touch .failed
 	$MAKE $JOBS || touch .failed
 	$MAKE install DESTDIR=$DESTDIR || touch .failed



More information about the coreboot-gerrit mailing list