From patchwork Tue Oct 24 06:57:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal" X-Patchwork-Id: 737524 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp1888453wrl; Mon, 23 Oct 2023 23:58:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOpstWSLIcsKmq+oIvKPXBb8eN3iCkJdx53Csod6fSu5DpYdmBP7oNNBLbHA1hWB9J0b1r X-Received: by 2002:ad4:5c67:0:b0:66d:9e70:61ed with SMTP id i7-20020ad45c67000000b0066d9e7061edmr12427567qvh.3.1698130705744; Mon, 23 Oct 2023 23:58:25 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1698130705; cv=pass; d=google.com; s=arc-20160816; b=tEn6EaFyuAlxpkiODypLrRVRIYjB5dJiomrpfc1833ksgpa15nK3Ia19uuaBqykU3f yb/hYq8vs7wefG1vZoGA8BDkGkHY2IkgvHP0X/VW43ykVuYKH8F1v6K5ZUsPN8YcCKBR +MGPVnrtvc5lZ+aSNraaMyRCXKcLAnehtzy8opfCEfdswK3iUjSrfpS1dObp+j2zQFIk ilnV5sD7GydzHJG7WT9BigizRbT6XFftg77/EuQTbQ/gsbzzhbUQYOf/19lcU+njDl5/ BGZ/eZZLdWjOWI+IrgU9yU1lIgKU/xCvN2B8tCsE/MI44FuSwfsTszhs4ovV6p0gsNlW ec9Q== 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=uKek1dxryse/2iJrqZCGnyN55ij1Yv3brKbF+eEApA3RJ9DtfWCkAzOcnHG9ocvT3X xY5iUUL17lVBO1pvJod1P+BDfZytYQWE01ktQBjawlQHwINTOWGY8izKOw/f0V6679gj WSFLLp8BEmlDi4UhsHxGml94SzCSnXW6x/0N1Zoci9XoD5BqsIjniADE3R43yHoq3/1Y s3MU91SguovtG74JLV0WXdayuCF1ITIlFBcBlNSDS4cWNvwCr+Js7bmtmtuwBdlf1O99 2Zo4B/gPlQIBshiAspzCihU95dXtuimfLbhPArMHD9eF9D942nU2gUxHjFUWsMUz/aBW 6Dew== 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+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id df17-20020a056214081100b0064cc98b83fasi6498893qvb.604.2023.10.23.23.58.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 23:58:25 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; 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+patch=linaro.org@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@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 5A9303857C45 for ; Tue, 24 Oct 2023 06:58:25 +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 ; 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 To: , , CC: , , , , , , , Neal Frager 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patch=linaro.org@gcc.gnu.org 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 --- 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.