This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Enable ifunc attribute by default for ARM GNU/Linux
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Oct 2017 15:53:12 -0300
- Subject: [PATCH] Enable ifunc attribute by default for ARM GNU/Linux
- Authentication-results: sourceware.org; auth=none
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.zanella@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