From patchwork Thu Nov 23 17:08:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 169056 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp590655vqx; Thu, 23 Nov 2023 09:08:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRJ8hXSbZzWwvHdvOVE3qPoAjD+FFPh4vfDcaeRVu4l9109r9apj/WphQv38KmA1xmx6sb X-Received: by 2002:a0c:fc50:0:b0:679:f26a:7e2e with SMTP id w16-20020a0cfc50000000b00679f26a7e2emr113147qvp.7.1700759334709; Thu, 23 Nov 2023 09:08:54 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1700759334; cv=pass; d=google.com; s=arc-20160816; b=jjrI/y2UNBxVZaQwTcmJES31gg1ze5AHdoY1g5cvtjxkyPC4qAPuzRNDdHP1vYoFUz GgvRn9PmddfXfk/u05+hK6veQi8LMICyT1Jy2xtGT2M0WjkBty+F+Na6HJByLiQ3ksR9 KU+Dhm3WmOnxvkCOGiltoGGBGma5g0dVgkyMdQnW8+M66Hx4LT0b5AB3v2KQ6kIzuccW aq5JRMoXS1eIndD0TiUBxGO9aucau5pknomYYs1ouH7Zt11gHtkdD4nBcGA8uR7iBYAE M1nqS/j3eeHyqmm8l2ckblkRiqpG5DCH9pHL+uYunjxheO1oVWai5pcQH7Tb2LqaNG7+ vHgA== 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:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=TrektdAxgJxS9jRRvVWvrGfvAuFHklQWfqyHBV02n+U=; fh=oeK/P5AJE/SiZ4W15OGZY5BmuJv0674peXLd85mgKOY=; b=gHuRbcBxIL4vci//n6u1zAlC4PL5RtJh9dO0NNceKEu+uoMiD5nzqOKiJZQjGiIpha 0RqVWJVK9n0PD1xx2gc8HfLBG30cTzswOtRUDr0sWsZtDs0+FtDPS+LQ1yK5aYIo8XGj scWw1/bqFG0TWUK1ofL6G5X/3ZLWKMVlVq/tDmXHfCGovzOPT/Yu/ZJvgIBjS+0Nb+lz jHjf+I11p0r3Tl/t7TreYDjDn0KyG/g6GSg1AWQrinVifXWsooeQfukunO9ybslphO7p CdZcLdJD0bfDhaPTRNaC8C30bATO1ODx1UPn7ySSWJ4UpPQuS9aVs4Bs9qFKdWdJIVxW GKJA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=Vvbyhy4t; 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=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fn4-20020ad45d64000000b0067a00020e8bsi1568993qvb.423.2023.11.23.09.08.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:08:54 -0800 (PST) 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=@axis.com header.s=selector1 header.b=Vvbyhy4t; 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=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 79AA33864873 for ; Thu, 23 Nov 2023 17:08:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2043.outbound.protection.outlook.com [40.107.104.43]) by sourceware.org (Postfix) with ESMTPS id 59688385414F for ; Thu, 23 Nov 2023 17:08:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59688385414F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 59688385414F Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.104.43 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759309; cv=pass; b=Ilr4QWjaGG6b8z2jE6qMAP3uoZlxjS6Y5Pohn+N7r1+1f3D/zr2P4dwPsPPIWbOee5peTU1vlNlb/KsAWWzHRjpXydsxiupD1kYRRUMnXQg+lsXiaOilY1bjRzfByepjcv3LiqCqP0XixLKQXqDVqsRS2iUgZyoAYFxtTzdH8GA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759309; c=relaxed/simple; bh=ojEmw3VR16pje9vQ+u0wCiqDXw/fdXCJAyUQcCU2/nY=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=dM7Lo9PFT5zOqH5KD7XOO6bjKvhfGhxpLr9lilvS0drKqoRM+en2vVYFay+oNl8YEHnwfFqBxXM71KlbBui3FhShAWmf9W06K1lBK96Tv+38Frp+dIS/Pmh82RGpz3fQCyZowVXUy3eUsR3j4N1S3jGTEger2QFtZuPGt4zvQKY= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HzcZnT19i/RgOia9nyIUnryR7QC8CL+VkFsl+uRywtUU/oY6UOo9s5u/WhS43v99zZcMx7qmwGjp4cGXhgSRj8f80WiiOCLiWtflGOQAb2hbBdcFu+I9uQEnDkjkUY49sD22fnYzJqFRkZJ4XYZdu0gVLeeC1lX7p9jhK2/gtMGh7xNoZdCmAfRQq8z/jLmOzQJUdMkw7KaZjEBXjvDPzdtcTnur1KQ+VsT4wgHlFvZOml6XXWNv5FbRhBaqJDfks7rwN+oaNAx8ocC66JO0xtQc5AofLAm2AsU3Evkf2OVrhRcg0PxnFSOB/CQJ4QOPpsGOrCDJQM/qVXcxv0MeQw== 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=TrektdAxgJxS9jRRvVWvrGfvAuFHklQWfqyHBV02n+U=; b=gRPIMnrktm5BELUE94nsJFy5Ycpt5KnXET+R32ioQRf8XyTMkPAfBVC5DQXXkoNoHGXObyscplWz2GrI0lwZzcnRXGGBEjIvu2PIhChYanz+WD94lZFLVd9F6Cw6ZGnddGto8PH7X4B3ZSme2g9Y0C8lwJqkzl44mPuzw8sOKyjKWmA7vBErwGysF+LRCBRp2lsCH+8uaUC/xe5E2ULV5wfMC2qdywFLE2ACDCWsbbLPzyfl0B5rSaLMyHL+NWPh+WK+jJaJ4wTM0UOGJW9W8wCasUpYJxDYyMURwSFhAgYEfPvHDQ/VOXGxd7FS+reBqXjZI7Z4nXK9xr36cL5L4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TrektdAxgJxS9jRRvVWvrGfvAuFHklQWfqyHBV02n+U=; b=Vvbyhy4tvaPzlGmkT01FurJYqpupjwFuqHGSFIEhm/W9a74PWz5tWvLeByBVmL1PvQz5VJN0OtzQct86mwO9Yg9dBJaREjRCgtWbL3fZVE23TZp6eZy12C8s1p8UNMhP6zElNLWOLt4H6ExrsHgNYDB/Qf92RXip4eePyAldGes= Received: from AM7PR04CA0026.eurprd04.prod.outlook.com (2603:10a6:20b:110::36) by DB3PR0202MB8964.eurprd02.prod.outlook.com (2603:10a6:10:432::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 17:08:21 +0000 Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:20b:110:cafe::a9) by AM7PR04CA0026.outlook.office365.com (2603:10a6:20b:110::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20 via Frontend Transport; Thu, 23 Nov 2023 17:08:21 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7025.12 via Frontend Transport; Thu, 23 Nov 2023 17:08:20 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Nov 2023 18:08:20 +0100 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 23 Nov 2023 18:08:20 +0100 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 5FB4FE7D7; Thu, 23 Nov 2023 18:08:20 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 5BB4120432; Thu, 23 Nov 2023 18:08:20 +0100 (CET) From: Hans-Peter Nilsson To: CC: Subject: [PATCH 2/3] contrib/regression/btest-gcc.sh: Simplify option handling. MIME-Version: 1.0 Message-ID: <20231123170820.5BB4120432@pchp3.se.axis.com> Date: Thu, 23 Nov 2023 18:08:20 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70F:EE_|DB3PR0202MB8964:EE_ X-MS-Office365-Filtering-Correlation-Id: 61d4fb83-de69-4f16-4666-08dbec46cb7a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wgg4IC4TZYBkCHenZitePUoyngOKot+UaV3piaQf0PDZRWAWYxXlNH7QJZQDzdcLjhb4ah77I8N7CvDhDEMSjid9GIEptZvmjllNRUb8eiBThcCvGC6C1K86Zg+pG1zEmhGiFV5WZ7/HjGBmIR8TrFhfFTR4m6z5/t2vIVNgZBw8shnWjXecn5mf7GCbdPwCxEQC9leLdJKR+xVgxrce3hdiSyYtgmYyvZIdMUxvjqOMj2KFURoBVkmCtPzz/84ac3/xPHJzmDUB2lSl9cr7iz+iWWAZrHwF01rZlPICY7faBiOTyXcZV9EkmPlJqb0WqTtxnWQjZ3E3NdB/PBhXQyzODZZFYm5DrLhChWYu5rL1gEOIkWunEvepXBuXR7htEqrLPYUFabuC1Q526HEtkAkI3LoyEQgrFNRXXHh0voEE6ADpyfE3t3j+0LdJ4HAp6Id/ji3SUY1c++FFzqjFM4R2wgzgKI9bjJr1tsa3k2ZmlMcir4ldKiHY3FGNiI8cY1Q8DGp3gZhXX2oP3hcCUDdxBXPdTUfznZh4Crmk/h1Ml2doXg3W7Yu4uA5vQXJ8RhNA3hSyM1MEYuYLctty9J2oJWHwlJpCQY7J//xcGx2b3bZZaF2mJQTdreTk/22SakqU//tkgQhL3tpj8MjlihAb535p1XJmIqfChu/9syQhKjcADKKstxBJXmTvMKjss18XqR8xrzAUHldB+WTpTvytdZHArBBobFvPrzFT8mYGNkeiC6oFFgIO/MTf9piTYd65rH95tOLMScINjgOEkQ== X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(136003)(396003)(376002)(346002)(39850400004)(230922051799003)(1800799012)(82310400011)(64100799003)(186009)(451199024)(40470700004)(46966006)(36840700001)(40480700001)(40460700003)(4744005)(70586007)(70206006)(356005)(81166007)(82740400003)(33656002)(47076005)(6266002)(36860700001)(83380400001)(4326008)(26005)(1076003)(426003)(336012)(316002)(6916009)(42186006)(478600001)(5660300002)(8676002)(2906002)(41300700001)(8936002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 17:08:20.8242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 61d4fb83-de69-4f16-4666-08dbec46cb7a X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0202MB8964 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783375420027095772 X-GMAIL-MSGID: 1783375420027095772 Tested as with the previous patch. -- >8 -- * btest-gcc.sh (Option handling): Break out shifts from each option alternative. --- contrib/regression/btest-gcc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh index 22e8f0398662..3c031e93709b 100755 --- a/contrib/regression/btest-gcc.sh +++ b/contrib/regression/btest-gcc.sh @@ -32,12 +32,13 @@ dashj='' while : ; do case "$1" in --add-passes-despite-regression) - add_passes_despite_regression=1; shift;; + add_passes_despite_regression=1;; -j*) - dashj=$1; shift;; + dashj=$1;; -*) echo "Invalid option: $1"; exit 2;; *) break;; esac + shift done # TARGET is the target triplet. It should be the same one as used in