aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-09-28 15:25:15 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2017-09-28 15:25:15 +0100
commit2caf41096411bfe76c54df77ca24724eab0f53c9 (patch)
tree786eabbbd2e8fbb1dbed2bd16c53efeec8c26ae6 /gcc
parentfcef3abdc5b8ff77404e1cab97570a8431bcde5d (diff)
downloadgcc-2caf41096411bfe76c54df77ca24724eab0f53c9.zip
gcc-2caf41096411bfe76c54df77ca24724eab0f53c9.tar.gz
gcc-2caf41096411bfe76c54df77ca24724eab0f53c9.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config.gcc2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 718f042..42cb556 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2017-09-28 Joseph Myers <joseph@codesourcery.com>
+ * config.gcc (default_gnu_indirect_function): Default to yes for
+ sparc*-*-linux* with glibc.
+
+2017-09-28 Joseph Myers <joseph@codesourcery.com>
+
* config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
(aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
when creating .init_array and .fini_array sections with priority
diff --git a/gcc/config.gcc b/gcc/config.gcc
index f0e6c4b..7a2e2cf 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