From ada132a80ba7edde00ac71727a205d55578e3f47 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Wed, 16 Jun 2010 20:17:19 -0700 Subject: [PATCH] Switch toolchain from gcc-4.4.0 to gcc-4.4.3 gcc-4.4.3 toolchain is based on fsf GCC-4.4.3 with numerous patches. It reduces 3.65% code size than the prebuilt gcc-4.4.0 toolchain, and improves 3.4% performance on Android benchmarks. The toolchain uses gold as default linker. With gold, the toolchain further reduces 1MB system image. Change-Id: I55eb4df185f2932e71498fcc28428e4d1b175393 --- core/combo/TARGET_linux-arm.mk | 2 +- core/envsetup.mk | 2 +- envsetup.sh | 2 +- tools/adbs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 81c487660b..ae3fd59c26 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -44,7 +44,7 @@ include $(TARGET_ARCH_SPECIFIC_MAKEFILE) # You can set TARGET_TOOLS_PREFIX to get gcc from somewhere else ifeq ($(strip $(TARGET_TOOLS_PREFIX)),) TARGET_TOOLS_PREFIX := \ - prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.0/bin/arm-eabi- + prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.3/bin/arm-eabi- endif TARGET_CC := $(TARGET_TOOLS_PREFIX)gcc$(HOST_EXECUTABLE_SUFFIX) diff --git a/core/envsetup.mk b/core/envsetup.mk index 86aa2f3aed..920cc3a2cf 100644 --- a/core/envsetup.mk +++ b/core/envsetup.mk @@ -284,7 +284,7 @@ ifeq ($(TARGET_SIMULATOR),true) ABP:=$(ABP):$(TARGET_OUT_EXECUTABLES) else # this should be copied to HOST_OUT_EXECUTABLES instead - ABP:=$(ABP):$(PWD)/prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.0/bin + ABP:=$(ABP):$(PWD)/prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.3/bin endif ANDROID_BUILD_PATHS := $(ABP) ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG) diff --git a/envsetup.sh b/envsetup.sh index f4dfc557a6..c899c5ce2e 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -103,7 +103,7 @@ function setpaths() # and in with the new CODE_REVIEWS= prebuiltdir=$(getprebuilt) - export ANDROID_EABI_TOOLCHAIN=$prebuiltdir/toolchain/arm-eabi-4.4.0/bin + export ANDROID_EABI_TOOLCHAIN=$prebuiltdir/toolchain/arm-eabi-4.4.3/bin export ANDROID_TOOLCHAIN=$ANDROID_EABI_TOOLCHAIN export ANDROID_QTOOLS=$T/development/emulator/qtools export ANDROID_BUILD_PATHS=:$(get_build_var ANDROID_BUILD_PATHS):$ANDROID_QTOOLS:$ANDROID_TOOLCHAIN:$ANDROID_EABI_TOOLCHAIN$CODE_REVIEWS diff --git a/tools/adbs b/tools/adbs index 815ae10e70..8277790ba1 100755 --- a/tools/adbs +++ b/tools/adbs @@ -144,13 +144,13 @@ def SetupToolsPath(): uname = "darwin-ppc" elif uname == "Linux": uname = "linux-x86" - prefix = "./prebuilt/" + uname + "/toolchain/arm-eabi-4.4.0/bin/" + prefix = "./prebuilt/" + uname + "/toolchain/arm-eabi-4.4.3/bin/" addr2line_cmd = prefix + "arm-eabi-addr2line" if (not os.path.exists(addr2line_cmd)): try: prefix = os.environ['ANDROID_BUILD_TOP'] + "/prebuilt/" + uname + \ - "/toolchain/arm-eabi-4.4.0/bin/" + "/toolchain/arm-eabi-4.4.3/bin/" except: prefix = "";