From 3221ddf50593457583e349c837217a562c3a07fb Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 26 Apr 2017 22:18:18 +0200 Subject: [PATCH] UPSTREAM: crossgcc: disable libsanitizer for the bootstrapped compiler Ironically enough, libsanitizer is notorious for creating "uninitialized variable" warnings with different compiler versions than the one it's shipping with. Since we don't need it for building the real compiler, just skip it. Fixes building our compilers using the gnat-gpl 2014 compilers. BUG=none BRANCH=none TEST=none Change-Id: Ib867e7f7bd8709659f7b49d76ba441904e15db14 Signed-off-by: Patrick Georgi Original-Commit-Id: 97a9df4f77daf3a1b7f519d2235b374c183f8f70 Original-Change-Id: I2130dfdf3eaf07d77cd70777419fc0ae4642b843 Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://review.coreboot.org/19478 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Paul Menzel Original-Reviewed-by: Stefan Reinauer Original-Reviewed-by: Philippe Mathieu-Daud Reviewed-on: https://chromium-review.googlesource.com/490083 Commit-Ready: Furquan Shaikh --- util/crossgcc/buildgcc | 1 + 1 file changed, 1 insertion(+) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 9239b5dae6..eafd92ee50 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -600,6 +600,7 @@ bootstrap_GCC() { --disable-werror --disable-nls \ --disable-shared --disable-multilib \ --disable-libssp --disable-libquadmath --disable-libcc1 \ + --disable-libsanitizer \ ${GCC_OPTIONS} --enable-languages="${LANGUAGES}" \ --with-gmp=$DESTDIR$TARGETDIR --with-mpfr=$DESTDIR$TARGETDIR \ --with-mpc=$DESTDIR$TARGETDIR --with-libelf=$DESTDIR$TARGETDIR \