Message ID | 20241025091107.485741-9-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=DubGIvW8; 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 4XZcbX5N85z1xtp for <incoming@patchwork.ozlabs.org>; Fri, 25 Oct 2024 20:16:24 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0C783858403 for <incoming@patchwork.ozlabs.org>; Fri, 25 Oct 2024 09:16:22 +0000 (GMT) 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 AC9AB3858C56 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 09:11:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AC9AB3858C56 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 AC9AB3858C56 Authentication-Results: server2.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=1729847499; cv=none; b=CPcXUXsvtFOwH/IFG2n3ge0cdF1P6Q5Z3UtEftjJkcNUXKOd3PFLH/u/nXsTxUZ7XXO1jnXNbtPePhEvdOxqx9BY2/dHao5/G/5q0M1tR/4VCF36lAGB+bmixAaoIX2kde1YFwfEgeGSIoUsHvwHvaRFujqJLjqWypWHQzj9yuw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847499; c=relaxed/simple; bh=Kof4Jgls3JNtkwtGlmPvkrNfmBzguEgoIKY3kGITQ2c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UHqlOw/rHMaa/xZUod7j54P7mgBM3YA39NHPRkptnzqukF1J8N3pfA3EOgaa1YowkSdNr0QLQA2gKl8p45SFVJQJBgj1mJ+B0Pbh8RRWBUxxtOU643L6RtDR51fkClfcginT3KbWdmTFRknjiCnBQJ6U48sIhHWTWvORmQ7Zs/s= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4315e9e9642so17076685e9.0 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 02:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1729847488; x=1730452288; 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=qcWoelMKdkcQuo0FSS8ZXQRSc/OjhFoFgiUnNv2cUXc=; b=DubGIvW8DIREXXefs1lxGzi7+n0jlesfRjM7HEtABr5RriOrk/xmc9QU5h+1ME2/re nyN9mT5FIDYb3VjTSzvwa6Oe7B6YOMUCZI30yhfYGdBnya3HvOVCd2tD9KxAdqzj7NIc r44KSKloC46zz82h/NZtH7wgaJZkYYd0vFJfBjaDPAOP33qYg1J9yKsfd8dExR1HiNfv IQt7sqjP0jSbopG7DWNf+0SJPFauET0pHZkFbtr6WbepXKukjrQUUh671HFFFqWajLDZ qM648fSOAWirCHpuoHEiDi3URWebcsiv9FCH7itr9JsEh1Ok7XButAJxMpnca7q6DXQH oVzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847488; x=1730452288; 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=qcWoelMKdkcQuo0FSS8ZXQRSc/OjhFoFgiUnNv2cUXc=; b=jzHHE85yGcn5OgoY02y+wl6sot7s2/Ytmr9dGwGu8sB5h/3kKqK4YsMpB8fONa5WYV Vc0Tvse6PLq7MqVOdM20rOSGfEksdcCO0MkSVNcvzGMFmGRtSs8BF8gqPoH2TTz1S2cM YamaB8RsJ1OcMjh198cz5ABxVwwVPcrRHZto6mlETeA6sanzG5bz3tVQnrzmQNC+3HPY ErApIhXXR3qzqVDGwHZVGN0GUT1arX6j8+tGAl5uvad5/3G0f8vfrf/3bo7kBwLkFgPA 9J0BnyDEVbvBQ0gVRRwTX8IWfP/1MgW5Wensgjgq/Qswr7MWIWijCPfg+aUXjr1ZP1ZX kuGw== X-Gm-Message-State: AOJu0YwHgwEA7ZItljWfc0oP8fnKT3/7IcowCZbh1QPTMFw7X5EWjljB b6VFpznSCP8ACD0aUL4o237EaVQFrnPMqRy7T/ngbnMbnqsBsDMsCUh53d1lyAHv2gaAqlY6phE = X-Google-Smtp-Source: AGHT+IFtIMzjGTRRdueu3so+FNs32oaqS19qmEP7dNGeOLfqeGmnFdmK+j7xSVpD/NP9Tg7a1azIkA== X-Received: by 2002:a05:6000:1183:b0:37d:3e8b:846f with SMTP id ffacd0b85a97d-37efcf19646mr5822642f8f.24.1729847488301; Fri, 25 Oct 2024 02:11:28 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:2626:b78c:6271:6c01]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38058b47aa8sm1013079f8f.51.2024.10.25.02.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 02:11:27 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: =?utf-8?q?Rapha=C3=ABl_AMIARD?= <amiard@adacore.com> Subject: [COMMITTED 09/35] ada: Put Finalizable aspect in -gnatX Date: Fri, 25 Oct 2024 11:10:38 +0200 Message-ID: <20241025091107.485741-9-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241025091107.485741-1-poulhies@adacore.com> References: <20241025091107.485741-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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/35] ada: Pass parameters of full access unconstrained array types by copy in calls
|
expand
|
diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb index 8b9ce9a2acc..400d5d86fba 100644 --- a/gcc/ada/exp_util.adb +++ b/gcc/ada/exp_util.adb @@ -11574,7 +11574,7 @@ package body Exp_Util is -- The aspect Finalizable may change the name of the primitives when -- present, but it's a GNAT extension. - if All_Extensions_Allowed then + if Core_Extensions_Allowed then declare Rep : constant Node_Id := Get_Rep_Item (Typ, Name_Finalizable, Check_Parents => True); diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index 953da67c9d3..11545771030 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -4073,9 +4073,10 @@ package body Sem_Ch13 is end if; when Aspect_Finalizable => - if not All_Extensions_Allowed then + if not Core_Extensions_Allowed then Error_Msg_Name_1 := Nam; - Error_Msg_GNAT_Extension ("aspect %", Loc); + Error_Msg_GNAT_Extension + ("aspect %", Loc, Is_Core_Extension => True); goto Continue; elsif not Is_Type (E) then
From: Raphaël AMIARD <amiard@adacore.com> gcc/ada/ChangeLog: * sem_ch13.adb (Analyze_One_Aspect): change the call to `Error_Msg_GNAT_Extension` to allow this aspect in core extensions. Put the code path in core extensions. * exp_util.adb (Name_Of_Controlled_Prim_Op): Put the code path in core extensions Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/exp_util.adb | 2 +- gcc/ada/sem_ch13.adb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)