From patchwork Tue Jun 13 07:37:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 107147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp368833vqr; Tue, 13 Jun 2023 00:48:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vZevEv9T1Ymzdxx64lyhw8vgbuU2l9krZCWZMcEqIGmp3oEdJJlgbAQKxbiSUcEWMfZGN X-Received: by 2002:a17:907:2da4:b0:981:a949:27f3 with SMTP id gt36-20020a1709072da400b00981a94927f3mr5528900ejc.55.1686642520000; Tue, 13 Jun 2023 00:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686642519; cv=none; d=google.com; s=arc-20160816; b=V4mYrgNDjCVgz4XVUDYVNExkziKaJU41zDvdR2UDfgV23jBCeZGMw2d80TZDbUcctc cLs0dC6al4/Hv0yP3bC4d4m1gnFZGXRXWsVULzoSdJX8jWLIcgV2zxh/R0inxo14uoAc z8B/7+kQGre9c3rXW2nRGqTVRhaOy7vpZ0khdOTnBF/ER3gSXti75O96pOaS4ZdT9gVP utt9wVv4KLIEn9guhpgtwNh+a8UCe4U7vCtHwqF/T43xxqFzHwyY+aYwT3eMa0wQKMKF dTvieXrDJxqMk2Oww9Pxf5DUhS2XBTPhudxRTd8y8nVlym0FUj23re+JqD+gCZqs8jJC lGSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=7InWryTORmFGI1PyMQkkV1dtkWx0tQ+05zxGJgvh/m4=; b=owU4Y4lkX2qMhPi4YJIm+nRJ83qtrMFvapE9diUbyBYGRt7Imu5sfCnS8kdT/PIBtw x6TDEtIVvV5nw/9oFcsc1JSOvBJfm1wMwTIgNQ1KQi4O1ofV75pTolvoi2jdZDh1zdlU o2O6G19hWZBX/E9ilvPzVyaMXYJRnquJYvjW7qi1mbqA44GS29xhaNB1EIiVBz+NuuF3 zbVMr8o4bU6jh/rTJWvKY5ooSUeyFdmGk+E0w3yGuGM4jUFw4rg9O4k9qBlgWaz4UrHp kphscDNSZHiIjbB7FOGbsYAGdpZdLpFLPtKHqDNbwN2tcDiJLdqBBLuYoJ1DCXEqg/j7 uEpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=CRPchQ8s; 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 sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c9-20020a170906762900b0097d787c4afesi4661001ejn.398.2023.06.13.00.48.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 00:48:39 -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=CRPchQ8s; 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 17D603831E28 for ; Tue, 13 Jun 2023 07:43:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 17D603831E28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686642196; bh=7InWryTORmFGI1PyMQkkV1dtkWx0tQ+05zxGJgvh/m4=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=CRPchQ8sZJ+x9N3VLp4mpXcCT8IKxAZrBwHqAS8T4/VbA+QhCx4+1GpRnNZuewClM vjW+voC/5NWb85r3vWWdsS1h1NbhYrlSFvPDMRm24qQMmxmOL3LUz4ypcOgvd+PBCf a8uHRCt6oMfjRwzyviPM2dak4pFDeIZ469XKqusw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 6C57D3858422 for ; Tue, 13 Jun 2023 07:37:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C57D3858422 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-30e3caa6aa7so5126337f8f.1 for ; Tue, 13 Jun 2023 00:37:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686641871; x=1689233871; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7InWryTORmFGI1PyMQkkV1dtkWx0tQ+05zxGJgvh/m4=; b=GMeZyboKXzYVUi6GEkZBwnEzkr7uDsYOlDDD5YUF8khu7aJukC5uzzg6HvcX6D0U7b QyaSbNS2HRKxzhmeTGIDXPb2dEnf0F1UOuVpacDciGMAMTxgHqQT0SnLkBtJgN1BcTu6 vi8vDBbBXyznIy57Gmp04SFKGzs1pqYfYjM9NntM4FWQvJTAuPJFml9K6+Jko534Ek+a nFoI31MmwB2GKah4F3i2q8E7YMw7IqjJnaYcF+bHRicK8GlQD5Rgv+bPYJHQc/j68VJ3 Fa9Pp6SmeBi1AsC/pmF3LXWQxMJlFI/01TmB8pH6242mkih0J5rKuKV4yLN8obOfgdSp GXXw== X-Gm-Message-State: AC+VfDz0uZjogKEps2c95LCsIBUrpVSAmMSGn05/f6jGy0BO4w3eDEXx e94m94QFpyXZbN1I0jugo4hkUMP1mw8p5OHYpZPrPg== X-Received: by 2002:adf:f6cf:0:b0:30f:ba3e:9713 with SMTP id y15-20020adff6cf000000b0030fba3e9713mr5171740wrp.0.1686641870933; Tue, 13 Jun 2023 00:37:50 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:bfa8:5d29:40e5:cc66]) by smtp.gmail.com with ESMTPSA id l15-20020adff48f000000b003078cd719ffsm14533637wro.95.2023.06.13.00.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 00:37:50 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED] ada: Remove wrong comment about expansion of exceptions for GNATprove Date: Tue, 13 Jun 2023 09:37:49 +0200 Message-Id: <20230613073749.239184-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768572866772407281?= X-GMAIL-MSGID: =?utf-8?q?1768572866772407281?= From: Piotr Trojanek Code cleanup related to handling exceptions in GNATprove. gcc/ada/ * exp_ch11.adb (Expand_N_Raise_Statement): Expansion of raise statements never happens in GNATprove mode. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_ch11.adb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gcc/ada/exp_ch11.adb b/gcc/ada/exp_ch11.adb index db85c7efa6e..53f0753cdce 100644 --- a/gcc/ada/exp_ch11.adb +++ b/gcc/ada/exp_ch11.adb @@ -1592,10 +1592,8 @@ package body Exp_Ch11 is else -- Bypass expansion to a run-time call when back-end exception - -- handling is active, unless the target is CodePeer or GNATprove. - -- In CodePeer, raising an exception is treated as an error, while in - -- GNATprove all code with exceptions falls outside the subset of - -- code which can be formally analyzed. + -- handling is active, unless the target is CodePeer, where + -- raising an exception is treated as an error. if not CodePeer_Mode then return; @@ -1604,7 +1602,7 @@ package body Exp_Ch11 is -- Find innermost enclosing exception handler (there must be one, -- since the semantics has already verified that this raise statement -- is valid, and a raise with no arguments is only permitted in the - -- context of an exception handler. + -- context of an exception handler). Ehand := Parent (N); while Nkind (Ehand) /= N_Exception_Handler loop