diff mbox

disable ifunc on *-musl by default

Message ID 578F7E80.6010704@arm.com
State New
Headers show

Commit Message

Szabolcs Nagy July 20, 2016, 1:37 p.m. UTC
Musl libc does not support gnu ifunc, so disable it by default.
(not disabled on s390-* since that has no musl support yet.)

gcc/
2016-07-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* config.gcc (*-*-*musl*): Disable gnu-indirect-function.

Comments

Szabolcs Nagy Aug. 24, 2016, 5:19 p.m. UTC | #1
On 20/07/16 14:37, Szabolcs Nagy wrote:
> Musl libc does not support gnu ifunc, so disable it by default.
> (not disabled on s390-* since that has no musl support yet.)
> 
> gcc/
> 2016-07-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* config.gcc (*-*-*musl*): Disable gnu-indirect-function.
> 

ping
Bernd Schmidt Aug. 29, 2016, 9:28 a.m. UTC | #2
On 07/20/2016 03:37 PM, Szabolcs Nagy wrote:
> Musl libc does not support gnu ifunc, so disable it by default.
> (not disabled on s390-* since that has no musl support yet.)
>
> gcc/
> 2016-07-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>
> 	* config.gcc (*-*-*musl*): Disable gnu-indirect-function.

Ok I suppose? I'm assuming you know best.


Bernd
diff mbox

Patch

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 1f75f17..f3f6e14 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1465,7 +1465,7 @@  i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]8
 		extra_options="${extra_options} linux-android.opt"
 		# Assume modern glibc if not targeting Android nor uclibc.
 		case ${target} in
-		*-*-*android*|*-*-*uclibc*)
+		*-*-*android*|*-*-*uclibc*|*-*-*musl*)
 		  ;;
 		*)
 		  default_gnu_indirect_function=yes
@@ -1531,7 +1531,7 @@  x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
 		extra_options="${extra_options} linux-android.opt"
 		# Assume modern glibc if not targeting Android nor uclibc.
 		case ${target} in
-		*-*-*android*|*-*-*uclibc*)
+		*-*-*android*|*-*-*uclibc*|*-*-*musl*)
 		  ;;
 		*)
 		  default_gnu_indirect_function=yes