From: Joseph Myers Date: Thu, 28 Sep 2017 14:25:15 +0000 (+0100) Subject: Enable ifunc attribute by default for SPARC GNU/Linux. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2caf41096411bfe76c54df77ca24724eab0f53c9;p=gcc.git Enable ifunc attribute by default for SPARC GNU/Linux. 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 with build-many-glibcs.py. I have not run the GCC tests for SPARC. * config.gcc (default_gnu_indirect_function): Default to yes for sparc*-*-linux* with glibc. From-SVN: r253253 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 718f0426368..42cb556407f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-28 Joseph Myers + + * config.gcc (default_gnu_indirect_function): Default to yes for + sparc*-*-linux* with glibc. + 2017-09-28 Joseph Myers * config/aarch64/aarch64.c (aarch64_elf_asm_constructor) diff --git a/gcc/config.gcc b/gcc/config.gcc index f0e6c4bd0c3..7a2e2cfffe5 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3102,7 +3102,7 @@ case ${target} in ;; *-*-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