| Message ID | 20260602084541.3829876-2-poulhies@adacore.com |
|---|---|
| State | Committed |
| Commit | 5200b096cedd09a51fecffebc19ae699d2d5a160 |
| 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 660514BA2E26 for <patchwork@sourceware.org>; Tue, 2 Jun 2026 08:48:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 660514BA2E26 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=AtUoUWoD X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 18F984BA2E11 for <gcc-patches@gcc.gnu.org>; Tue, 2 Jun 2026 08:45:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 18F984BA2E11 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 18F984BA2E11 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780389959; cv=none; b=Bxz/oCAqZDPVsjirIvJZpFCf1pecAInhRc7KpF+qFv/OYMV+sKVPRDq0rYiCM8uBX9FaMVA8fBiACAPGzdjAIBt3zzXwKPCnJpOswceSaUrRNUkejp1YARbpfVR+aLHONo/8rbCN3b9g0abM2JSNHs942/a5znxBuh7NumLB75c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780389959; c=relaxed/simple; bh=EKqiy/mMjo2mavEK/VC76khV2U4S5GOviXBmKvVH9pw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=X67AdwpDGyzmjaVW/XmLsvfuKPsYSGZ2UecI5xSTMvwVut1AyUefumeOnwfDEskgAP9u6wCpUBFTzupVmHGnRRRXYKX/L7ncAAaWi3f9+Dai8A0Ai+6C/AP76wVwKWjUXu4WtxOfMFkedtAKTAL+XGWFYrabNQXZcrO1yUTdwPM= 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=AtUoUWoD DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18F984BA2E11 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-490b2b037d2so2315565e9.3 for <gcc-patches@gcc.gnu.org>; Tue, 02 Jun 2026 01:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1780389958; x=1780994758; 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=NpJYbWvnJH0Frq9fmnJ28CEX1LzrtHrrHsDLxRunW0Q=; b=AtUoUWoDGAhI31AbgiGHDmy/Vj/Cw6SieOBUjVODxlTyrWYKVyOaCQfBDIbDQc+GbR ut1uWgyTCfdzWlkh7ewBNBchch2XCzC24PMbinuCcvhnJUHNhcIJNw7boNZEHDTwFA54 aIaoE9pWBdC+6riuZrkRjTHnb1UOqZvu82f3vpihpGPZcg1V0j5c/MWDykhJt/k/4n4u CIDCBfPDEhC8zWhXU6i9mp2abDI2YUnKzkPAFEbhCDCMzfE89VuvDAKJFgzGp7NtDwzJ tiJTG0ci3z3LAuY5m6yuEYgjx82e2JD4HpkulpFyiPQFjiSJ2++jX26+IpR5JXtwhstF PPdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780389958; x=1780994758; 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=NpJYbWvnJH0Frq9fmnJ28CEX1LzrtHrrHsDLxRunW0Q=; b=h0ZMDxuoWsSyA6aJwODccC681nhBNcF3oyUjihTSpMAA9xqQ8Y1p//eaDQsLrD4RJD aCSIvM8HXD7gzB9i1Pauya8sdO953NxY3cYYrg2enh66MWla1A/N2aTSRgMkCeOQqARR Hms2guKV0vsDHLAP7ACkG0zKCJ8ozKmw8uHER860x+pFVZqxdvcv1M68a41Nvr0u+wBc O9laOYzDRqoN1S6v7EXNzeTtHiK5KDWE4i7jyBMjqfH9Rh/dHf1nSXkUSUDRAy0dg5B4 /Yfepq4qLbSzSBDCUCBBtPslzL/lBuZLDhNavzkjdty6Mkby5Gp89mPq0WgRAUpJ0Gxj wZPg== X-Gm-Message-State: AOJu0YzRZz78sED9hcYDI6FPDfz93jk7+0ofMaVRqAVeSb/5XVVT93uR JL5PT/txuOon4DyVn+2csdb1+zOyJSDPI1597DOFE9vzX4HMjVj2egz6ST6v1Ajv1CBFHOfHwob AlV0= X-Gm-Gg: Acq92OFzPrCY6HxL53wCAbXTV8Z/9yttNyPSmx6dcFCJBrMS6szPgbzR8B+spQW++/S dPV3Rvc7L0zXzamXhcNXLnUtz0K1KC9vrTzDJcg5tuMb+9St8orp912x0FvmB0CwCVjdxMu3FvZ RDuEjdAoP2wxX7Ki+VydQPDVEmOY9nc7jTRI/RqG1h8tB1YTYpmIn+VBb/Vr5nZlMZO6Ca+Rlx4 X5NTaHSFYv7YYltbGZWzDlI4JiyQI+pZNdxu272pulRITdxsrp/bHGxtqYmMfeFIlYgtZ6ijns2 +gOMwrx3gv6Gdzh9hsP7hpWdMRqBvfnGrmyYzdy/Dbn8i5uPH5tW2g7k7HAA6TzE5zbxFBQfPlT iG5+APPejI41gseUihHZqSiv1NZPG91upNrOs7SuJvTtOjMrcujt04IoC3u557oI5c8JH/GfEec BQloh/ydvLIG35OYk5OnZe4mI0ZRwVwn9yUZz8ujt59oF6RQXzYfLPmH7SQleGN/sK+0F4Iv8Py WZE8MxTGAqZKcnJ8BUwocmPu6pXVRHOOQH1kx3DaA== X-Received: by 2002:a05:600c:458f:b0:490:b202:4772 with SMTP id 5b1f17b1804b1-490b20248cbmr32638175e9.2.1780389958058; Tue, 02 Jun 2026 01:45:58 -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.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 01:45:57 -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 02/51] ada: Avoid giving multiple errors on ghost argument Date: Tue, 2 Jun 2026 10:44:50 +0200 Message-ID: <20260602084541.3829876-2-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:44 a.m. UTC
From: Viljar Indus <indus@adacore.com>
Avoid marking multiple errors on the same line if the ghost
expression is both non-static and also would evaluate to False.
gcc/ada/ChangeLog:
* sem_prag.adb (Analyze_Abstract_State): make error checks
exclusive.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_prag.adb | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index e3f1ed0e085..a22ae61cd55 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -13595,9 +13595,7 @@ package body Sem_Prag is & "in pragma % " & "must be static"), Expr); - end if; - - if Is_False (Expr_Value (Expr)) then + elsif Is_False (Expr_Value (Expr)) then Is_Ghost := False; -- "Ghostness" cannot be turned off once