From db8e40ff1e52ec4f8a5f2e641f0b2521392bf651 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 3 Jun 2010 16:42:01 +0200 Subject: [PATCH] config/path: - disable build with -fPIC on i386 target - enable build with linker plugin support (-fuse-linker-plugin) - enable build with gold linker support (-fuse-ld=gold) - enable some loop and grphite optimatizations (-ftree-loop-distribution, -floop-interchange, -floop-strip-mine, -floop-block, -fgraphite-identity, -fno-ipa-sra) - enable "-Wl,--as-needed" linker flags - cleanups --- config/path | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/config/path b/config/path index cf6baade2c..2a1706e54f 100644 --- a/config/path +++ b/config/path @@ -119,9 +119,24 @@ else fi if [ "$OPTIMIZATIONS" = speed -a "$DEBUG" != yes ]; then - TARGET_CFLAGS="$TARGET_CFLAGS -flto -fwhole-program" # -fuse-linker-plugin - TARGET_CXXFLAGS="$TARGET_CXXFLAGS -flto -fwhole-program" # -fuse-linker-plugin - TARGET_LDFLAGS="$TARGET_LDFLAGS -flto -fwhole-program" # -fuse-linker-plugin + TARGET_CFLAGS="$TARGET_CFLAGS -flto" + TARGET_CFLAGS="$TARGET_CFLAGS -fwhole-program" + TARGET_CFLAGS="$TARGET_CFLAGS -fuse-linker-plugin" + TARGET_CFLAGS="$TARGET_CFLAGS -fuse-ld=gold" + TARGET_CFLAGS="$TARGET_CFLAGS -ftree-loop-distribution" + TARGET_CFLAGS="$TARGET_CFLAGS -floop-interchange" + TARGET_CFLAGS="$TARGET_CFLAGS -floop-strip-mine" + TARGET_CFLAGS="$TARGET_CFLAGS -floop-block" + TARGET_CFLAGS="$TARGET_CFLAGS -fgraphite-identity" + TARGET_CFLAGS="$TARGET_CFLAGS -fno-ipa-sra" + + TARGET_CXXFLAGS="$TARGET_CFLAGS" + + TARGET_LDFLAGS="$TARGET_LDFLAGS -flto" + TARGET_LDFLAGS="$TARGET_LDFLAGS -fwhole-program" + TARGET_LDFLAGS="$TARGET_LDFLAGS -fuse-linker-plugin" + TARGET_LDFLAGS="$TARGET_LDFLAGS -fuse-ld=gold" + TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--as-needed" fi HOST_AWK=gawk @@ -170,7 +185,7 @@ setup_toolchain() { export LDFLAGS="$TARGET_LDFLAGS" export PKG_CONFIG_PATH="$TARGET_PKG_CONFIG_PATH" -# set CMAKE configfile for target + # set CMAKE configfile for target export CMAKE_CONF=$ROOT/$TOOLCHAIN/etc/cmake-$TARGET_NAME.conf elif [ "$1" = host ]; then @@ -190,7 +205,7 @@ setup_toolchain() { export LDFLAGS="$HOST_LDFLAGS" export PKG_CONFIG_PATH="$HOST_PKG_CONFIG_PATH" -# set CMAKE configfile for host + # set CMAKE configfile for host export CMAKE_CONF=$ROOT/$TOOLCHAIN/etc/cmake-$HOST_NAME.conf fi