| Message ID | 20260602084541.3829876-40-poulhies@adacore.com |
|---|---|
| State | Committed |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 691994BA23C8 for <patchwork@sourceware.org>; Tue, 2 Jun 2026 09:15:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 691994BA23C8 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Tc/ILfC8 X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id A62244BA2E2B for <gcc-patches@gcc.gnu.org>; Tue, 2 Jun 2026 08:46:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A62244BA2E2B Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A62244BA2E2B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780389990; cv=none; b=eVbuC+NsDNuKjjnJ+4OZ1EPzUs53hkHtW9Fc0h2ZFMwI5efwLChWuRL/13fy1oXeThrageC1sSV6+QQek18tdbZkhGBUC2j+wo9W+/PhC57hIu7/aucBcAMC5J5oknQWmcAM0LX17LPaM2WOCAkOwiw8jcpNFeNPQS1RP9nIHUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780389990; c=relaxed/simple; bh=R8nnEE/GuMvWGWu8ecw1LwzKfiOCl/3YCdvb+AWvuA0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ARQBa+GTbp3yZF+YfrBdQ5r/wIa3YCXK9qhq5xDqS/Mh99fvYkftFrKvIrTt7Bfk3oFRqTmMQaQ+9yJWTu4C51h7mUAXfJZpFUJcbgYGuOapRryx4/tSw8TnY5fOJJW1COZQ/CAbB9I5pLS9J+QwSGHpy6cUm/DwHJN0NFBPd1U= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Tc/ILfC8 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A62244BA2E2B Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-490a7629380so22451835e9.0 for <gcc-patches@gcc.gnu.org>; Tue, 02 Jun 2026 01:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1780389989; x=1780994789; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dcwqMiApvrD0G+UoBPkfNVePk+2UxKDOpdPxqOQi+UA=; b=Tc/ILfC8L8t+gRxKqhazGnbrMH6/ej5fQapcUY7fagHyqZYsH81H8brppJjgXLD6x8 O4ylqbvZSp5bqYtjiBFCnvLt2KFRcaLxqFpDakzpFMiu5f4dgCNFhY38sTB/XN0dPwkR E6KgXuDJVOn+W+bvwUFzYavssSv60pm213k6NdQ1d6VJn6PhPbXq7AzSgm8AmrszLt6k FKqsOejNof10zIeLh2VWqGgKsZ6ttQjvAoGfBppkcyqF6AUUYUB7Pb8sa+vb8zAtMw+/ P8Ujte4Hb872i2NU/Bc4tABKLn3jSIZXlLJaKmiYU5f3iWf0IGtK+CEiBwmQhOUB/s4k IvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780389989; x=1780994789; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dcwqMiApvrD0G+UoBPkfNVePk+2UxKDOpdPxqOQi+UA=; b=X6BQ7ZkNR09CLhGm6QomAbzuyG/XdTuhZbBDpC+cy0ojPYEojQMAj/B8bj+0+SjngJ aIkVskBGnVviwVxrzo9RU0Uts87CrvtwCO3+1pyH1rEQcJy6zfxMollmDBoBZVuoIlIx ewTGdEyaqcMo3qWuv4MTwv00CEBTldcgCJA7XWXfjVTygss22vgVqwLuu7l0PykWbzki jWXDPa425EzLJRVolkEvziOjDKY38ount48tOoDxwZydop35JCM0oIIF5VMXJMY7E9wK /uIZosTqOWkLQKlWIr2g/MlyoRTgqP/Y4ek23EAQOfrymTH7+Si2PMhsbOIDr3rEXh18 08rw== X-Gm-Message-State: AOJu0Yz8ui7SeR8YenaBNCdc7Y+VSFG/lwMNrGYqLNVaR9ZpqHNNzofx 4HuaOBmUPfMaVQ4mvxDB69nMVTNXgjxTEtmOq2Gw74Bi3lGaZSWahtAPxAEtG1g3PcNDmnrqf4k R8us= X-Gm-Gg: Acq92OEhgSDj+nh5fH5v+++17eCWfc8kEmFAFXemjXZ0xrWpBJylZIFnz1X7IHEg1MB ESUJLKydXyapg2ClnqP8zX6HhXIfrbeHeKJYr1mgh2YmAHwWluGRnbDufBum5RfNiqNulRkOdFB KzofU9IbXw6cXg5RKvltmBnmXxUuN6xulRWGgyTM7coPhWwvsIvpClNb3RfwgvDAqiJTOIxn/1R JppgqMS7kSc28w4PfhjnAcPka6Try+bfmf7v/XuB/T+3Y2R/u1gkckL0dh1pr1uHlHw0jEKAyJ7 hbtjWG3rltiFzCyKuxeJu1rZh32ORmd4f8fbN7/eSGcPxEyrHSd2yUzUxUQ+CiyNYIzx5MLJ4RI wuZwd8Zl8pMrZHJWNVHuw04lDMzTLp8yvwB2E6XjSzmr6mmFAtmOlzr3mW6dtIdKGrRvXNhAjdt TtE18hkiSht91XhCv6tcyy/mJynHbOaAd708jY8RDYy1J/ZWjZjNyEO9de74783RyZJhP7JZaKn UIpPJUmdFw4LsEEWwiYuRZ+0s3p6mE= X-Received: by 2002:a05:600c:e489:20b0:490:4ee0:82ff with SMTP id 5b1f17b1804b1-490a2957d95mr182340155e9.27.1780389989655; Tue, 02 Jun 2026 01:46:29 -0700 (PDT) Received: from mecano.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490ab55d39csm33907625e9.35.2026.06.02.01.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 01:46:29 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Viljar Indus <indus@adacore.com> Subject: [COMMITTED 40/51] ada: Remove unnecessary workaround Date: Tue, 2 Jun 2026 10:45:28 +0200 Message-ID: <20260602084541.3829876-40-poulhies@adacore.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260602084541.3829876-1-poulhies@adacore.com> References: <20260602084541.3829876-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 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> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
[COMMITTED,01/51] ada: Rename Private_Component function
|
|
Commit Message
Marc Poulhiès
June 2, 2026, 8:45 a.m. UTC
From: Viljar Indus <indus@adacore.com>
Technically this is no longer necessary as everything will be
removed along with the ignored ghost code removal.
gcc/ada/ChangeLog:
* sem_prag.adb (Analyze_Pragma): Remove overflow supression
workaround.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_prag.adb | 28 +---------------------------
1 file changed, 1 insertion(+), 27 deletions(-)
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index a22ae61cd55..81de61ae9eb 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -15698,33 +15698,7 @@ package body Sem_Prag is -- Now go ahead and analyze the if statement In_Assertion_Expr := In_Assertion_Expr + 1; - - -- One rather special treatment. If we are now in Eliminated - -- overflow mode, then suppress overflow checking since we do - -- not want to drag in the bignum stuff if we are in Ignore - -- mode anyway. This is particularly important if we are using - -- a configurable run time that does not support bignum ops. - - if Scope_Suppress.Overflow_Mode_Assertions = Eliminated then - declare - Svo : constant Boolean := - Scope_Suppress.Suppress (Overflow_Check); - begin - Scope_Suppress.Overflow_Mode_Assertions := Strict; - Scope_Suppress.Suppress (Overflow_Check) := True; - Analyze (N); - Scope_Suppress.Suppress (Overflow_Check) := Svo; - Scope_Suppress.Overflow_Mode_Assertions := Eliminated; - end; - - -- Not that special case - - else - Analyze (N); - end if; - - -- All done with this check - + Analyze (N); In_Assertion_Expr := In_Assertion_Expr - 1; -- Check is active or expansion not active. In these cases we can