Commit 43ed860c by Szabolcs Nagy Committed by Szabolcs Nagy

report supported function classes correctly on *-musl

gcc/
	* config/linux.c (linux_libc_has_function): Return true on musl.

From-SVN: r239860
parent 5aadf16c
2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com> 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
* config/linux.c (linux_libc_has_function): Return true on musl.
2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
* config.gcc (*-*-*musl*): Disable gnu-indirect-function. * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
2016-08-30 Eric Botcazou <ebotcazou@adacore.com> 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
bool bool
linux_libc_has_function (enum function_class fn_class) linux_libc_has_function (enum function_class fn_class)
{ {
if (OPTION_GLIBC) if (OPTION_GLIBC || OPTION_MUSL)
return true; return true;
if (OPTION_BIONIC) if (OPTION_BIONIC)
if (fn_class == function_c94 if (fn_class == function_c94
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment