From patchwork Wed Aug 21 13:32:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuriy Kolerov X-Patchwork-Id: 96231 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16A47386F803 for ; Wed, 21 Aug 2024 13:32:48 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mx0b-00230701.pphosted.com (mx0b-00230701.pphosted.com [148.163.158.9]) by sourceware.org (Postfix) with ESMTPS id 8C24C385DC3C for ; Wed, 21 Aug 2024 13:32:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C24C385DC3C Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=synopsys.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=synopsys.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8C24C385DC3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724247150; cv=none; b=IshVgqmlpJ4Txc3VvsFh7qczpSu6dyn0cX5kDKdsLXQiFtKRvusTKbcxmzJqmztj95vKmykZDkgNcZCF6TnzAC3sS/G/mU4h7yCTyxlBqcsMY9KN2sb82RSYWP/4p4B8HXdkN0EbnLoeUoYY+1mkthBBNmx/AOqUBk38pOp/R0k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724247150; c=relaxed/simple; bh=ilf5qGtQDfFNCM6CoGjF0o+WNx8HZZsQO9IV3Wo3Gv0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-Id: MIME-Version; b=wvEbzOFWXk/OVh2q5OnALvgVHQ6PN8uF20oWaHcJEyjPhQ2q+69l29xC/9S/gS7iF5P+isPGPjJLWIUNyG1Slidf7KZ+DtbCrzFwPtBAz3eC0aMrq3iPLzERT2bpiAT+FQad7tdznByDW/vAtUkCJThNAFNKzPd5hhcHS9Cmfy4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0297265.ppops.net [127.0.0.1]) by mx0a-00230701.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47LCWIJ9013094 for ; Wed, 21 Aug 2024 06:32:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=synopsys.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pfptdkimsnps; bh=OWknITXVDLh2t4MBLS3y6Bnnz/yWUIdH xtmrZsrt18Y=; b=q0YSgopBlXNrroYiluIDkA0k84MBZ4RAiqxasBPX+jGlzaOT ax66JVNzIsf2HExJPyOPZCy1l1FJmWMdZWEpxnahvDUq2Y/TMv22iP0QZwizdOTZ xPn5DKkt8B5O7A/44gTrEw1ofZ6PE+3j5iVOhIFMEMuIIlWy+w5aJQwcQR9F7Cxl mrPfj3I5/JARy7p2gXYbY2OF18r1wlkP+vKNFeJORarFk6ZTOvdqEVwnSKZeIvlT 9ty624InZ+OqNQPr1yh7VDCsC9fepqlrgwm9oU/PIbjBWtGOoqGJrIy8ZF36X46Z Gv8NpWavgYZ8CeHl3B2OksQdApQA99hNNQ9OiQ== Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.87.133]) by mx0a-00230701.pphosted.com (PPS) with ESMTPS id 414g8mgppc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 21 Aug 2024 06:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1724247142; bh=ilf5qGtQDfFNCM6CoGjF0o+WNx8HZZsQO9IV3Wo3Gv0=; h=From:To:Cc:Subject:Date:From; b=L2D2gqe38W3aqv/j8pTOjZvMxiovV4J9tPZ8vPnwnXOmNrK241EpokpvN3VyeGJAi 3du+uyKo15TWeGsaW8o4Noxhrp/PL/xyA+TfIh745oDRh+kZ9dKYV2PoxxJJIMypSb Eht29FZs5MrBZ04lP0XqrQwUaCA8XPKRefr9eVgFBWs4JJaer+Euq3Dba7t62xo4Zk 4NbVkvyhvM9Dz0WKvy00TXxfgtBWoD7J59JEE1n3qwHj5HFH+3NQVYtNtaaoFaQZHp UYslwwhqKQTu+Q2/sB0QWXO3IioCqu/HNbIwYGBWSIyy9Q3/IPZyLHBWF3fdBzWac5 ycugXd01t+7tg== Received: from mailhost.synopsys.com (eudc-mailhost2.synopsys.com [10.213.161.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id A0CCA40361 for ; Wed, 21 Aug 2024 13:32:22 +0000 (UTC) Received: from SNPS-HRlPxd6IgG.internal.synopsys.com (snps-hrlpxd6igg.internal.synopsys.com [10.120.15.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mailhost.synopsys.com (Postfix) with ESMTPSA id 6BF2DC048C; Wed, 21 Aug 2024 13:32:20 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Yuriy.Kolerov@synopsys.com To: newlib@sourceware.org Cc: Yuriy Kolerov Subject: [PATCH 1/2] Update config.sub to GCC master branch version Date: Wed, 21 Aug 2024 16:32:02 +0300 Message-Id: <20240821133203.2090838-1-ykolerov@synopsys.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=HYFGTTE8 c=1 sm=1 tr=0 ts=66c5ec67 cx=c_pps a=t4gDRyhI9k+KZ5gXRQysFQ==:117 a=t4gDRyhI9k+KZ5gXRQysFQ==:17 a=yoJbH4e0A30A:10 a=jIQo8A4GAAAA:8 a=MFYR9OE6n-BDk23MGTQA:9 a=Lf5xNeLK5dgiOs8hzIjU:22 X-Proofpoint-GUID: XA_wb_4VxY29Qlwl4uLmidvSow2UWy_R X-Proofpoint-ORIG-GUID: XA_wb_4VxY29Qlwl4uLmidvSow2UWy_R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-21_10,2024-08-19_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_active_cloned_notspam policy=outbound_active_cloned score=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2408210098 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org From: Yuriy Kolerov New config.sub contains support of Synopsys ARCv3 targets. It's necessary for further porting Newlib for ARCv3. config.guess has not been updated yet in GCC. Signed-off-by: Yuriy Kolerov --- config.sub | 81 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 53 insertions(+), 28 deletions(-) diff --git a/config.sub b/config.sub index 63c1f1c8b..38f3d037a 100755 --- a/config.sub +++ b/config.sub @@ -2,7 +2,9 @@ # Configuration validation subroutine script. # Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2021-01-08' +# shellcheck disable=SC2006,SC2268 # see below for rationale + +timestamp='2021-10-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -50,7 +52,14 @@ timestamp='2021-01-08' # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. -me=$(echo "$0" | sed -e 's,.*/,,') +# The "shellcheck disable" line above the timestamp inhibits complaints +# about features and limitations of the classic Bourne shell that were +# superseded or lifted in POSIX. However, this script identifies a wide +# variety of pre-POSIX systems that do not have POSIX shells at all, and +# even some reasonably current systems (Solaris 10 as case-in-point) still +# have a pre-POSIX /bin/sh. + +me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS @@ -112,9 +121,11 @@ esac # Split fields of configuration type # shellcheck disable=SC2162 +saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2