diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2014-11-14 16:43:23 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2014-11-14 08:43:23 -0800 |
commit | ba86734cb3165b4dd2c0885a7a27ba89d3a9b563 (patch) | |
tree | 24ad6d5dc9fda5199fcd6c3f538c4547ae05abd7 /gcc/config.gcc | |
parent | 732954175fa7985ef67a7c0e56720a360253a840 (diff) | |
download | gcc-ba86734cb3165b4dd2c0885a7a27ba89d3a9b563.zip gcc-ba86734cb3165b4dd2c0885a7a27ba89d3a9b563.tar.gz gcc-ba86734cb3165b4dd2c0885a7a27ba89d3a9b563.tar.bz2 |
Don't enable IFUNC by default for Android and uclibc
* config.gcc (default_gnu_indirect_function): Set to yes
for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
Android nor uclibc.
From-SVN: r217575
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index a6b37d8..bef56e2 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1404,8 +1404,14 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i i[34567]86-*-linux*) tm_file="${tm_file} linux.h linux-android.h" extra_options="${extra_options} linux-android.opt" - # Assume modern glibc - default_gnu_indirect_function=yes + # Assume modern glibc if not targeting Android nor uclibc. + case ${target} in + *-*-*android*|*-*-*uclibc*) + ;; + *) + default_gnu_indirect_function=yes + ;; + esac if test x$enable_targets = xall; then tm_file="${tm_file} i386/x86-64.h i386/gnu-user-common.h i386/gnu-user64.h i386/linux-common.h i386/linux64.h" tm_defines="${tm_defines} TARGET_BI_ARCH=1" @@ -1467,8 +1473,14 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu) x86_64-*-linux*) tm_file="${tm_file} linux.h linux-android.h i386/linux-common.h i386/linux64.h" extra_options="${extra_options} linux-android.opt" - # Assume modern glibc - default_gnu_indirect_function=yes + # Assume modern glibc if not targeting Android nor uclibc. + case ${target} in + *-*-*android*|*-*-*uclibc*) + ;; + *) + default_gnu_indirect_function=yes + ;; + esac ;; x86_64-*-kfreebsd*-gnu) tm_file="${tm_file} kfreebsd-gnu.h i386/kfreebsd-gnu64.h" |