From 4a66e756636cb8364582ea503abd10d76f5b4aa3 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Sun, 30 Jan 2011 22:18:29 -0800 Subject: Upgrade gcc-4.4.3 for Android toolchain. - Backport upstream patches to support arm hardfp. - Backport gcc-4.5 patches to support -march=atom. Now it is able to build atom toolchain with glibc from this branch - Develop a bunch of optimizations - Fix a few arm dejagnu failures To-do list: - Support Android/atom - Fix ia32 bootstrap failure Change-Id: I5e10dcd21620d4d8ca984d1d1707a76067e61691 --- gcc-4.4.3/configure.ac | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gcc-4.4.3/configure.ac') diff --git a/gcc-4.4.3/configure.ac b/gcc-4.4.3/configure.ac index 97e268f2f..40aea377e 100644 --- a/gcc-4.4.3/configure.ac +++ b/gcc-4.4.3/configure.ac @@ -383,6 +383,25 @@ if test "${ENABLE_LIBADA}" != "yes" ; then noconfigdirs="$noconfigdirs gnattools" fi +# Check whether --enable-esp was given and target have the support. +AC_ARG_ENABLE([esp], +[ --enable-esp + Enable Stack protector, Position independent executable and + as default if we have suppot for it when compiling + and link with -z relro and -z now as default. + Linux targets supported i*86, x86_64, ppc*, sparc* and arm*], +[ + case $target in + i?86*-*-linux* | x86_64*-*-linux* | ppc*-*-linux* | sparc*-*-linux* | arm*-*-linux*) + enable_esp=yes + ;; + *) + AC_MSG_ERROR([*** --enable-esp is not supported on this $target target.]) + ;; + esac +]) +AC_SUBST([enable_esp]) + AC_ARG_ENABLE(libssp, [ --enable-libssp build libssp directory], ENABLE_LIBSSP=$enableval, @@ -2890,6 +2909,9 @@ case $build in *) stage1_cflags="-g -J" ;; esac ;; esac +if test x$enable_esp = xyes; then + stage1_cflags="$stage1_cflags -fno-stack-protector" +fi # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. if test "$GCC" = yes; then -- cgit v1.2.3