From: Adhemerval Zanella Date: Wed, 11 Oct 2017 12:14:07 +0000 (+0000) Subject: Enable ifunc attribute by default for ARM GNU/Linux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d71031ff62227fd3d645246bfc89c075ff746f81;p=gcc.git Enable ifunc attribute by default for ARM GNU/Linux Similar to other architectures with IFUNC binutils/glibc support, this patch enables the ifunc attribute for ARM GNU/Linux. Although not required for build master GLIBC, the intention is to allow refactor its assembly implementation to C. Tested compilation of glibc (in conjunction with a glibc patch to support using the attribute on ARM) with build-many-glibcs.py (with a patch to add a armv7 variant which enables multiarch). I have not run the GCC tests for ARM. * config.gcc (default_gnu_indirect_function): Default to yes for arm*-*-linux* with glibc. From-SVN: r253635 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a87e4c52cd..507859b0fcd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 Adhemerval Zanella + + * config.gcc (default_gnu_indirect_function): Default to yes for + arm*-*-linux* with glibc. + 2017-10-11 Richard Biener * tree-scalar-evolution.c (get_scalar_evolution): Handle diff --git a/gcc/config.gcc b/gcc/config.gcc index 39573b6985b..c52bebc220a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3108,7 +3108,7 @@ case ${target} in ;; *-*-linux*) case ${target} in - aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*) + aarch64*-* | arm*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*) default_gnu_indirect_function=yes ;; esac