Message ID | 20241025091107.485741-3-poulhies@adacore.com |
---|---|
State | Committed |
Commit | d1cb12a5b870daccfaf2b4d9c91646a00eb01aee |
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 EFAE23858408 for <patchwork@sourceware.org>; Fri, 25 Oct 2024 09:14:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id DCF2F3858C3A for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 09:11:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DCF2F3858C3A 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 DCF2F3858C3A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847485; cv=none; b=K/qFbA1VVXDbsz5xxW6r+bhIBrDK5iZBToPhI5kpkdSqM9vosn0Gxx4UhyizuBeb3M23OBcn0cH3GXv+r/09byc/Huwak3TUHIMYCmCFDEIsWZe1V7A3tzHamiizvYSKizBrYDcnhkt5I4h05iyY+Zyc+m73r9VAkhtaRsG8Ysw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729847485; c=relaxed/simple; bh=jBtMWW2sU8slfUfYxX7JLPP6nisMBuDczy/7N5Vm1yQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QKOdiluvP4iEy9OfEOmiScM+uLWFQ2elDdvhwpF+YYGQUBD5DN5opYL+uFyxEkz94/DJmHxhDJ/TGoLR+wiRGpJAo9A3DaEeS5q4rp0ZRhyO3sGWGJHqThCtip1eR750c3wqMB6sNN2z262yHg3bNb3OnDCqwaMtD5n0OEBU4L4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-37d495d217bso1562948f8f.0 for <gcc-patches@gcc.gnu.org>; Fri, 25 Oct 2024 02:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1729847481; x=1730452281; 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=hamdwhCbw5Uw9v7v3En9qSFlrurffansRr8yMWm2QwU=; b=gQzpHDNgPsgjejVC/1CdmeGZnINwqLyP2gaw+C45g+XbM/pGTzY6aWVZMU2sysQOg5 ZtLrINA7lDo3zj+KuDDOOckd3oWdKwnVPdDyUGNwgnFQQwFs7Uzu92NN5Mh60gnn8CUw +6m+L9BA9gt9WLQ7VWnv+6FtbvfxTccB9cxLV+tDYq1igc8Q10RIL0iho5cdUGZZXAg+ LI1fcrVn+AhefzKNEWDSpXRrIUo1tI4ECCWKqJUIFpu4vKUUG7ae0A5JnclUd4XgvFqX sWMr6j5sDcG9Rb43BF1RGS0emcZXGoPutMR75ru2OLXpw/fW4nQ8RY7ryS9u9TOs3Mrg ByAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729847481; x=1730452281; 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=hamdwhCbw5Uw9v7v3En9qSFlrurffansRr8yMWm2QwU=; b=lim1m4QGTIWmesZi3WNWJGqPiO62xamjl812/4FM46752bBLlTjwBhRz3XZ8B7jXau op222ZfU9Tf1jAnZuNllGmke5Lhhf27HHSWWLSE7N+wpviu4nssDi0xuq3RyGLQTAn2l DNodxqki2TZZQHYlqpFpM160WV3KFJKvRM+vffH809APQ2OGNzbejMHWfYmTfFhX/lex WbdgAxFIYy2fWG00f7rptR1dIHOtzZrHC4N5g3k3V5//M0FnfraNEXXK9SEjrz/0NWUQ hSajFgbVgNuqb3tmBqkMyOAbgIqiu4XmjapGEM+0TKu6W5MSlX9uIH9Lv2GTmseRrT1U cZ7w== X-Gm-Message-State: AOJu0YxUp9n3J97VDAvSy+QXUxp5Oo6bWwMJhN2jzG1tqApOsdB1nx7G hM6A9yO2C6Y0X5mbCxQ/TomBNqxnCQBUoGJdbwmJJJmsJgD6Oh51uh2C3qgJDDoE8MK/CwhMwjo = X-Google-Smtp-Source: AGHT+IE0D6+g+JfeS6dnXBmgbLVwm/15QfedYD5zeyhZbZplozCjIk3r6UAxYwOXTiMq7ph4wCHK+Q== X-Received: by 2002:a5d:58e9:0:b0:37d:4619:f975 with SMTP id ffacd0b85a97d-37efcf05df6mr7539213f8f.19.1729847481523; Fri, 25 Oct 2024 02:11:21 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 02:11:20 -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 03/35] ada: Forbid repr clauses for decls in handled_stmts Date: Fri, 25 Oct 2024 11:10:32 +0200 Message-ID: <20241025091107.485741-3-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.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~patchwork=sourceware.org@gcc.gnu.org |
Series |
[COMMITTED,01/35] ada: Pass parameters of full access unconstrained array types by copy in calls
|
|
Commit Message
Marc Poulhiès
Oct. 25, 2024, 9:10 a.m. UTC
From: Raphaël AMIARD <amiard@adacore.com>
gcc/ada/ChangeLog:
* par-ch5.adb (P_Sequence_Of_Statements): Forbid repr clauses in
handled_statements.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/par-ch5.adb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gcc/ada/par-ch5.adb b/gcc/ada/par-ch5.adb index 557aaf1ff68..34c845f838c 100644 --- a/gcc/ada/par-ch5.adb +++ b/gcc/ada/par-ch5.adb @@ -257,8 +257,7 @@ package body Ch5 is while Present (Decl) loop if not (Nkind (Decl) in N_Object_Declaration | N_Object_Renaming_Declaration | - N_Use_Type_Clause | N_Use_Package_Clause | - N_Representation_Clause) + N_Use_Type_Clause | N_Use_Package_Clause) then Error_Msg ("Declaration kind not allowed in statements lists",