Message ID | 20231024065742.1738440-1-neal.frager@amd.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1759557vqx; Mon, 23 Oct 2023 23:58:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGC4fS9GUAHRVxR96ALFcmhrPierrFucR0SwqrmNLxay42egV6wn3QL5tSXC4cLJfpLBWBe X-Received: by 2002:a05:622a:1893:b0:417:a209:c258 with SMTP id v19-20020a05622a189300b00417a209c258mr15518922qtc.41.1698130697493; Mon, 23 Oct 2023 23:58:17 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1698130697; cv=pass; d=google.com; s=arc-20160816; b=L9tT6i6aIhYwCVEkF1lKNuTS2nSafx0tKSBHxY45BE8EIrFbDlGgfJ8V9rQowKeh5M KwUgd3+4pd5IT3tkQbpME+4jWb7En5Ekekqfs6CtOp7EYJxIwea1IrDPcGG3Cy/v1UbR Huzrqv3ZrnHSPT17freeI/azc68HnZzvCS5T8VjJEfw/OrvppYYGYJ7Yvgzmc31pLTEG ZTTjIq/Tf7kJYMK/EroXT6IS7mogkzQRQxZ5GP5/4TRggkx5lIG0OJBRreFPaW+1YVKZ Iut4dezoQPqXcb+APMATcZekt/4HRlkQF+EzgUWQDLMt+uL66byCrKdCuaW2RgFvpUUF WdUA== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=k87FbrFO/T3l+ItNN++kJfSxxh5wehMohYazd9qqnYc=; fh=yRADZcmw/G6ekBwW/4lHPdEw06SO4uLMmcVaZMeeVeM=; b=SbBbfgTjvjKic1RDk3FjFjn/vmjnxLSOvS2XYO7thRkh9XoKXhj1XSNW6vf3lRVaoG 71toW+anNhcxfpLokqENI/LkrndkF0RQhtlhHU0B/IysJo+9LSKoXaHoHGtK2BVnG4z7 eTmB4lQY+KNR0jSOFBnF1xuIr6sZJ0+d1c4HejVoAf03LekjdEfLQAVVj3xVjafmiRc3 jSi6AcgGiDFH7dOjsT5/Rk7RKxCtLTK4WGgVsMeA6Pfm7BGLerhPZkM+ZikkdGDYtKmu PD5nCRemVFKbgDsplSc7LFoGHlmBsWHceinJoUGE5vk2hqSyK8KSoaMOZQ3MxFYqALYv riIA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qwKFs44F; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id o18-20020a05622a009200b00417db9f37ddsi6782477qtw.732.2023.10.23.23.58.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 23:58:17 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qwKFs44F; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3528B3858423 for <ouuuleilei@gmail.com>; Tue, 24 Oct 2023 06:58:17 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2085.outbound.protection.outlook.com [40.107.96.85]) by sourceware.org (Postfix) with ESMTPS id A1F813858D39 for <gcc-patches@gcc.gnu.org>; Tue, 24 Oct 2023 06:57:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1F813858D39 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A1F813858D39 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.96.85 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698130672; cv=pass; b=Mtw22Efg415dGE3hq0pieYdrHYgIEMZnlekrciNl7MBi0tdI3zDJ5GlUuWAUbSVqKclnBB681CnE3NhtyN5EDdzPLASVuZ0UwIdlIC46yaxxkTaWEJVCQ9WgtnW2OzSAnEoNmdvKIz94giplLhXi6S1cW5YHnIDtVOfimSm+nhc= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1698130672; c=relaxed/simple; bh=ayFHOAS9af8BgOVz/ePgMElhcUOtN9Iniy4W3Gp/eNI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tm2X6mYd9Dic6yKE3KPPd4HOyuXXlqO3tsSq4WfpTdgxyxz9VgBTxL+h+F1ZijVn9cJNoyameHE/X7KrMFst3hq7nPAFKix1JrWwO+a/wAfIgzRNIIVud8J3qwA1nlFjxH0iiySxu2OicpmhMe/vFlV2mgmSPXYAf8B9qQ/qt7A= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CbSsvifk841zIEpD0TtuNCIXweKJ1vwKl6a168FnMSR0SUGbtnUp1NGcwa3tc4e1YRNtpw6zpZ7NqVUu7TkNe/84NXwFW1Qsw5Lxlwrx5+sOkgj4Uf0xU+Zeja9ay1launDZSiFbqyHfTAEhZhxuS7rZ6TtF74kI6WduKkNGosJ+zNi2S+9MhCXbAm6ndtYF9Pv0AVY7SevADd7DLXE7zDNZ/JXQQcnf3ERARHqyanj0wlTqH+4wazNeEncHmQmZxPlkaVXaZoptc5687OvKoCSqXKl9VzhsVKEMZL8lJ5ro/THqGknEKr/uW38hL0Gfg6f8xB5VNGXTJzq7ld/kfw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k87FbrFO/T3l+ItNN++kJfSxxh5wehMohYazd9qqnYc=; b=O/hMMkBR1eu3VJBvXFYderCa5z7DjB8e6ADrKmTQdl6B+a4+B9H51QmUkjrPiImAjNuSjJ6m4izB3eSny/xeyeLXoJBRmXA0HlsMk9CrnBbni3ZBMArsbFWfJCufxxUYoZe5yyzM8g5qA8IgjCjOlkY1IdJL0dM5nxUI83W9BiCc8O8+Jkr9u0WvBlGxoi9glNRWzwvuL9hxZHuKdEeJAiE8tms2pcH6eNVAJ86L7sBc6QvGlakZ6mMXBvV3SA6kDRaG9Bgec3VDqyoSWCpeXxd3w9Zht8xrQjm3K2ig0Z+o0rMPbyQAwMDPjpH1l6opAqLT5jtOSXmeM4tphIpVwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k87FbrFO/T3l+ItNN++kJfSxxh5wehMohYazd9qqnYc=; b=qwKFs44FIJUewEo1d2ybSXd9NwMZJWY8blXa69QOJxryYWM9urL3I94iR9erwv25mUjyjAtUcTc6SLkvYMPcPph4sEiApt5IUHKtJdc1g4dJfMqk6jQXSMWgA/23RE/bnuQh2WqPK9T0M28Z+9Y/LrWXdDIqaejuDc7G0k1nhOY= Received: from PH8PR20CA0020.namprd20.prod.outlook.com (2603:10b6:510:23c::21) by IA1PR12MB8237.namprd12.prod.outlook.com (2603:10b6:208:3f3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Tue, 24 Oct 2023 06:57:48 +0000 Received: from SA2PEPF000015C7.namprd03.prod.outlook.com (2603:10b6:510:23c:cafe::7) by PH8PR20CA0020.outlook.office365.com (2603:10b6:510:23c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19 via Frontend Transport; Tue, 24 Oct 2023 06:57:47 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by SA2PEPF000015C7.mail.protection.outlook.com (10.167.241.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6933.15 via Frontend Transport; Tue, 24 Oct 2023 06:57:47 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 24 Oct 2023 01:57:47 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 24 Oct 2023 01:57:46 -0500 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 24 Oct 2023 01:57:45 -0500 From: Neal Frager <neal.frager@amd.com> To: <gcc-patches@gcc.gnu.org>, <eager@eagercon.com>, <eager@eagerm.com> CC: <ibai.erkiaga-elorza@amd.com>, <nagaraju.mekala@amd.com>, <mark.hatle@amd.com>, <sadanand.mutyala@amd.com>, <appa.rao.nali@amd.com>, <vidhumouli.hunsigida@amd.com>, <luca.ceresoli@bootlin.com>, Neal Frager <neal.frager@amd.com> Subject: [PATCH v2 1/1] gcc: config: microblaze: fix cpu version check Date: Tue, 24 Oct 2023 07:57:42 +0100 Message-ID: <20231024065742.1738440-1-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015C7:EE_|IA1PR12MB8237:EE_ X-MS-Office365-Filtering-Correlation-Id: 036fdf2c-ad6c-40c4-2bf2-08dbd45e87ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Isz5sTPDaf0jJsPLyNqTqLsycW0IrzY3Ew5cnYivTNkixpyF7vT9CCRSUDz1STXbGF4MlX67XkUWsdz+jrye6hX8hO7HgP8a0tm86G5hZa9JNjswPKQpQEaHBFsjFTtQrIKf//pQ0GmFmYf0+cbxjjVL71YWi7il7VH2szBlnxn59FmnMueUiGSWUy/0pjlZBAPM1NHQjnOYC4CfrMm5AUTMty8LQxFyir6CpTivWOQz/7nOnUm/g/RYzQkzuY6BD7875GUrYqfLCN5WPDvFYjaDoL5VEOnF1eCH9dAO08CdqViwo34vFJkj7d2NkSNc5hHWydgLQGSz0pBDrIHYEQY04fRBI5czNdTR1rQJ9pZ8eVpgZrVcvN9CMNYYxwev40hrGzfihmZ7+od0PmhwndS0cqWvkn3iC1MDjiEu7PO/Wh6k8nnH4Nw5w2Cy+Evgdu1NvGp3DHMOY8upd3yFYXPoC4CDA8/sGp2Kv+6vgmcxt5eIOzsq2Ygchna6AX51YaAzEFP0meJ9xEELmq1wSV/64u46ZNNyug/wT4gDR57Dkb54mCuD8zDG/RDsfuDGDfvj0mUJ3ixtylLrwTcqg5aQBrCKPL1Zg6/AKWKLXkQmuEapt38Ti2kkLnkei/4ngwv5Tx7mvc0TW38cTOohBMOUxe2jIqS5AgwlSQBFl78zBQBW421lkNlblMlio2bbMZsebf9CnmUSApZiRqoMLjMpsvy+yMRLoAhiTa8U1hBrnTwJomEGt6p6iDAgAwq6v813YPDBg1PcJxMHBXIMxeMLwHWpmHdzNBTQAQCg8G8= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(136003)(376002)(396003)(346002)(230922051799003)(64100799003)(82310400011)(1800799009)(186009)(451199024)(36840700001)(46966006)(40470700004)(1076003)(40480700001)(41300700001)(2906002)(6666004)(86362001)(4744005)(478600001)(8676002)(4326008)(8936002)(44832011)(40460700003)(5660300002)(54906003)(110136005)(316002)(70586007)(70206006)(47076005)(83380400001)(356005)(82740400003)(336012)(426003)(81166007)(26005)(36756003)(36860700001)(2616005)(36900700001)(2101003); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 06:57:47.4717 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 036fdf2c-ad6c-40c4-2bf2-08dbd45e87ea X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF000015C7.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8237 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780619094055132313 X-GMAIL-MSGID: 1780619094055132313 |
Series |
[v2,1/1] gcc: config: microblaze: fix cpu version check
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Frager, Neal
Oct. 24, 2023, 6:57 a.m. UTC
The MICROBLAZE_VERSION_COMPARE was incorrectly using strcasecmp
instead of strverscmp to check the mcpu version against feature
options. By simply changing the define to use strverscmp,
the new version 10.0 is treated correctly as a higher version
than previous versions.
Signed-off-by: Neal Frager <neal.frager@amd.com>
---
gcc/config/microblaze/microblaze.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/microblaze/microblaze.cc b/gcc/config/microblaze/microblaze.cc index c9f6c4198cf..60ad55120d2 100644 --- a/gcc/config/microblaze/microblaze.cc +++ b/gcc/config/microblaze/microblaze.cc @@ -56,7 +56,7 @@ /* This file should be included last. */ #include "target-def.h" -#define MICROBLAZE_VERSION_COMPARE(VA,VB) strcasecmp (VA, VB) +#define MICROBLAZE_VERSION_COMPARE(VA,VB) strverscmp (VA, VB) /* Classifies an address.