Message ID | 20240614073633.2089692-2-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=Go7vZ/+b; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4W0rjb0VcHz20Pb for <incoming@patchwork.ozlabs.org>; Fri, 14 Jun 2024 17:38:11 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5E710388266C for <incoming@patchwork.ozlabs.org>; Fri, 14 Jun 2024 07:38:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id BB63C388217B for <gcc-patches@gcc.gnu.org>; Fri, 14 Jun 2024 07:36:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB63C388217B 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 BB63C388217B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::22e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718350609; cv=none; b=n1onl0AkkVVCzymrbT62KC5epmrkxRSwx/Ulo6Q03DELNCtilUMsPProMFTGhm4Acy43nRq+FOD/p7mlp5biMPWiy4EwCuBt3a/7BIz8XwqejT1MKqU2JMdU75Ue7TQhxvpnBL+DFriMfzi6D1Mcp1qIsK07gHDiYquQr8xrd2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718350609; c=relaxed/simple; bh=UEIO73BlhM8Xc/RUkK3znZcDKJdjAvERIg4n2K4P1Kg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fbad3fKjA7rFgu01Nj/4s4JJdj9pAysR2r30brRhGiP5r4wZqL4kClYSKy7M5c9hI7lIMIb+QED5MBXNPbP6jJ23CK36RBXOLRkW4+wUVhckM4dldJ50j9TDkrCiOxKM/gLT++rpJSAQUs5Ts9BjDNWQonK+o0Q6S5dG7xxw92E= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2e72224c395so17263621fa.3 for <gcc-patches@gcc.gnu.org>; Fri, 14 Jun 2024 00:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1718350605; x=1718955405; 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=jXIS4x2K0Fb4ckw9TOPt7EJg+Hj3j8xU75fAHr7uKlw=; b=Go7vZ/+bMGbCvQfLRCBBchUqwPvd40Yop5NRvmAe4sCSc9XQf6Igk8sDoB/ccs4p9c YSkoMdEYsTGcJuQFXVnLFEe6/tAcI4mUixJKW2046ChNfHPJysuFU5b7vfdIpVl7qBgk g7C1gZEqRqQSt3pE88ajFzviKekA0M4VbbwkJc/joV6OVVvdLa8KsdkSihgLGz9hGcfJ b81kVntma6PeOPVk7elyOTwYcrcsFN9OkmAdIgMd9P+TWJ9cRYICRpVlgjPh2/hRS4b4 fvhodEAtW8NFMAJYgidLd5N2e9uVGnfUy8a0Hu7vZduj/Z4jZ2UGmg94QrCiGvV+8cnk LGbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350605; x=1718955405; 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=jXIS4x2K0Fb4ckw9TOPt7EJg+Hj3j8xU75fAHr7uKlw=; b=BoHsaDOM4qDNrqtjxy9k/TJrx5jvX40aV74NMcIno6XRsWn3LinYQE1UzkIJqgzT6l Ot/3Mkx11bagE5FvPDKalma1aN8KNgXAVZ0m1SluFNa0LdvNyhwI8cscRcMJR29nTfPQ vMjTwAj13OMl2dN5ircaN5f0F9kBfDn1krU23ZDWEb1ggiWUWCgpW8yvYqZSIszg84Sz 5zKnYG+wsdl6dP9uS4V0GB61orv08+PGEBFhhCKZrOimCydpc0VAsNqpArGv4m3QW6Um yT9GOoYllEH8OR10Ae5f0iwx5HCx0J9zWT+q54aOuJAaTZo/c7Lhl3uGFUb3OZt4jHY2 8lHg== X-Gm-Message-State: AOJu0YwtCqyKXovknIjV3AIMe9kQHBTxiNhc2aOC+16etvqd9cYwiGOQ 33wmDKwvVo1PQPvgLIxPvMAE/UYVaaprlhpMhAye1msbH+rTIMN1P+ZE2gRgXD8+bd1k83x4lug = X-Google-Smtp-Source: AGHT+IEBLT4SNhTEHi3q6ja07UDiC+5xHnqKPP/I2lfbNlz/YIkgGlux9DplKNBkpbr/936HHAm9YQ== X-Received: by 2002:a2e:94cc:0:b0:2eb:e471:dc39 with SMTP id 38308e7fff4ca-2ec0e5b5efamr12982161fa.10.1718350605089; Fri, 14 Jun 2024 00:36:45 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:cb5c:2e27:9d1c:5033]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36075093636sm3558191f8f.14.2024.06.14.00.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:36:44 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Justin Squirek <squirek@adacore.com> Subject: [COMMITTED 02/16] ada: Allow implicit dereferenced for uses of 'Super Date: Fri, 14 Jun 2024 09:36:18 +0200 Message-ID: <20240614073633.2089692-2-poulhies@adacore.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240614073633.2089692-1-poulhies@adacore.com> References: <20240614073633.2089692-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, T_SCC_BODY_TEXT_LINE 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/16] ada: Remove unused name of aspect from Snames
|
expand
|
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 22fbca45ac5..2563a92f2f0 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -6688,6 +6688,7 @@ package body Sem_Attr is Error_Msg_GNAT_Extension ("attribute %", Sloc (N)); Check_E0; + Check_Dereference; -- Verify that we are looking at a type with ancestors
From: Justin Squirek <squirek@adacore.com> This patch modifies the experimental 'Super attribute to allow an access-valued prefix to be equivalent to Prefix.all'Super. gcc/ada/ * sem_attr.adb: (Analyze_Attribute): Add check for dereference. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_attr.adb | 1 + 1 file changed, 1 insertion(+)