Message ID | 20240520074858.222435-22-poulhies@adacore.com |
---|---|
State | Committed |
Commit | b226e5605a6e1833da85590b10a5acf0b16d00d8 |
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 server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D4F23858C31 for <patchwork@sourceware.org>; Mon, 20 May 2024 07:54:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 281BD3858C62 for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 07:49:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 281BD3858C62 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 281BD3858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; cv=none; b=v7UDbZ+FDfJTAqIHlPIBR6cbRgpnZHe6INdSRfUm/JL0Y8PV9u2I4cfUqnKhM9h7+2hWTg4i0OWSdHhKym9YbOeksYFxT1FlKVQMY/YlRi91zLVqd6qP+vyoqbb9IHJCiEqkZKAVp3uCPyCNixYA5H8KLxaoO/BrAQzQFdVh68c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; c=relaxed/simple; bh=ibPRvUWb+eQlqkln2HXbJUzV3DnWFiSNk03TD/UryoI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fJlOxmAKKqTXUouCjtn45/FoVGl765W47T6OKIdo0LXdL7E1Nwx0F/DDWjSGXDyBm4PrSA82AKSGuxRVfLtq3BAotqgE7Nv5V/KlUMTU2cyaiNs032fp1VhedODgPAl9Q7tGibT/vKHfoOxYzIYsgXKVcdtMdiJgTrrkmGT1vWE= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42011507a57so17955715e9.1 for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 00:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716191369; x=1716796169; 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=MhPMmmvyXi5LDUpwqp8oBX00TpV3Ny7qtYaT81CnlhM=; b=jKCXr3hgyrM7JHQkR6s68ZwEBFScxwDs9a1kRm/6547fC3d7Zww6/9IwGSqmpB/Fol Fap+GH153O7y4CwCas4iLuvRzU3UADe/vU+IbFFk74LghJt995P8+JWMm+ECN6UeARzF krWQzj4kw8POz6DPbwaIdr7lwozMhKk+iz7Y527OofqZsLuUQI/TQRTXLWZJTIITx6gR hxWsf1HNb+2Yd4Md3BjikNT0sbJvMtG8Hrh2tp3tUtiDq4Qomty5lwXw3/Mn2mfaUlx7 BajyO44NuOmxnIxy57zA1s+59biYSB5iU7aWsFFoTsKOzgxam06XOPBtb7rPYLLxYAQM rL9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716191369; x=1716796169; 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=MhPMmmvyXi5LDUpwqp8oBX00TpV3Ny7qtYaT81CnlhM=; b=wcMvniiQz/ga55qRNTSY8lXM5aur288IlGcR1upwpydtjQ7/oXoHz1yK+M7z0nqjwm n7f2YgQM3Ii+yvxMvbdgZM7xggiI/26AW+W2tnapp4ttvSVNqkB2gnJlmFugLlpvMNou oap8YnR8L0/3RuwxXIUAe4Xql8mvKfEfD9cHD6uXJFC49j6HWcXqvilxLD1QcvEP6D29 xX/xgyk0THk+bkXbjHvQ5cvyhj4pFIvAwJEem6qOVozGxe2a+BdR82OJ9ATFcLtmE7up gwwVXnqBR73LpZPWjJcH9ofnAUBtUlr4uOVR9Lt/VLoHKSyfw0rrA23L1bVTyXySb8j/ rN/A== X-Gm-Message-State: AOJu0YwCcFzcge9EF5KmF/PEA1ylCoUwAjYt85scixoyhw56CdGOUGvS CtusCXUgA6WcDjK4qUsF0csB1JimqP0CCvJ7nVlv9PuSFLtiXvf7PZFgS7FK4wYhe57UIDKDiJ0 = X-Google-Smtp-Source: AGHT+IEP5s55gbzbI0rv8KMweAJWslg74b1N9EsUkN4I6/F4ciirFUkppCoUCFl/BDkMEw6swk+nPw== X-Received: by 2002:a05:600c:4e88:b0:420:1551:96a9 with SMTP id 5b1f17b1804b1-420155198b2mr156251255e9.39.1716191368967; Mon, 20 May 2024 00:49:28 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41f88111033sm446892175e9.34.2024.05.20.00.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:49:28 -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 22/30] ada: Handle accessibility calculations for 'First and 'Last Date: Mon, 20 May 2024 09:48:48 +0200 Message-ID: <20240520074858.222435-22-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240520074858.222435-1-poulhies@adacore.com> References: <20240520074858.222435-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.9 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+patchwork=sourceware.org@gcc.gnu.org |
Series |
[COMMITTED,01/30] ada: Rework and augment documentation on strict aliasing
|
|
Commit Message
Marc Poulhiès
May 20, 2024, 7:48 a.m. UTC
From: Justin Squirek <squirek@adacore.com>
This patch fixes a crash in the compiler whereby calculating the accessibility
level of of a local variable whose original expression is an 'First on an
array type led to an error during compilation.
gcc/ada/
* accessibility.adb (Accessibility_Level): Add cases for 'First
and 'Last.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/accessibility.adb | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/ada/accessibility.adb b/gcc/ada/accessibility.adb index c0a9d50f38a..33ce001718a 100644 --- a/gcc/ada/accessibility.adb +++ b/gcc/ada/accessibility.adb @@ -465,7 +465,15 @@ package body Accessibility is -- so handle these cases explicitly. elsif Attribute_Name (E) - in Name_Old | Name_Loop_Entry | Name_Result | Name_Super + in Name_Old | + Name_Loop_Entry | + Name_Result | + Name_Super | + Name_Tag | + Name_Safe_First | + Name_Safe_Last | + Name_First | + Name_Last then -- Named access types