report supported function classes correctly on *-musl

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

From-SVN: r239860
This commit is contained in:
Szabolcs Nagy 2016-08-30 10:28:06 +00:00 committed by Szabolcs Nagy
parent 5aadf16cbe
commit 43ed860c2a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
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.

View file

@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see
bool
linux_libc_has_function (enum function_class fn_class)
{
if (OPTION_GLIBC)
if (OPTION_GLIBC || OPTION_MUSL)
return true;
if (OPTION_BIONIC)
if (fn_class == function_c94