From patchwork Wed Jul 20 13:39:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 650677 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rvdMZ3MVJz9ryQ for ; Wed, 20 Jul 2016 23:40:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=AFbac8LU; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=CsT2RBqM+xJo4zgu63UgP39jsgqA9vu9jrXUaa124An sRIZq75dULaQIvf9PC1KvSzDktTnGFQSeb8wGFrUFUMG9jdCEKprgxTHgrzjqPRN TidNoH6hSvaWnKplTZthMVQ27Aro4bqP5GrB+I6YzeaVuSq6DQycXSH3UsrcDwuE = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=NYtlxV/tEXc04Samoond7M5YPMs=; b=AFbac8LUZ80zqtDxD lo/5P6CrGMY939BLRqgLosGz+lYTube9jwmvJ1Bw4B962jquTVDuuKk2GONXI9vq UnQcEp6Ytjl/LZ7TyqHVOfcWMOdVXjdOW0RPK/XsEJWTK8y6VmDbtkaxoVDN4yn4 qdehzOkZfxxZp+SjxxRCunBWeU= Received: (qmail 89263 invoked by alias); 20 Jul 2016 13:40:16 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 89237 invoked by uid 89); 20 Jul 2016 13:40:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1076, nov, Nov X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Jul 2016 13:40:05 +0000 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02lp0148.outbound.protection.outlook.com [213.199.180.148]) (Using TLS) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-68-xKsZb3zbMD-MbgwKRF-IdA-1; Wed, 20 Jul 2016 14:39:59 +0100 Received: from [10.2.206.73] (217.140.96.140) by DB5PR08MB1095.eurprd08.prod.outlook.com (10.166.174.18) with Microsoft SMTP Server (TLS) id 15.1.539.14; Wed, 20 Jul 2016 13:39:56 +0000 Message-ID: <578F7F2A.9060103@arm.com> Date: Wed, 20 Jul 2016 14:39:54 +0100 From: Szabolcs Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: , Rich Felker Subject: [PATCH] report supported function classes correctly on *-musl X-ClientProxiedBy: DB5PR03CA0065.eurprd03.prod.outlook.com (10.164.34.33) To DB5PR08MB1095.eurprd08.prod.outlook.com (10.166.174.18) X-MS-Office365-Filtering-Correlation-Id: 97c46efe-ca05-497c-d60b-08d3b0a35631 X-Microsoft-Exchange-Diagnostics: 1; DB5PR08MB1095; 2:SoHdjY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VZbhzyhVkzW4f7NQaaEHOvEkrfdYZnAE5nkLdV5c7ws/U7bDK3w4BqY86UPQ3fQ==; 20:DHOPVGU+2qV4tiT4l3pXhnTyp/NKCLO4vOkE/M1KB3p68a/DjK0kfjqw1RT6WriDN8Of57dPQhc6MSIg2CgyFI14jHiLwOSgiISIjqi6/eK9RsTPVRFfceB07X84zwiVBRoBgw3L+ZeNIYwAJ+/Ia+oHqwuj3MiNNg5qt1L5zLU=; 4:ntOmLd2Cq8NWAmG+GI+dx3C9kv3M3LSmBgK7GVJuU/Sg+1LhcNvjqkd5Q6DGa4sNHnGnYX8N3/ASj4n6Kh0el+wfX/l6asSr3UQyfN5SHmmL6bPTiCf5NFT3DipE78CUn+CwbNWnm1yg8VUBpwG/uTI9dvsunwmp1rxNe76UDlnzSa3K0oD9ec6VpDxqpvsAj860MBgGqtFk9ZcAkyjF7SDxCl3WrBOJeaLT7UmyTVS/QHaNnLRLn5u01bJBt+2huUPIASvKSQMyo8wY7xo55EaRw1TKWKuhnQuf2fUetNLnBQchsWEqk21cj3bJUCOHcQWNYoIC4jZcSiWPIvOwLn9uaT6qpCxk9j1y+aYX289FwyyVEXORKNfZON7KNH8RWTHfvS+fq5zymVAJISlyq+SUKpx/hpLeg2rm/8QRB5pWxYX/f2C3utb2c8oSPtUibXkNilIcw8BVepjyDeoMIQ== NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415321)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:DB5PR08MB1095; BCL:0; PCL:0; RULEID:; SRVR:DB5PR08MB1095; X-Forefront-PRVS: 000947967F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(377424004)(189002)(199003)(68736007)(512874002)(2906002)(7846002)(65806001)(305945005)(7736002)(4326007)(65956001)(66066001)(4610100001)(92566002)(36756003)(110136002)(189998001)(101416001)(33656002)(97736004)(4001350100001)(106356001)(229853001)(2351001)(105586002)(5000100001)(50986999)(54356999)(65816999)(87266999)(42186005)(8676002)(2476003)(5890100001)(586003)(3846002)(6116002)(86362001)(77096005)(59896002)(83506001)(84326002)(80316001)(19580405001)(19580395003)(568964002)(270700001)(64126003)(81156014)(2501003)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR08MB1095; H:[10.2.206.73]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR08MB1095; 23:yY/+1DUUWS1SyUeQ5ee2ROXNg+lj7Ar39lBDAcYel?= =?us-ascii?Q?Bhk2U9z1F1/cdtU/8YGgEvTJqa24V1XIzsE0pYcqMQy6np85r/jaBfBMIDhv?= =?us-ascii?Q?P5TKjvqyqXw/VUybVP2gNiIazhQk5BfIB10CRlp7CppDtDP/WyMxEBJTtQL/?= =?us-ascii?Q?YxPhGvo7Fq3LQbXViF8h9z0d+EhEp+Fgc50aEtL9tSOe0rIjHGYQs85KAMyX?= =?us-ascii?Q?UCSlq6JXr2A3aeFdaHzKg6P5dP6tA+xEnhGD9QQQ2vGScvBJhr80bj8GTizM?= =?us-ascii?Q?CaV3XjWe9Fyv4UdA+ykRZFRW4ws5lFKPg7jL6pqPJ8V/2CmRmAAQx6yH+Ptw?= =?us-ascii?Q?YI5JYRptM0QhfYhJ3itcuvm0cHTh+dw5w5gdiJ77Cx8cCUHJCWNEf3Y787IP?= =?us-ascii?Q?QEkHmdybPdyI6Hzz5AxQPWuYEtwh8nEAJJOCI8D0gPJCqw7WHf9kBO/ziw7g?= =?us-ascii?Q?BlYYykBkH+J20r61ARb6xL8WMNDynGWZcCNK0RO5ZdfNumn69EwYbo5dLYIP?= =?us-ascii?Q?9MEMHkDI54XB/Gh9PFyfLyAVS1pA5g9w+baQMrs1AHoAZuz7KjhJEcyeTC2k?= =?us-ascii?Q?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SAi8kBXog= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2016 13:39:56.0455 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR08MB1095 X-MC-Unique: xKsZb3zbMD-MbgwKRF-IdA-1 X-IsSubscribed: yes 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 * config/linux.c (linux_libc_has_function): Return true on musl. From 294b908f9a7577bcfe8036a601262ca0bc7c2ca2 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy 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