diff mbox

report supported function classes correctly on *-musl

Message ID 578F7F2A.9060103@arm.com
State New
Headers show

Commit Message

Szabolcs Nagy July 20, 2016, 1:39 p.m. UTC
All function classes listed in gcc/coretypes.h are supported by musl.

Most of the optimizations based on these function classes are not
relevant for standard conform c code, but this is required to get
rid of some test system noise.

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

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

Comments

Szabolcs Nagy Aug. 24, 2016, 5:19 p.m. UTC | #1
On 20/07/16 14:39, Szabolcs Nagy wrote:
> All function classes listed in gcc/coretypes.h are supported by musl.
> 
> Most of the optimizations based on these function classes are not
> relevant for standard conform c code, but this is required to get
> rid of some test system noise.
> 
> gcc/
> 2016-07-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* config/linux.c (linux_libc_has_function): Return true on musl.
> 

ping
Bernd Schmidt Aug. 29, 2016, 9:29 a.m. UTC | #2
On 07/20/2016 03:39 PM, Szabolcs Nagy wrote:
> All function classes listed in gcc/coretypes.h are supported by musl.
>
> Most of the optimizations based on these function classes are not
> relevant for standard conform c code, but this is required to get
> rid of some test system noise.
>
> gcc/
> 2016-07-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
>
> 	* config/linux.c (linux_libc_has_function): Return true on musl.

Also ok I guess.


Bernd
diff mbox

Patch

From 294b908f9a7577bcfe8036a601262ca0bc7c2ca2 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <nsz@port70.net>
Date: Fri, 6 Nov 2015 23:59:20 +0000
Subject: [PATCH 2/7] linux_libc_has_function

---
 gcc/config/linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/linux.c b/gcc/config/linux.c
index 2081e34..37515bf 100644
--- a/gcc/config/linux.c
+++ b/gcc/config/linux.c
@@ -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
-- 
2.4.1