This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Enable ifunc attribute by default for SPARC GNU/Linux
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <davem at redhat dot com>, <ebotcazou at libertysurf dot fr>
- Date: Tue, 26 Sep 2017 18:02:06 +0000
- Subject: Enable ifunc attribute by default for SPARC GNU/Linux
- Authentication-results: sourceware.org; auth=none
Similar to other architectures with IFUNC binutils/glibc support, this
patch enables the ifunc attribute for SPARC GNU/Linux. This is needed
for building glibc with the current checks on IFUNC resolver types
(and use of the attribute in glibc rather than manually created IFUNCs
is beneficial anyway because it results in better debug info).
Tested compilation of glibc (in conjunction with a glibc patch to
support using the attribute on SPARC) with build-many-glibcs.py. I
have not run the GCC tests for SPARC. OK to commit?
2017-09-26 Joseph Myers <joseph@codesourcery.com>
* config.gcc (default_gnu_indirect_function): Default to yes for
sparc*-*-linux* with glibc.
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc (revision 253204)
+++ gcc/config.gcc (working copy)
@@ -3100,7 +3100,7 @@
;;
*-*-linux*)
case ${target} in
- aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | x86_64-*)
+ aarch64*-* | i[34567]86-* | powerpc*-* | s390*-* | sparc*-* | x86_64-*)
default_gnu_indirect_function=yes
;;
esac
--
Joseph S. Myers
joseph@codesourcery.com