From patchwork Thu Feb 27 14:31:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel X-Patchwork-Id: 183950 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4583706ile; Thu, 27 Feb 2020 06:32:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyAPn2xNMDQ7pKTt52+53WvQ17S6vkw9aRhYoxUcVZpnQ+jjBqSxYnjYOxg5e+Fqa19NtVy X-Received: by 2002:a05:6830:150:: with SMTP id j16mr3408751otp.301.1582813925458; Thu, 27 Feb 2020 06:32:05 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d65si844744oib.5.2020.02.27.06.32.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Feb 2020 06:32:05 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-520245-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=UjDXRECB; dkim=neutral (body hash did not verify) header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=cC567aZZ; dkim=neutral (body hash did not verify) header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=cC567aZZ; arc=fail (body hash mismatch); spf=pass (google.com: domain of gcc-patches-return-520245-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-520245-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:content-type:mime-version; q=dns; s=default; b=OTnJ4KEhLbbyXlc0+ceiLjV0dawFoy3dKBF35m0p8BkPnDZYbf YWhwJRWPoauM6hroGqVg66VwRxeFcBoFZPVpfpLe3GZqhdK4aY5dh1LEXuBRVwvc P/SY2MAsmXm+np/Nrl1Z44chxyR45dnZj2QzVYa9zZdXtALiztvCmwpto= 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:to:cc :from:subject:message-id:date:content-type:mime-version; s= default; bh=+dtx9L5QeR9pmVqRTMS1ksOO+Lk=; b=UjDXRECBXPWYY1953Uxw q+Wd6ZS38iTEDnHGWYKWRMDW6cufCBtgmtVvvWyqC9eGU1IaBZIAPwLobRhN3/6E zUJnh5NJQy+ctWjpEP5a5xEjxWS/Lk3Y3btTRryJPn3n9EeNPnz1++IljBKZPMqd w6shlxIkN5za6rZPaVNpmVk= Received: (qmail 111178 invoked by alias); 27 Feb 2020 14:31:54 -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 111167 invoked by uid 89); 27 Feb 2020 14:31:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=HX-Spam-Relays-External:sk:mail-am, H*RU:sk:EUR05-A, H*RU:sk:mail-am, HX-Spam-Relays-External:sk:EUR05-A X-HELO: EUR05-AM6-obe.outbound.protection.outlook.com Received: from mail-am6eur05on2068.outbound.protection.outlook.com (HELO EUR05-AM6-obe.outbound.protection.outlook.com) (40.107.22.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Feb 2020 14:31:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iy4PpJUa+FhbnI7c2mq/6FAxLu3BWCM/eENnw6AwZGA=; b=cC567aZZOV8eqP7mQjx1kXX96AjFuXZFiypmfNlcNM+U6VvRu7h7ysRCuXzyRxYjeNH4SLZ6rfTqx9FgtPuVrZwLUOSTDMVQCaJMqyCSrgiHRU74+U8t+fH58kNmn1oy4Dt1h9EjIyhSvBVl60dWvQmm38ncbpDf3ops8zXI5CU= Received: from DB6PR0802CA0040.eurprd08.prod.outlook.com (2603:10a6:4:a3::26) by HE1PR0801MB1979.eurprd08.prod.outlook.com (2603:10a6:3:4e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.21; Thu, 27 Feb 2020 14:31:47 +0000 Received: from VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::203) by DB6PR0802CA0040.outlook.office365.com (2603:10a6:4:a3::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Thu, 27 Feb 2020 14:31:47 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT060.mail.protection.outlook.com (10.152.19.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14 via Frontend Transport; Thu, 27 Feb 2020 14:31:47 +0000 Received: ("Tessian outbound 62d9cfe08e54:v42"); Thu, 27 Feb 2020 14:31:47 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9880b50587453b8b X-CR-MTA-TID: 64aa7808 Received: from 0bfef96cdc9c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4586975F-5AFA-443C-BF86-375F86CB78E8.1; Thu, 27 Feb 2020 14:31:41 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0bfef96cdc9c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Feb 2020 14:31:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ajn/PuhuViQNkmPOgf7KbBBDIokRqf1/SlwinDjpYkGegrfbsYGml3GIQjyD7QAbN2Mv4QgwP0x/tzRY5KEUCYprkMfZl4FlnzsSgtcA+cBo7HR++CAMRqbnGfGChvIgobaSp9zZcn0mI1pFUSLxzl+iva79guDDEGwuE8pGQ/MOT3jJ+UGBNTts4hnwoTjVtM2h4X5oIrG9rqwIVlHbTxhmv1VRgoHGGBRtar4jBaEYX00Z6quqIMst9M/2UNcgzd8XyOn54SQSp3EhTVd++A5ziVXy4+WDzlAeS32A/RqjfJvZawpzxaI1W7YUZMZsImUiGVI5JEL2Fqp8qXtoeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iy4PpJUa+FhbnI7c2mq/6FAxLu3BWCM/eENnw6AwZGA=; b=KhG6v7qTKbxh7uQOpdASg0nwKFB3BaRvcXvUjEKibJauAQIZUNE/b0MOgGve9XAIvwRxddSn0/4XflCiAz0fDAahxM8gYYY8lUMpxug/44DZUzGVbWhHMMnt7hbD4tysoz7xQ4crVvSJXMHQ/DQhYzCHeoVRZC3tNOvRLzT/hE5DQ+ZKmbb8Lpj9BbPK4o9rdgeWbr4sww70qod2CJ0wtJP3N5+3/LQuA6D+fJ90t0zYe/B3WAlH6HjfhKMa+Gpm/iD2d/346WnuEUV1Y7THpAe0VMg/fsomtw9jgRNa9aR3MejcXSyYat4ILn1EG6zbEEW66yBVS0KlFCZVgYVEcg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iy4PpJUa+FhbnI7c2mq/6FAxLu3BWCM/eENnw6AwZGA=; b=cC567aZZOV8eqP7mQjx1kXX96AjFuXZFiypmfNlcNM+U6VvRu7h7ysRCuXzyRxYjeNH4SLZ6rfTqx9FgtPuVrZwLUOSTDMVQCaJMqyCSrgiHRU74+U8t+fH58kNmn1oy4Dt1h9EjIyhSvBVl60dWvQmm38ncbpDf3ops8zXI5CU= Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Joel.Hutton@arm.com; Received: from VI1PR08MB3328.eurprd08.prod.outlook.com (52.134.31.139) by VI1PR08MB4093.eurprd08.prod.outlook.com (20.178.125.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18; Thu, 27 Feb 2020 14:31:40 +0000 Received: from VI1PR08MB3328.eurprd08.prod.outlook.com ([fe80::58ab:c7bb:8931:a509]) by VI1PR08MB3328.eurprd08.prod.outlook.com ([fe80::58ab:c7bb:8931:a509%7]) with mapi id 15.20.2772.012; Thu, 27 Feb 2020 14:31:40 +0000 To: GCC Patches Cc: nd , kyrylo.tkachov@arm.com From: Joel Subject: [GCC] Fix misleading aarch64 mcpu/march warning string Message-ID: <1c368ec6-51a2-6e11-d0d2-c1e5193d5679@arm.com> Date: Thu, 27 Feb 2020 14:31:33 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Received: from [10.2.79.42] (217.140.106.51) by DM6PR02CA0127.namprd02.prod.outlook.com (2603:10b6:5:1b4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Thu, 27 Feb 2020 14:31:38 +0000 X-MS-Exchange-Transport-Forked: True x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:61;OLM:61; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(39860400002)(376002)(366004)(346002)(199004)(189003)(26005)(31686004)(33964004)(8936002)(81166006)(52116002)(16526019)(6916009)(81156014)(8676002)(4326008)(2616005)(6486002)(186003)(86362001)(956004)(66946007)(36756003)(235185007)(316002)(16576012)(31696002)(6666004)(66476007)(5660300002)(2906002)(478600001)(66556008)(66616009); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB4093; H:VI1PR08MB3328.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: tGfKDXrZ0AKO9jOdICJB6PVqUo/c4EF8xIv+3F8ksXi/6NRBg6fSyLZNWIglbCB3L6uzsFhJ/qDL4IYt9c5JQdtuNt8hVJI0wBLI99qDvuEmZjDNQ7JwcZxTje4LIsW5pb9vx3sixJMe4cSMb30zBhEMpc3JvML1330z8d/PVzXuQN+DFofaCMWypPly6fwauM+78SVghwxoiEJGaZ/8pm6L04eVT9C+z/16pylAhCna7LniintUSS4vRoxGRXcF3D2kPi/FnwljBfUtI/2lvz21x0VWGDRHULwYYUa1A2UIv7vc4Vyq3r4bbOdbo7kIqQwf4tS/ZH4BCDXY79o0XoFS9sWHisEJapjhp/jxOoilhP6TJ5FXBzFn6mMpRqukuy9Y2lRs/pWDGij9/ZTHo1U0BsYxtyzoYFshOResFhypGPHBeImHkqnbA00wOYwO X-MS-Exchange-AntiSpam-MessageData: St/8ftqT6/Dc6s9xh7ll8jzuhx6afWyTuIAaK1reQkqi3LB6vlS7V7cJ332yeC9H+bt+FWxsXpXeUtwk8sazQuoEHKiR9Od+kmeQgdlbabOIdP6GDs68/7hmRRGMSYt+sF4LQGOwKfkMsBTJ3tZKww== Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Joel.Hutton@arm.com; Return-Path: Joel.Hutton@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 51b200c5-b910-4cd2-5018-08d7bb91c248 X-IsSubscribed: yes The message for conflicting mcpu and march previously printed the architecture of the CPU instead of the CPU name, as well as omitting the extensions to the march string. This patch corrects both errors. This patch fixes PR target/87612. before: $ aarch64-unknown-linux-gnu-gcc -S -O3 -march=armv8-a+sve -mcpu=cortex-a76 foo.c cc1: warning: switch '-mcpu=armv8.2-a' conflicts with '-march=armv8-a' switch after: $ aarch64-unknown-linux-gnu-gcc -S -O3 -march=armv8-a+sve -mcpu=cortex-a76 foo.c cc1: warning: switch '-mcpu=cortex-a76' conflicts with '-march=armv8-a+sve' switch gcc/ChangeLog: 2020-02-27 Joel Hutton PR target/87612 * config/aarch64/aarch64.c (aarch64_override_options): Fix misleading warning string. >From 67e2be75db63238bb8d4418db70fb5876465f9f7 Mon Sep 17 00:00:00 2001 From: Joel Hutton Date: Thu, 27 Feb 2020 12:02:09 +0000 Subject: [PATCH] Fix aarch64 warning for conflicting mcpu/march The message for conflicting cpu and march previously printed the architecture of the CPU instead of the CPU name, as well as omitting the extensions to the march string. This patch corrects both errors. --- gcc/config/aarch64/aarch64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f53c98e73765387974cc14f3d3ab4840a9331a08..4b9747b4c5e70432e900b4087eaefab6da6e162a 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -14131,8 +14131,8 @@ aarch64_override_options (void) if (selected_arch->arch != selected_cpu->arch) { warning (0, "switch %<-mcpu=%s%> conflicts with %<-march=%s%> switch", - all_architectures[selected_cpu->arch].name, - selected_arch->name); + aarch64_cpu_string, + aarch64_arch_string); } aarch64_isa_flags = arch_isa; explicit_arch = selected_arch->arch; -- 2.17.1