Message ID | 20240801151738.400796-13-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=Mfhyxke+; 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 4WZYCN42Jsz1ybV for <incoming@patchwork.ozlabs.org>; Fri, 2 Aug 2024 01:43:28 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C03493864C6A for <incoming@patchwork.ozlabs.org>; Thu, 1 Aug 2024 15:43:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id AFAFA385DDF1 for <gcc-patches@gcc.gnu.org>; Thu, 1 Aug 2024 15:18:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AFAFA385DDF1 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 AFAFA385DDF1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722525514; cv=none; b=AAAur0NFLLq+GD2oK5dkDYIHI0MzbOV4YDL58xmmWfKFgboxsl0I1zDBnqlfMH6WvI76VWxNokh57xUCwdxgOCmxY6hwFJDm0G7HNZmfAs6FcmT/gV/CH3W/jOlugI1oyZ6p6DBqMWGLRW2wYs2GSBvzJhMHKw0VAHFnDkxWmi0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722525514; c=relaxed/simple; bh=40wSllkZDhrcYLSnAILblYP5gso/GuK7zRzQ6tHkqcg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=pEXK8o4eS3q7Z7Y4L/uzgEz9TZ4gqMSvsfB8Tk1DCGLUv4Owwbhh1aw8KaJT76Zo1uo2rMb+iUS7oFCtSHKoyskeyUydFwBC7YP5eRzzTJ4Fezz4dY5UAC9v/n1sXZm7xvk7t9od123zVQgL+oQtrwvb1IUqBfy/DJiWEofSiHY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-36844375001so3250066f8f.0 for <gcc-patches@gcc.gnu.org>; Thu, 01 Aug 2024 08:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1722525500; x=1723130300; 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=LsYBQ49H/el8diTueR3TiSL1lZZpelN0r1eWWz5JI+I=; b=Mfhyxke+UevZ2c3ygHK5O6P86ZTxgVBDGrH5T+GJmjSAUp+pinAhBoKVGmFie7k3ui SktmYP362JFyaYG98MzR7Tbt+X1ZoGvyTZ9jFzKEKv4Oir2lNnPaX5TJVBK3aqizThke wUEIlslhpUplJ7d0vfQAizGZLbnXZHmjJzN1Bgyh/EZHMAbLtLc/pYdh8xKVn4CffwNP RwA8S49PAXlm2HavWI9uCazRNc4Can/Id7uS47/xVy38WnBADQifyhD9nrAIufO4lvTt +Krk7Zff4NQGpA0ZbLL4a2tTg/eNBNmCpYDHP2C3/tMi4fapN86fQaXZKTPN4wtZTANG Vxkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722525500; x=1723130300; 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=LsYBQ49H/el8diTueR3TiSL1lZZpelN0r1eWWz5JI+I=; b=gRnbzxEh1s8Ec/JXQwXkeF3mxRumx3OqRM9Hqwjyjt98cOzgz4bjL0m4PqDJB1mPNR 17zyCBz05/1wvJYxBYxzYMm7wqomszi/iK4vm1O0ecxehO/A4MvA3i9RsQuDnZo11okB IYellv0YlCtd9kvKw8WfiMpat47LtVW9eb4Y4ZZjco5Zu+S07M5qFLeUa73ci2vPYg3S ueyz35FQO/xO65Q3fvBRSLqdBqz7cnmiYkh5OnMfrTji0xfVWWKQzNlIjekHSWelda4y gIRgqMG02/ywqlPiCOaZTVeATrtnbAqXS0y24VpbKE1qUQUa0SV15KCl0G59cePsyk16 yX5w== X-Gm-Message-State: AOJu0YwuFoDLTtsg27nbs4iYsfbH1fdugr9QCWbSKPzy5S1h0Psj4zzt YdmDrXni/g54TkXrub7EfpbAByip3a5opXuy3CBMMYJptim8jUZQBu3PCZP1zSs/B11Yu/dCRUb Wcg== X-Google-Smtp-Source: AGHT+IH5jxi68iVUbECxuoZWgv6TrD97TOGus+5g8WNLZQA8V4Hl0KIzxGaGx5rWRJjnh6Oxz/FWVQ== X-Received: by 2002:a05:6000:4595:b0:362:b906:99c4 with SMTP id ffacd0b85a97d-36bbc1706f5mr104758f8f.58.1722525500347; Thu, 01 Aug 2024 08:18:20 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:b6aa:4751:9ea1:da1e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36857fdesm20065995f8f.75.2024.08.01.08.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 08:18:19 -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 13/30] ada: Remove Must_Not_Freeze flags from default value expressions Date: Thu, 1 Aug 2024 17:17:21 +0200 Message-ID: <20240801151738.400796-13-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801151738.400796-1-poulhies@adacore.com> References: <20240801151738.400796-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.6 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/30] ada: Remove obsolete workaround
|
expand
|
diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index a7936641d34..c8fe7d367c1 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -16060,7 +16060,6 @@ package body Sem_Ch13 is -- before the actual freeze point. when Aspect_Default_Value => - Set_Must_Not_Freeze (Expr); Preanalyze_Spec_Expression (Expr, E); when Aspect_CPU @@ -16076,7 +16075,6 @@ package body Sem_Ch13 is -- relevant to the misuse of deferred constants. when Aspect_Storage_Size => - Set_Must_Not_Freeze (Expr); Preanalyze_Spec_Expression (Expr, Any_Integer); when others =>
From: Piotr Trojanek <trojanek@adacore.com> This is a code cleanup and apparently has no impact on the behavior. The Must_Not_Freeze is saved/set/restored by Preanalyze_Spec_Expression, so it doesn't need to be set before calling that routine and apparently doesn't need to be set after that calling that routine either. gcc/ada/ * sem_ch13.adb (Resolve_Aspect_Expression): Don't set Must_Not_Freeze before preanalyzing spec expressions. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_ch13.adb | 2 -- 1 file changed, 2 deletions(-)