diff options
author | Jing Yu <jingyu@google.com> | 2011-01-30 22:18:29 -0800 |
---|---|---|
committer | Jing Yu <jingyu@google.com> | 2011-01-30 22:18:29 -0800 |
commit | 4a66e756636cb8364582ea503abd10d76f5b4aa3 (patch) | |
tree | 9660204ec085888a0601a6460c967b204a63d5f3 /gcc-4.4.3/configure.ac | |
parent | b6be42e837844cce5283f42fcfac31e6d66a277d (diff) | |
download | toolchain_gcc-4a66e756636cb8364582ea503abd10d76f5b4aa3.tar.gz toolchain_gcc-4a66e756636cb8364582ea503abd10d76f5b4aa3.tar.bz2 toolchain_gcc-4a66e756636cb8364582ea503abd10d76f5b4aa3.zip |
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
Diffstat (limited to 'gcc-4.4.3/configure.ac')
-rw-r--r-- | gcc-4.4.3/configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
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 |