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 [1].

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.

        Adhemerval Zanella  <adhemerval.zane...@linaro.org>

        * config.gcc (default_gnu_indirect_function): Default to yes for
        arm*-*-linux* with glibc.

[1] https://sourceware.org/ml/libc-alpha/2017-10/msg00334.html
---
 gcc/ChangeLog  | 5 +++++
 gcc/config.gcc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 91a55e8..26aa8f6 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3104,7 +3104,7 @@ case ${target} in
         ;;
 *-*-linux*)
        case ${target} in
-       aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*)
+       aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-* 
| arm*-*)
                default_gnu_indirect_function=yes
                ;;
        esac
-- 
2.7.4

Reply via email to