public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Enable ifunc attribute by default for SPARC GNU/Linux
@ 2017-09-26 18:02 Joseph Myers
  2017-09-28 13:52 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2017-09-26 18:02 UTC (permalink / raw)
  To: gcc-patches; +Cc: davem, ebotcazou

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Enable ifunc attribute by default for SPARC GNU/Linux
  2017-09-26 18:02 Enable ifunc attribute by default for SPARC GNU/Linux Joseph Myers
@ 2017-09-28 13:52 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2017-09-28 13:52 UTC (permalink / raw)
  To: Joseph Myers; +Cc: gcc-patches, davem

> 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?

I presume so, although I don't really understand all the consequences.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-28 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-26 18:02 Enable ifunc attribute by default for SPARC GNU/Linux Joseph Myers
2017-09-28 13:52 ` Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).