From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by sourceware.org (Postfix) with ESMTPS id F40C33858401 for ; Mon, 20 May 2024 07:49:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F40C33858401 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 F40C33858401 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::233 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; cv=none; b=i9oArax3F39nBkNJJVcDY72IH4q4tSvMF4JqGMXaQjGqVJEDQSw1Lme9R0MxC2z36pYwPQGjK1f6aXTi7opR7PKqwTT2Hx7jDObjvzUqr5jYL4yiXPT0E7u67t4k/fkm9OsnYAJwqd6yn6Hco6PD9czTPYkC1gnRdKC5pbHissg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; c=relaxed/simple; bh=0l+tL767lcGSSCZIeQwJBwz7UzciwOTY/V95cuKA9/A=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dnps/L+pzOI18GpmnOVcqeZ6Pj1MI/Xi0SspWH4bIfnP67vFtbv6niFwvwvI4c3oIekW0M3e8Xv5vFsqZ3boNXxTeRNrnuGaGlkH2/JH/pMiPoe8gOGuOL4Nq7i27IRVcbbSxodUNC7vprSo44KL4hg/Rxca2jGKldLStXTGFkI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2e271acb015so51303231fa.1 for ; Mon, 20 May 2024 00:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716191366; x=1716796166; 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=7bWG6K+DJj1mdgM3teUA2D4JJaHt9SsqRQAa+DPVSCQ=; b=evWCg9yZpKBBVOMKUsNPwCuJXaDKGS4AkZECNo9Se2/yLdK+fJSaYIWWc0nB4PfOm8 LPiygFZRfjdVMcAfgGN4DeF8nB0fVwtnSA+yrjEwV3pZvrHPgMIze5OEIJh0euHTqBGK tvUCrn92ASxm+sBGUtQKweMRyq11IU3q1GmD5hkl0VSk3efycnQd2tJguCfT15gLpg33 KRn2oiQRWhVuXepyjdcH7hnruVMsrLw7ZrdBlg52B9Rgwen2PhVQEmpNre2e1kW/TChp 6+yQ4s0z8keVLizx2vp2PNJyeIpSTkCslriCa9ybOjm9isuDXDmOB++WcpQuXfskjaqs xmkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716191366; x=1716796166; 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=7bWG6K+DJj1mdgM3teUA2D4JJaHt9SsqRQAa+DPVSCQ=; b=Fhk+8mdmYV5MkdtNLx1p4KK7ZNS8pqmLoOAbGaFHWHWyCH5cpgq/zCFniMU/6jVFH5 rl5JYfO9VR97BqMN0ICBQf/PtLmci0aKgjBtTw+rV+38/fJGwklrWIFG6i+J4TIGmScY hqEvKCiJjaVPPXAfe/ADvHHLRz9Rzkesx+c+V4xeMQEHL3qdXExfjoVbRjXpG1cMMl8W k/TaW7MDT7RRA+a5zrhcC4jxBGQ91UAlOtzGP5P5PWp/GnM8+7aoyQihW5d9CiONXw7I YbuWnEC9jC72DPCXrTsAJaso458biNWGjXLdWK9aDAxjYFOS4LViOTDJIYTrFhhD4AzC YQsA== X-Gm-Message-State: AOJu0Yx0CPiMV3z+3zBIpPe8M/DC1Co0pREUpTcjiOb9qhTbOu5aOU17 rYhTHzBxFqsL+ikXhjIC0JTsAOwmrQ93QxDtSO7jJJW14C92RGW/fDnLAGBCAjv5JIZz3PVqaEo = X-Google-Smtp-Source: AGHT+IGhi2ElVJ80uZ7yJT7xN99Ksm9qUEpQr+mN6Y8JR/YoiSy0aNECw8jncGi11Q84BNJS7HDwyw== X-Received: by 2002:a2e:9d0a:0:b0:2e3:186d:45a7 with SMTP id 38308e7fff4ca-2e51ff5314fmr177242011fa.22.1716191366477; Mon, 20 May 2024 00:49:26 -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.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:49:26 -0700 (PDT) From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED 19/30] ada: Fix list of attributes defined by Ada 2012 Date: Mon, 20 May 2024 09:48:45 +0200 Message-ID: <20240520074858.222435-19-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 List-Id: From: Piotr Trojanek Recognize references to attributes Old, Overlaps_Storage and Result as language-defined in Ada 2012 and implementation-defined in earlier versions of Ada. Other attributes introduced by Ada 2012 RM are correctly categorized. This change only affects code with restriction No_Implementation_Attributes. gcc/ada/ * sem_attr.adb (Attribute_12): Add attributes Old, Overlaps_Storage and Result. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_attr.adb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 414224e86b6..df52229b6aa 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -170,7 +170,10 @@ package body Sem_Attr is (Attribute_First_Valid | Attribute_Has_Same_Storage | Attribute_Last_Valid | - Attribute_Max_Alignment_For_Allocation => True, + Attribute_Max_Alignment_For_Allocation | + Attribute_Old | + Attribute_Overlaps_Storage | + Attribute_Result => True, others => False); -- The following array is the list of attributes defined in the Ada 2022 -- 2.43.2