Message ID | 20220927151214.1082396-1-andrea.corallo@arm.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp385367wrt; Tue, 27 Sep 2022 08:13:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yDKTyZrlzmCTgfenfGjn/PLPtXTa/yEwQLh+BMqflq/0CNFLks9J/VLBkp06TF3qf3XEQ X-Received: by 2002:a05:6402:538f:b0:444:c17b:1665 with SMTP id ew15-20020a056402538f00b00444c17b1665mr28316583edb.98.1664291602706; Tue, 27 Sep 2022 08:13:22 -0700 (PDT) Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d10-20020a50c88a000000b004571dde2529si1589545edh.537.2022.09.27.08.13.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 08:13:22 -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=@gcc.gnu.org header.s=default header.b=GY+9NqZt; arc=fail (signature failed); 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 973E63858015 for <ouuuleilei@gmail.com>; Tue, 27 Sep 2022 15:13:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 973E63858015 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664291601; bh=0P4dhi1ZMNpzMvHxarL2BNz2yU9LV0NXj50RpKuOHTk=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=GY+9NqZtflhkl7S8IMvdZt8KbFtgOd/iHWrP2vAvCn/jTRUL0wEqB7Tu9WZUdg3EQ ME7Khg151rdMDQbAOX2HCKkS/ZrTlH8PC8KULWzrwLkdF2AXKtzF3Qb0F775joC7yC 3HCEGmsxBh1VBZj3pRCkoZZvGrXYh760LqFqxgrU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00040.outbound.protection.outlook.com [40.107.0.40]) by sourceware.org (Postfix) with ESMTPS id 945183858435 for <gcc-patches@gcc.gnu.org>; Tue, 27 Sep 2022 15:12:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 945183858435 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=C5GwLCqSmoL6ySBrIer9o2TCmHPIBPLbHriRxCxhSfHUlLoMHNA1Y985nkIZ7veP2SS4BwwBLyhgfRwtvqDXV4NGC3qVtSvgZvTZWpBmrfO2bcx8KRl6dWXRK8qdq67ZSZXLWobzesDFhUKM88YgDCX0Ln9pcEhatWtaR9LARuIsS9XKlg2Vocz4h/dHYVJeapR8htlI3BiUADtRmwlNNH8mKN0oi8zWsc9vvjy+dZHZc0wJaLjEIvdVTOx69qXqSm0yOu/vJ+kPW0xmaz04UgIBDUgXW+QHTblBsDjvIqWQI1t9PnhBg+D+Z05IqKgJA+qz72aIwu1Ar2LMz7fYUg== ARC-Message-Signature: i=2; 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=0P4dhi1ZMNpzMvHxarL2BNz2yU9LV0NXj50RpKuOHTk=; b=kiHNA1BFZdILRHqbSMhFsuYGBm4VvXvGGAJpkSs3gO8fUsX8C5efnHb/m+K0ga51yWIzqa75Zwik2gbXWXcWtdZrQfGoA6QG1/kiFqW/72dhhkhWAWpyshDsfCS50b1JQ5G/aiVzCuskvUr7gGpSqoEuAj6utX2+vw5dqZkaKfbIaDlnn8lIOJdHV6DnpZOLrdtHdpaoxeIJ0PYreufYze81LgNbMdD5BYLzuSzB0lwIjfS/W0vuLjbEBQWICiA524qBjkzdp0GLd76lOHitD8Uej5tSx9CXgGSOWqaRDvZ27LGnXPhydqrdK6ui5fUU3SyMJmJV343/7qSBJNb+nQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from AS9PR06CA0593.eurprd06.prod.outlook.com (2603:10a6:20b:486::22) by PAVPR08MB9090.eurprd08.prod.outlook.com (2603:10a6:102:327::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Tue, 27 Sep 2022 15:12:30 +0000 Received: from VE1EUR03FT054.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:486:cafe::a9) by AS9PR06CA0593.outlook.office365.com (2603:10a6:20b:486::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25 via Frontend Transport; Tue, 27 Sep 2022 15:12:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT054.mail.protection.outlook.com (10.152.19.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Tue, 27 Sep 2022 15:12:30 +0000 Received: ("Tessian outbound 7e4a920b87c0:v128"); Tue, 27 Sep 2022 15:12:29 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 64f52140c7a4fa7b X-CR-MTA-TID: 64aa7808 Received: from d450613fef27.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1F3C4896-2115-49AE-AB22-22374381E5DC.1; Tue, 27 Sep 2022 15:12:22 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d450613fef27.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 27 Sep 2022 15:12:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ph5IF6f37bmXe66LUTcFhyZe1TBOrX1AvtG4S1m64G1lqZc61iqhB0957L5qhNWhLFgsA5wpVvPxxp2DjdXnNA5AFvtfzk+n/WekoqmVhXfpM0GvbzM5Xf6KeTEnE8oezOWTpRj5qPSrr9sBRCr9WWnq5Ax7kCYl3ZIbOpr/vcB2y/XoWwGOxKtrc0NPETZN84JFjW7Vvb+k4xwa25yMuoeETA0G60H7XJenuNLZeucI9GNckeJ05idfY+BefhGIMCrjolTAB3ceIZOoaYaaHe4sBaacNoBmYsVeDzW9ADtj5mVUKeWj6cEjE0krgaTMdUhefOwHk8FS8lJQRjpOGQ== 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=0P4dhi1ZMNpzMvHxarL2BNz2yU9LV0NXj50RpKuOHTk=; b=OvJIH80d3S3llGTyijomu7HrkU7qbeCsPvxl7cieTYRLfFfLNwk1JN9Z//bLIDPUWa+RAmx1Ve+0wapT118QqkVodwUcyMp+Qb86W7Q67aC2GTLNrJJy4y1fMJu/S/zJFR2WKAAU7aTMYyfnvv0+BW4OrX0ZRC5XuFcptRbdvFcrHRdGBiFjo2fk7ePkrq8UKjQYjCRjr5YROdMcSiDN7/HT0zxPEfLsyvB2OPWHaKIPwQTtn3EXCXRJYGqXHrAQ1wSz3W2bWAmXTCjgZUbIrXPCQRx0ucNqpafjCB76XQbxGGDPNxLeJMOt/6Rq4Vs/2xkTgFva5+vcD8hBj6s36g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AS9PR06CA0680.eurprd06.prod.outlook.com (2603:10a6:20b:49c::24) by DU0PR08MB8685.eurprd08.prod.outlook.com (2603:10a6:10:403::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.15; Tue, 27 Sep 2022 15:12:20 +0000 Received: from VE1EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49c:cafe::b4) by AS9PR06CA0680.outlook.office365.com (2603:10a6:20b:49c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.24 via Frontend Transport; Tue, 27 Sep 2022 15:12:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT042.mail.protection.outlook.com (10.152.19.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.14 via Frontend Transport; Tue, 27 Sep 2022 15:12:19 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 27 Sep 2022 15:12:17 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 27 Sep 2022 15:12:17 +0000 Received: from e124257.nice.arm.com (10.34.105.24) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Tue, 27 Sep 2022 15:12:17 +0000 To: <gcc-patches@gcc.gnu.org> Subject: [PATCH] Don't ICE running selftests if errors were raised [PR99723] Date: Tue, 27 Sep 2022 17:12:14 +0200 Message-ID: <20220927151214.1082396-1-andrea.corallo@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: VE1EUR03FT042:EE_|DU0PR08MB8685:EE_|VE1EUR03FT054:EE_|PAVPR08MB9090:EE_ X-MS-Office365-Filtering-Correlation-Id: 9c5d0799-4e53-46d7-383a-08daa09ab243 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ktx4FWBlnkayTn3hp2MZY+agDqAZDycIXDO9zZFnFlOazj8HvYnbImnyhjaxsK94TDG3hAVANdLvqH3Eqb08UpGndvBM/WU1DvPFEZNxz2/+mAmIZro7l91WcDRE1+ZTa3F4Pev9UYoPx8JuXnJOYEWpiI1rXXVz+eUGrNT0ttiWto8EKZ0iIM/aUJvG+h78WSYJvY/MGurkBQTOvb8L+fLwiDsIVvhZjtp3PDornDyvTBG7MWf+ELcFY0zSBHQdkK/u4ThzdEyDW+KbRvoC8Gc4shzuMvGYmTZJT5EYXgHoWN6o+NBCycht8zfeMZR0DKFhE7EoBKyIcu+BJM0Kchof7cl6wkCdAy8qFuO+Tzu0Ej2F6GmvC/axd/I0yT/xLj6Ckal2kpi+yLkmQqgnLS/sl8nA9XWmanFenUbO6K8pieWm01aWBggjYGGc9Y0uTOGOhb+b+bt7MF9UZ6RLlQfM5x4MxuWF2il0C7XJHK+LeMmVmY053ZWhDuMB/++0VmEmmpEB4rIHFW3gro0s7WVL7Bqhw+bxkSR+1m9D0SjDZi6dVMJPGMB8BVyWYJNhzKyN3+jnCWIBUkU5sq4MAf03+jp843cAmV406yiXEgJjg6C+VR/23APTiifyWgq91UbkyvTFLY0CO/dro8bFi7NZ355GSTP5fCyHG51lZk3+i8Ri/8+CeCjfeQcbWmgpLSt2s0hVB+GCkiVZ6eQh0B6M/v/LxPmpU5atqjVAVj/WtvfYDvKPO2G2IIPs+1E1lvAQTshqJXK6hdNfuzx7pAOZ+7l7QikkwNJ9G0NARKvqBZD8wsUPl9gArabapoOV X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(136003)(39860400002)(346002)(376002)(396003)(451199015)(36840700001)(40470700004)(46966006)(8936002)(36756003)(26005)(316002)(83380400001)(41300700001)(82310400005)(86362001)(4744005)(47076005)(40480700001)(44832011)(36860700001)(5660300002)(82740400003)(6916009)(478600001)(7696005)(6666004)(2906002)(4326008)(1076003)(70586007)(70206006)(2616005)(356005)(40460700003)(81166007)(186003)(336012)(8676002)(426003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8685 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 27f080c9-96b5-40de-1c14-08daa09aac24 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CnLumw2fRdPk6Uec29EnW6DkdVIVYfbXFnSI9wqC0QayjjgcIDioj/tb3nDJ36vYKtpp9A4NcSWEsevxW8tBx8BauMpznOnqc9D+Fa/tVZzasQjJH9PVd5z51QQYIR+bYuNTpLZUeF5esezFNrkSr5JxnEKYa8Ga4scu7s4sgJN6Akv2QvHO2OH5xx3mwgbCtaXJ8v6a83kR8Alc8BWJFyJR+dUFW+M3FZB2Jv8vjn3pZILWMRZ27hpvFiLCoDjmJJJtQPaMA+uCF0lM0QRh/6jJjClv3ubMqn1oAuDXJ+K+JyuSLHS80sXYwA7+e2qxUbhmyg1NzJPYi7kCvyPfYMA6mIyAuMbI1LSx6QkemTHgQuTdhspwTsMGqQZLKiLvduu5xmjdRrA1x8oZj6+5305T2J0ke3Bw8Vgc9sN1B49c/DzzuVaAs5IP1xAC9rx16PWqnugMjvWsfYGOfiDBOJBz0yJEO1COfuKwOU24SlxQSAq46Zuvx8sFsxzk8mmTk5OnFcLq39Akj+4kUpbUtq3xWW9ENl3RXr+kC6Amr3yatN2YatTnOvyQFPRJP5N68AHUN5rG5m+QAcVOJh4rKRdHiSRgdbOcJvltkApVKVod64wQVBiXzUWjO6Q89VXIoy/0e82+h/++rNK+Tjc1vdIa2Uskdd22y4MDbDfQSiepfIeNNW6XzpyzyP3J8qUwKgJC7wgqmJbzYTi3pnQYrKmRa+UQwRZh+T+FGzITnjFGX3RbhjCSoqKyioiwGNliceDhGmDSVbOOGq7KBa7bxg== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(39860400002)(136003)(346002)(451199015)(40470700004)(36840700001)(46966006)(82740400003)(86362001)(81166007)(36756003)(36860700001)(2906002)(186003)(336012)(40460700003)(40480700001)(26005)(1076003)(44832011)(4744005)(82310400005)(5660300002)(6666004)(41300700001)(7696005)(478600001)(426003)(47076005)(83380400001)(316002)(4326008)(6916009)(2616005)(70206006)(8676002)(8936002)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2022 15:12:30.1410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9c5d0799-4e53-46d7-383a-08daa09ab243 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT054.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR08MB9090 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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.29 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> From: Andrea Corallo via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Andrea Corallo <andrea.corallo@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745136231640749508?= X-GMAIL-MSGID: =?utf-8?q?1745136231640749508?= |
Series |
Don't ICE running selftests if errors were raised [PR99723]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patches-check | success | Github commit url |
Commit Message
Andrea Corallo
Sept. 27, 2022, 3:12 p.m. UTC
Hi all this is to address PR 99723. In the PR GCC crashes as the initialization of common trees is not performed as no compilation is happening, this is because we raise an error earlier while processing the arch flags. This patch changes the code to execute selftests only if no errors where raised before. Bootstrapped on aarch64, okay for trunk? Best Regards Andrea 2022-09-27 Andrea Corallo <andrea.corallo@arm.com> * toplev.cc (toplev::main): Don't run self tests in case of previous error. --- gcc/toplev.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 9/27/22 09:12, Andrea Corallo via Gcc-patches wrote: > Hi all > > this is to address PR 99723. > > In the PR GCC crashes as the initialization of common trees is not > performed as no compilation is happening, this is because we raise an > error earlier while processing the arch flags. > > This patch changes the code to execute selftests only if no errors > where raised before. > > Bootstrapped on aarch64, okay for trunk? > > Best Regards > > Andrea > > 2022-09-27 Andrea Corallo <andrea.corallo@arm.com> > > * toplev.cc (toplev::main): Don't run self tests in case of > previous error. OK jeff
Jeff Law via Gcc-patches <gcc-patches@gcc.gnu.org> writes: > On 9/27/22 09:12, Andrea Corallo via Gcc-patches wrote: >> Hi all >> >> this is to address PR 99723. >> >> In the PR GCC crashes as the initialization of common trees is not >> performed as no compilation is happening, this is because we raise an >> error earlier while processing the arch flags. >> >> This patch changes the code to execute selftests only if no errors >> where raised before. >> >> Bootstrapped on aarch64, okay for trunk? >> >> Best Regards >> >> Andrea >> >> 2022-09-27 Andrea Corallo <andrea.corallo@arm.com> >> >> * toplev.cc (toplev::main): Don't run self tests in case of >> previous error. > > OK Into trunk as 248c8aeebc4. Thanks Andrea
diff --git a/gcc/toplev.cc b/gcc/toplev.cc index 924871fa9a8..b53a78bbaf1 100644 --- a/gcc/toplev.cc +++ b/gcc/toplev.cc @@ -2276,7 +2276,7 @@ toplev::main (int argc, char **argv) start_timevars (); do_compile (no_backend); - if (flag_self_test) + if (flag_self_test && !seen_error ()) { if (no_backend) error_at (UNKNOWN_LOCATION, "self-tests incompatible with %<-E%>");