From patchwork Thu Nov 23 17:07:36 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: 169054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp590007vqx; Thu, 23 Nov 2023 09:08:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwdgLV4B3aPcz22UCC1h6MpS7rETcayKNlWYnMs30+hfsBefEU4J5KbtqhFprurZAobnlY X-Received: by 2002:a05:622a:44a:b0:418:152d:bf4 with SMTP id o10-20020a05622a044a00b00418152d0bf4mr7117081qtx.51.1700759284875; Thu, 23 Nov 2023 09:08:04 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1700759284; cv=pass; d=google.com; s=arc-20160816; b=XYo0rwUbPvLDK07g2cZKYw8Mq3YMqEe8Uf8t7Mfa0qHieRi5NUJ5hAt3QR0kRo3otC Zxl877wd2tBcOWIXcnGX3Hh8Pwr3bzsC/Ks15VOmacm2jImPgaCgdgv+X5mULpktA6zM 9CHxfh+S8Ob71iOdslRQoOqluJQhd/Sh7KsBzis9b+Ts3HY34DANNDDqIm6UhgbY97UF T9MHWePU8b58pn7QiIln43PbAFzsAHjy9fJKt+KxhISflt1/8uD7UtguLDfYscnx3uoC 5L6+kJS2RJ/xMptEg3zrwLQwiMjAKb35YiFGhWU/iy7Za4zHzViz3KtCrbxie4t8A3vh 0ZWw== 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=Tqyh2Zk08FmjVNE+pUa3brpDBZqwt4is6osvI6a3w80=; fh=oeK/P5AJE/SiZ4W15OGZY5BmuJv0674peXLd85mgKOY=; b=BrtAheIPLjJqibw5nqxfDEwmKqxuXpnIKJjlsYCGnomj82xlkZAG6e0//6NI/CJqAi UKlT8ern6+6TjbX0ub2gwQqrU9SS/71rdKSueaA/xfSvOf1Yi22PHNKXDpme27N55cRZ LML/t1uJ5M+Gd1CJTJm2xMBTy5e67ecD8sd32p2GcMN4f/SaVEMlL/K577V91+S6uHG3 hcexLusZhbq7DmSjdsKWWNc5N1XCDcXC4ENTV2lpcXE+huntLHb9vwgkqYD725lDpmD9 1Kxw0FYVAG9kq8AcwpdC3V/ZrsccLpByhJ2PYPf5Gim02e2TZUUQqaSJ3nzL/7zlOT7w T4eA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=rIjHw5AE; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e2-20020a05622a110200b004237ff3789esi1438428qty.363.2023.11.23.09.08.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:08:04 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@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=@axis.com header.s=selector1 header.b=rIjHw5AE; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 A021F386186A for ; Thu, 23 Nov 2023 17:08:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2070.outbound.protection.outlook.com [40.107.247.70]) by sourceware.org (Postfix) with ESMTPS id 8099838618A6 for ; Thu, 23 Nov 2023 17:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8099838618A6 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 8099838618A6 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.247.70 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759260; cv=pass; b=hRgaFImhQMIXbS/xCIej3ptkiOA8cOR4n5BCxnjz1hXh9t2FAI8Di/3o5W1+8Pl+8Hzh3kdgNlBogUP3J8webkJE8ZnIh62UiJ73ZVB7X3BhJw/tcRXx4VUf7eaz2+zpG+wsRKvRDZESqgFOA1ZAlpvi+UC83NwJjJdz57u0w5s= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759260; c=relaxed/simple; bh=iZC9x2s4GFbKaWMT//56Sm1RxPQR14C7Cn87hXxMUkk=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=EmlZI/83BG97XDezzYh54jWuxoxOkAGet54WUhM7BQK0ugSyUgS/E9QUb4n6b3CUzLuawEdaqxAXlyOMixJPbEJX7lET1aX8Z+qlPKJAFKJnfbcAveN2bcMSLtUfN+3OHA+zd/Cvxha1lOESKETtqMkZl/ydOf37PQE56pz0Flo= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a2Ho7/+XHv9EZ1pO+Nq6HXLUC7F7IDg9a7iWkGIwd+kELJdBNOGlQacfHxOYD3kvYo5JSoDfHHPYlCjFWmaq9+gmP38CHckP3PncYF8GuzTIWub2oVoo2+DKEG2WKduyMCalcByHn/ubEofZdhbrbIPJ5jR9vrvTcStrKJc2Xas6loAa7GQa9wbkpmPe/T6SroRPJWM22nze/Df45xsRZHgi+VbF8+Zdp7ttYSFtw3kWHh4jgwkz6ejMtf3maEWsyKYQZ40CZu8S+3PykqVfeM+lELCs/uPRP2w7e3Nc7A6jdWagyWhVsnPHMHcYtVL5JDFnN51jbfaSizuoa/oNyQ== 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=Tqyh2Zk08FmjVNE+pUa3brpDBZqwt4is6osvI6a3w80=; b=nhsUNIliKwiPfKqTl9kQTBIdfuLLrUmqsY2FSFxSQ5kymYcdpVG3SA0oBQrMjmfyy/w3k0X0vTnZfj5XmhhwfRpTfloLGBOCQ+3iehwBMxUgJHApkaEDnqhjfDLIfGJhAVTKqMAwYCCiK+4IAbCSz11TZZvqdLfb6CcBaYipJj9f/sonCkmAnVjsGQ233c2Br8KOhtnr1yUuqVU/oPHKhmhOHfWBC6V10nz/7ST0jmQqLEQj1kryt+EmiYNe06HMexe0A1/C+udKxKmmdEkP4f5c1p8E7wzN7/a8CnFn4yYN4lS9q1XG2KK2dnQ05rYFu8Yu7K+mWnr6xDeSeVm6sQ== 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=Tqyh2Zk08FmjVNE+pUa3brpDBZqwt4is6osvI6a3w80=; b=rIjHw5AEclnjvNLHoOd94T+nlDQSIxBqpPIRDIMWix9pgHJNlwT7xdBf9Sys4gWSUVsP5EVzGxx7TLgzLfxVVyHlgpzE6b9apYAM6qFh+s4z9dgu2jxi+F2wis751rAQVsNJ2fi5quJ1xxC7cf36d17O/Xz6ofNQFBuyXXE8uE0= Received: from AS9PR06CA0540.eurprd06.prod.outlook.com (2603:10a6:20b:49d::32) by PAVPR02MB9111.eurprd02.prod.outlook.com (2603:10a6:102:323::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 17:07:37 +0000 Received: from AM2PEPF0001C708.eurprd05.prod.outlook.com (2603:10a6:20b:49d:cafe::b1) by AS9PR06CA0540.outlook.office365.com (2603:10a6:20b:49d::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18 via Frontend Transport; Thu, 23 Nov 2023 17:07:37 +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 AM2PEPF0001C708.mail.protection.outlook.com (10.167.16.196) 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:07:36 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) 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:07:36 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) 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:07:36 +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:07:36 +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 44652E7D7; Thu, 23 Nov 2023 18:07:36 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 40CD020427; Thu, 23 Nov 2023 18:07:36 +0100 (CET) From: Hans-Peter Nilsson To: CC: Subject: [PATCH 1/3] contrib/regression/btest-gcc.sh: Handle multiple options. MIME-Version: 1.0 Message-ID: <20231123170736.40CD020427@pchp3.se.axis.com> Date: Thu, 23 Nov 2023 18:07:36 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C708:EE_|PAVPR02MB9111:EE_ X-MS-Office365-Filtering-Correlation-Id: f46e3f3e-c307-4254-f7ce-08dbec46b146 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qvLggkt464/6G2ITooANq+U7IN6gU4gReQl7+oZx67unkjVCw9ixuDtDPY0wGVmLbY43/DqOvJa2kjMoiTCao5+LGggcuw7v/7mxH4E9IjhfbfvODRhi/AI7YmKgAIttuqxLXI5s5Og/oJY4URxfimnurs0c8B4X6D4Q1jeAxjzTwyXDFIJCXq+WgiC5aNiflx54TaEeWa+Ja1ltuVPqmcq1HsFbi8DCiMGbA4rJV0OZlehRWGTb/gIwz08pVb0XV/tvhUybKwsXTk73DsKifhrcNEemSP4kIwC8O9/sZZJCBGDpsLjOcTA/1Lri4PVIY6iD+ylB4Y+mS1qnsMCCazb0r8NjUAEO+HtdYTzBbvXK9j7r7BP6f1Jg8TIxAIcT+OELNSQdNSkbsgBb1fw8dsaDON+wAN3zw2xVDsRnOt+hnLelTYPrC59aYTjzGpQjfQ0NnPHhI/5ceDQl6vNmJuvCFDyC0Fr7a5VcfEZNWDJqbBDCsccv8gG1R0Ujv/SXWm4vO4yRRkKqzQ0h+NE17pFSPDFuezbRO5ci6FJB9M+BOKL3Zo0cosvSG4SgEDfeLGEW2Y7hpWdwSVZUJt70tkgObISmt+VR0KjK7qJZ6sgi+4cDCYjUM9VakxHycTAZlz136bKujK1facEbDj2MKzFU+w15D2Au5EvElABz9NOy2Q57BXQOJIR5EpG2pEMt3i9gPn5b/k5uNCSzrdKTD3r3vmt3fVrKqR/19Lzb2mQQdbCQPbL4LxzKUtFqqkhp+CGvhgztMo4R5j7uOy967Q== 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)(346002)(396003)(376002)(39860400002)(230922051799003)(451199024)(82310400011)(1800799012)(64100799003)(186009)(40470700004)(46966006)(36840700001)(40460700003)(83380400001)(4326008)(8676002)(316002)(6916009)(42186006)(426003)(6266002)(336012)(70206006)(5660300002)(70586007)(36860700001)(2906002)(47076005)(478600001)(26005)(1076003)(8936002)(82740400003)(40480700001)(81166007)(41300700001)(33656002)(356005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 17:07:36.8672 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f46e3f3e-c307-4254-f7ce-08dbec46b146 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: AM2PEPF0001C708.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR02MB9111 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_PASS, 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: 1783375368284498667 X-GMAIL-MSGID: 1783375368284498667 Deliberately not using getopt. Tested by adding a line right after this code echoing $dashj, $add_passes_despite_regression, and $1 (then exit) and checking that I got it right for combinations of -j j4 --add-passes-despite-regression. -- >8 -- This is a long-standing bug: passing "-j --add-passes-despite-regression" or "--add-passes-despite-regression -j" caused the second option to be treated as TARGET; the first non-option parameter. * btest-gcc.sh (Option handling): Handle multiple options. --- contrib/regression/btest-gcc.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh index 1808fcc392fa..22e8f0398662 100755 --- a/contrib/regression/btest-gcc.sh +++ b/contrib/regression/btest-gcc.sh @@ -29,13 +29,16 @@ dashj='' # -j: # Pass '-j' to make. -case "$1" in - --add-passes-despite-regression) - add_passes_despite_regression=1; shift;; - -j*) - dashj=$1; shift;; - -*) echo "Invalid option: $1"; exit 2;; -esac +while : ; do + case "$1" in + --add-passes-despite-regression) + add_passes_despite_regression=1; shift;; + -j*) + dashj=$1; shift;; + -*) echo "Invalid option: $1"; exit 2;; + *) break;; + esac +done # TARGET is the target triplet. It should be the same one as used in # constructing PREFIX. Or it can be the keyword 'native', indicating 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 From patchwork Thu Nov 23 17:09:26 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: 169057 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp591419vqx; Thu, 23 Nov 2023 09:10:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHHcXIYfP3UC1uCkQZmJ/7k2V6owpTNCrGK3GPRgdRQQzMCIEExJm0Uiki4xee74zmK/Jx1 X-Received: by 2002:a05:620a:16a5:b0:776:fad0:cc3b with SMTP id s5-20020a05620a16a500b00776fad0cc3bmr6578qkj.1.1700759402183; Thu, 23 Nov 2023 09:10:02 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1700759402; cv=pass; d=google.com; s=arc-20160816; b=oud9xFsTd9oau5Ni6ffvNEn9GBcrwUuBrhc9+kK5sxvlq644LQSgWBzFSgHcA+ycNk 4FgQqOze76e0CntzwI4Y+cemxo65kdt77ggsaqAexhDEio9wuNnQ24o7BOejAYxR4FDd 2cQcDmI8BBQqZVrbZxNLQ1SeawFUrb6LWWnMyDdkdwPeTW3vgPug9rq+RxzwCayFkh1G dyNxnTaudSFxNnd3BJEiSDsM9r1FgqLbUFnsg+RVePrwWfpdNkylzA3d8PZEc+WRIxVW WT5yq5DP7VXKROtnu71k3VIk0damGGG2CjDT62Nna/tq2AY2Y4x1zmBZt57YCwdCnaDE DnAQ== 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=zZc134Rzalc5PR7nVDNVX29SgR34F7KqkIRh22GK3XA=; fh=oeK/P5AJE/SiZ4W15OGZY5BmuJv0674peXLd85mgKOY=; b=VIVt2fuM21NVONF2U42pjO88Yz0gQfR0cR8abZrGGJAQSAJJhglbRWtqKTj6W04H28 TEBZGTjNHycmaS4daJCK2/WYK86QjXEdwIjjm5EhUHwfkqcSkbnH0RScuXPGQ4f/nf0U PqP7DGMpVkepbPqqCZTyNTynSwFU55lAQRLtS3IeXpKFr3moCjPLirSSrZdQodJnXwCW ZvcYuwMUMClI9w46UEDEKxhDnty/CfYDELyP/nl/se3V1jHbTYxb3NzFjUgunoCVxg0H sK6G5AP3ZJFjQPVOPDBKfi2h5vXWQFYiNx2Tfhe+LzfUbjeRwmy6Vs4zdmOUcmwlB+1v skNg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=nf5hUYXz; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id k5-20020a05620a0b8500b0077d6d6e6e1fsi1361019qkh.607.2023.11.23.09.10.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:10:02 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@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=@axis.com header.s=selector1 header.b=nf5hUYXz; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 2FBC6384DEDE for ; Thu, 23 Nov 2023 17:10:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072.outbound.protection.outlook.com [40.107.20.72]) by sourceware.org (Postfix) with ESMTPS id B116038618C1 for ; Thu, 23 Nov 2023 17:09:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B116038618C1 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 B116038618C1 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.20.72 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759371; cv=pass; b=top4JGycm9LQgMYN3FzEKZh4m4kpL4vNBuA5MvRk6MZXchFf4Pgc/T6nOOORdIkxoboD1S/+I5UkdRJrUNNGpSaEkuAu1M4sXgNPTNSgpoeGe/do8NaN1oeomIe0M3pxxboCIV26AHaRArzpLqOQJeSIEEwz8vJPX0sxf9jiqpw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759371; c=relaxed/simple; bh=Br0gcWVjwoKHyXS1DF4j8hNOZdnPaUB0h1YKKs42PKc=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=oh2DMcQgGkNFywUG5E9QyNHWMeGRK/VvxgrGZduy2GwfROg/y7RNfreNATjrlitqnkufRhiXCH/T6A1+RhojSQdSBhPgD7KVnxUR/FxTA0foS7STiPRgpb3gfOZwfFdH7t+zCCtctPy3fXLJy2Dg5pbXrTL3vO9TBVjm6q0EJEE= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHarwYnIxsFkMF1TwvXhz4wCoU9awxBWC/WWxthBpOPMA/kEZfSc/T/My4t3468q7nwy7FnOUEpzLBvqWK+cvgLeJbuPRsMSIyCkUYiTRv+vqXjuw4UakzGhdprg/XJcQNS0FDBqG7gk9StmgtS23onAbHwDt+BPxeneKuGHQKlRHo2c6Y69yIjbVbfmhQEoh7S8tbqQdOY7UFUJhYC6bpNx+AyITzv1yMmeS1Jo5G0yfuxcN3M76MoHUpg9UQLKFR4OGAFQuglZDxq8A4UPHoq3eX6q2rNWduDVCFl1ciSHhofLHW46LwQ0uQQX9yb7vPDyZrx4V72rYvOqZa3iuw== 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=zZc134Rzalc5PR7nVDNVX29SgR34F7KqkIRh22GK3XA=; b=j799Cgi7u0FcjGZ53/3wL3chP3tNRGS2FrsEylnt4ZinkML2t9QzgFbchh55NdWGC12H9DhQuwLXg6IjAzQNNi3OInhON5rPkNgchBunvIPszr5UyUYDzwdkdQmOte+2wMbiQhWVLdyVAwwCX8vGPiyKaTkzNiVN6eDisECe6mDOlgC9gZuRB7Aq1UjgTiNL4esoD9FNB/wuCaDBH+iKBDWq7rIqYK1Lqg3xb727mVrVzPTE03vwCuwr95whIAoMlzSPO00ERGVM8slIrtwwO+2OgMlaDki+NUCbcU5FmZgiRPQc3BiXi9wqdsG0L3n0e54FjWRgpMWB2kJs8xND3g== 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=zZc134Rzalc5PR7nVDNVX29SgR34F7KqkIRh22GK3XA=; b=nf5hUYXzOhR78Pu21+4Q7ZJhzydP3Li0NqHVztmUi0RjIjQ9gQYKfCYR1b7XW9bWVfnSYbOCaTSoau27EfSrT+h8h2BcJVNO1ACu4JsKOI1qI5YO4+NhQb7IbNKKi1QMbo7eD78U/LywkIjRALWb2JgKLkpSaKCZmuQn5SqmNa0= Received: from AM6PR0202CA0044.eurprd02.prod.outlook.com (2603:10a6:20b:3a::21) by PAXPR02MB7781.eurprd02.prod.outlook.com (2603:10a6:102:230::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20; Thu, 23 Nov 2023 17:09:27 +0000 Received: from AM2PEPF0001C70B.eurprd05.prod.outlook.com (2603:10a6:20b:3a:cafe::a8) by AM6PR0202CA0044.outlook.office365.com (2603:10a6:20b:3a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18 via Frontend Transport; Thu, 23 Nov 2023 17:09:27 +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 AM2PEPF0001C70B.mail.protection.outlook.com (10.167.16.199) 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:09:27 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) 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:09:27 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) 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:09:26 +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:09:26 +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 DA2C2E7AA; Thu, 23 Nov 2023 18:09:26 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id D33BA20432; Thu, 23 Nov 2023 18:09:26 +0100 (CET) From: Hans-Peter Nilsson To: CC: Subject: [PATCH 3/3] contrib/regression/btest-gcc.sh: Optionally handle XPASS. MIME-Version: 1.0 Message-ID: <20231123170926.D33BA20432@pchp3.se.axis.com> Date: Thu, 23 Nov 2023 18:09:26 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70B:EE_|PAXPR02MB7781:EE_ X-MS-Office365-Filtering-Correlation-Id: 310191ca-2796-4dc7-7885-08dbec46f334 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ypuvVJOILrWuR458Xt8y0JQl1CvQTJfB9tGKQmc/bQkH5ZQdiLSlWmwvcQE08CTAWq9EgmQRz0HDZzcdVXoM+hCL9RKd1NXysrTP4tMoYETxX5hTnuaeXBxQ+gG/cY9UropygfCldW0FzKnmLxZd29RWO3pKPTa3pF5nDB4q+Wjo3MGRiip3qkdk1qIKuIsbtwONbX5jydsjCebA2Tws9yCIZTF3gpgLGkjDBzXDICj60wiTH1VIUqRbUCJPMO8KFx9JkvU2Es9u3BsM1F1XDQrlm8AxGQgXDnlo8bsP2dJpTw3VymQm/p2n7V0U3WQXNwvCkXBLtf6Z4UBehh4c75KkzKdqeJWYWgwxgGlwtwVXz9opv01N0dRONNdKMdNSFXRqfD8SbC4FQG1feY0yv815r7pociOQ2fvvfY2M3Wztp/O3cWM/QuR4VeDfMBh+jddFG/L8l8HuFrNTOMsbwVXaNYJVgk6OxhDfw9+uhJeZNi8DRHH3BnWUGQr8ES/x+8qGL0g3EtnipAlAtRx+Z3TBQuuHEquqODXrUQVK8Wt/qbtBHr1SFKmtL3oDHthRebZlKUYYaRQW4/ff5LvoUJ+UO+3MKZxrN1A2a9Qm6KU3Bu8XbC77yWW3VZaPfdX9weAJGtLStjs2/fIOs6aJarWktBM1MjUMJBdAax3y6eLO0VROsehx6DsF0JNAU8+l5BkG2bxdF4n2qqZ6d9thCq1nKbfdec4WA4+A5uzZE3i8Hk6PDdXdLmqTLyYsmYbCVBZVQGM5+Tomqnm3j8EIYQ== 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)(39860400002)(346002)(230922051799003)(64100799003)(82310400011)(1800799012)(186009)(451199024)(40470700004)(36840700001)(46966006)(40480700001)(40460700003)(70206006)(70586007)(42186006)(82740400003)(81166007)(356005)(33656002)(36860700001)(316002)(336012)(6266002)(1076003)(26005)(83380400001)(2906002)(478600001)(6916009)(426003)(5660300002)(8676002)(4326008)(47076005)(8936002)(41300700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 17:09:27.4756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 310191ca-2796-4dc7-7885-08dbec46f334 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: AM2PEPF0001C70B.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR02MB7781 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_PASS, 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: 1783375490849850904 X-GMAIL-MSGID: 1783375490849850904 Somewhat trivial, still tested on several runs (for cris-elf): two starting from the same state, with/without --handle-xpass-as-fail; the one "without" showing no change in state compared to an unpatched baseline (with the same input-state), and the one with --handle-xpass-as-fail some XPASSing tests I'd noticed now correctly showed up as regressions. In another, separate run, with the same input state but one of those XPASSing tests removed from "passes" in the input-state, it correctly showed up as a (non-regression) new FAIL. -- >8 -- Tests with keys that match both PASS, FAIL (or now optionally XPASS), count as fail. XPASSes were previously ignored. Handling them as FAIL seems the most useful alternative, but not counting XPASSes may be deliberate. It's also a matter of compatibility, so make it optional. Attempts to use --handle-xpass-as-fail was previously flagged as a usage error. If you pass it now, on state with previous mixed XPASS and PASS results but doesn't change in this run, the XPASS is discovered as a (new) regression. For new XPASSing tests, it's handled as a new FAIL. * btest-gcc.sh (--handle-xpass-as-fail): New option. --- contrib/regression/btest-gcc.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/contrib/regression/btest-gcc.sh b/contrib/regression/btest-gcc.sh index 3c031e93709b..684019f715f1 100755 --- a/contrib/regression/btest-gcc.sh +++ b/contrib/regression/btest-gcc.sh @@ -22,17 +22,22 @@ add_passes_despite_regression=0 dashj='' +handle_xpass_as_fail=false # can be # --add-passes-despite-regression: # Add new "PASSes" despite there being some regressions. # -j: # Pass '-j' to make. +# --handle-xpass-as-fail: +# Count XPASS as a FAIL (default ignored). while : ; do case "$1" in --add-passes-despite-regression) add_passes_despite_regression=1;; + --handle-xpass-as-fail) + handle_xpass_as_fail=true;; -j*) dashj=$1;; -*) echo "Invalid option: $1"; exit 2;; @@ -203,7 +208,11 @@ done # Work out what failed for LOG in $TESTLOGS ; do L=`basename $LOG` - awk '/^FAIL: / { print "'$L'",$2; }' $LOG || exit 1 + if $handle_xpass_as_fail ; then + awk '/^(FAIL|XPASS): / { print "'$L'",$2; }' $LOG || exit 1 + else + awk '/^FAIL: / { print "'$L'",$2; }' $LOG || exit 1 + fi done | sort | uniq > $FAILED || exit 1 comm -12 $FAILED $PASSES >> $REGRESS || exit 1 NUMREGRESS=`wc -l < $REGRESS | tr -d ' '`