Message ID | 20240516092606.41242-21-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=HAbJGTqO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vg4bn2PYYz20KF for <incoming@patchwork.ozlabs.org>; Thu, 16 May 2024 19:31:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D3ED3846059 for <incoming@patchwork.ozlabs.org>; Thu, 16 May 2024 09:31:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id 6AE143845BC1 for <gcc-patches@gcc.gnu.org>; Thu, 16 May 2024 09:26:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6AE143845BC1 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 6AE143845BC1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::22b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715851594; cv=none; b=OllSOV+fwPf9FC0NaetwpGBTz+52YQRAuF08JG3Ao0Zvh5vvLfJrCZOc7264TDz4kDrQVTkvVCjG1WLGqli2CIuI6OVE9hvs430UxRicJ3MrHTpWRtiv/bJ0j6i2rqsh2fGz0Jq1wLyQzp/hKj946Xr0+q4cxLEdFJeMqdsiKBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715851594; c=relaxed/simple; bh=jGLJHGaD991+3+weXi7OmzHMl4kk2Ql9hzYXQNBCesw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=oyFDB89qwoq1Fhu2oxbLk89rL0EgE6/if6f/E9RwCyuslXGA/L2Mn7P2rUBedQrv3H7Oxs4xCVHz3siK3IAvegcEIlmaqnxqrjTH61fj8Pe4is3YcVCAYoPGAJzzDU6LVpPyctPACDgVvnt4gSAhWk0UiuNuW6MnP9pJaqY6kbY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2e271acb015so6908991fa.1 for <gcc-patches@gcc.gnu.org>; Thu, 16 May 2024 02:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1715851584; x=1716456384; 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=ss0yMUzWnrkB1s0OaqwxS3b5R2+tHxlIO3Tm7DEiAT8=; b=HAbJGTqO8TIFOYFSSDsQJLrNrNuqJwIarYmQNWGGOg47fFXoTDAxf/pVZG7v+ow7xi U5oxa6w6nCulZAeZdSrzz8HHJQwdmLxROx+UL8JMD+Oj08Crgz/wyd0J5VjmwAfcXzEc Qn/NoTj4vq8PXxpH1vm+aU/lqPzjqPTJRn8Ms7vwMlgixF2ZouhIQdbUfmTc4/pdENYB lK9/p4mvfV/yfrMFlnzY7lpuayuAuRZgM1ckyPyi0aEkFT7RAp5uWHt0H4UUIQjDWrXH 6NmYzQVKm3C+ULHdmiG/Qf/8yFJrtcyYDQEL9QvJtLqJBnbiVcCcaqUPa4KcDilvCOgU ni8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715851584; x=1716456384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ss0yMUzWnrkB1s0OaqwxS3b5R2+tHxlIO3Tm7DEiAT8=; b=rcqbPGPxmE6C2MAgV3KTJrnyWWGvQRu/zxRmT9qNB67dEDKFlbs4WTWDg+ZEFjXcWD hEq+tjdAVTBeW3gI6/3b/SmZAza26ZI1Mn3pTQu2+uSM/ziZLVVwL0ZUhuYK01z3Qrr0 9qm9RyphhEQxasn7KX9WBiL5tEJKQyn69YZ8fnMT31pCwc5WYcLndbi8E80XqyXAXMxi jQdedXkR2r1A0KwNd1T6iz1QKjv62VZwdgk4j4mxTC0bZt/LX04pT904regFPRc4bCzj 1DWzgVyLsREfUkJWkHvbc8zU0A/xhVHVzWDlUvsdR6dm8G0qQTbHumQE/75VyW2GZHQE Y2iA== X-Gm-Message-State: AOJu0YzHS2oENNbOsfk1e6TU/rxnjB4Hn3DyTMdZ+LhYuCUO3gN4Hm2U k+QDSGb+6/E70QFIaQiTtp20ManxgUYDzW7UM/GEbL6ST8qaEr2TtdSa8kgt0J0oruaiOir+/NQ = X-Google-Smtp-Source: AGHT+IFFlrGfe5XtTsR+2N2u9bVHNhjvN6Neei2URPcWOa6jl7d6UMn57Fe8L4OJIKILeczb8CEWKA== X-Received: by 2002:a2e:330e:0:b0:2d3:f095:ff2a with SMTP id 38308e7fff4ca-2e5204aed41mr107814251fa.47.1715851584536; Thu, 16 May 2024 02:26:24 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fd10cf8besm135802635e9.1.2024.05.16.02.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 02:26:24 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED 21/35] ada: Fix detection of if_expressions that are known on entry Date: Thu, 16 May 2024 11:25:50 +0200 Message-ID: <20240516092606.41242-21-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240516092606.41242-1-poulhies@adacore.com> References: <20240516092606.41242-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 <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+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/35] ada: Fix docs and comments about pragmas for Boolean-valued aspects
|
expand
|
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 68e131db606..766cabfc109 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -30784,9 +30784,7 @@ package body Sem_Util is return Is_Known_On_Entry (Expression (Expr)); when N_If_Expression => - if not All_Exps_Known_On_Entry (Expressions (Expr)) then - return False; - end if; + return All_Exps_Known_On_Entry (Expressions (Expr)); when N_Case_Expression => if not Is_Known_On_Entry (Expression (Expr)) then
From: Piotr Trojanek <trojanek@adacore.com> Fix a small glitch in routine Is_Known_On_Entry, which returned False for all if_expressions, regardless whether their conditions or dependent expressions are known on entry. gcc/ada/ * sem_util.adb (Is_Known_On_Entry): Check whether condition and dependent expressions of an if_expression are known on entry. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_util.adb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)