From patchwork Mon May 20 07:48:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 90459 Return-Path: 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 1389F3858CDA for ; Mon, 20 May 2024 07:56:33 +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 E3332385840B for ; Mon, 20 May 2024 07:49:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3332385840B 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 E3332385840B 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=1716191374; cv=none; b=hKRMwDrAvXV7PmWkp17CIBKGSp8RAIfEhu82zZ7NTsfZz86Q0O90M2eZLMCWl0qrvNuLgwvMuNbQT3CEU80aMVnq99pFq0glVXbyjB7T6xCCwrQWU5A3IKWgqUjgGFlxmGEAGbbhtXahPI7nhUuUZXiMc1eloxg4JD2T4L9af/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191374; c=relaxed/simple; bh=pvcE06wYBSnYjJaeKY6P6lk3NedLgtq82rANGG20PMY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BBXvTa/iJy1l9EMl/RE6DsvLvAoTDdBMWQ5JmENw+ElE0tftS5XDz2nFif0abRTMwjNLnpstNHjsebaqjQNLggPV0pT3I5BIx198Y3PRcrmNgcy3TZxC7GNyAVaKHd26oudC3uxb+h6z2P+82WoKT6C84u9wYhKCXRlk6kbdQ7A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2e6f2534e41so24535741fa.0 for ; Mon, 20 May 2024 00:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716191367; x=1716796167; 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=InYcPoYdpZyefEzUVHq7aqUmkHdp2fxsetl6jAKzDVs=; b=ilc3sgbgS/2nm2M01+2f4lOJDZbaQIZylO6OmAMuf6wT5RR9rGrLbJt/6WJHP0F1cW ZUpnFx5G/WNBQ9R9AGcLQKpH0ctQE8y+4RhCQ2+yWLumEwAt0PjiXcbHaISACwesOkjR FJ27TEcimPtfGMGmdsxgCHdZmed9F/2Y/BlG6oZj/2REPoU2/0+lKEfjC7d9BUnHtigf FswysCuWQIzP/a/U3zALlJjuJenW5LLOh9YYXt7S61RkDnQkvc/B9gAGpLexiXlxionU dLWJVOh1NmDmU1bh66b9JQ5wKFBz2ItCPhraSHcu7g2USc8+TU58FWPLuhptC3d37+7V Wogw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716191367; x=1716796167; 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=InYcPoYdpZyefEzUVHq7aqUmkHdp2fxsetl6jAKzDVs=; b=Zxn8Rl60yJgixznpYEj8454HhtS5b4NQRS4tQs3KH+g6zS0A7mnzrnArLfohVS8Pfx ZtEjLq3yO6JR9udUMkEhVj9o3wK5xvfrM88mAf8IV0L6+DdQLpdmlPjc482h8+eEeRqD tbefZCyRN/rEzkmHUbdbM9UyGAqinogwj34dZECYqoTjlJnLQHw3oP7UUIV+ELfPqf0O qp+bzv0uuYiVMHA2VClc9aZREYPSfCONM688IefxsuYnLD7cpI2aHUoGpEAnnqPpimrl JNrGNGuM2Lfa81MEj9vFMOhlKQHfGj+r8Zv2ulO99NWCqbJ3VFGM5UQ8L/qvK5lK7+Ar s29Q== X-Gm-Message-State: AOJu0YzvGfwEPsVsYi8gsUrKi8wcj50CMTn9anvhEj/s7/5ZLlzCxBFL w557okYYVXn0oPG3/FVrlvv5kI+gENjfGJzjDMzWu580CAIKnK1dJSeD42umMm2xgDr8XUkvM8w = X-Google-Smtp-Source: AGHT+IFMVPVBBYcSrbTlKi6P/y0uDZAObSE3boLJmjqJ+3enABqayvhUAUuLXxFxLB4bA6RhFX5M2g== X-Received: by 2002:a2e:2c06:0:b0:2de:48ef:c3ce with SMTP id 38308e7fff4ca-2e5204cda22mr164420681fa.49.1716191367439; Mon, 20 May 2024 00:49:27 -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.26 (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_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED 20/30] ada: Fix list of implementation-defined attributes Date: Mon, 20 May 2024 09:48:46 +0200 Message-ID: <20240520074858.222435-20-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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org From: Piotr Trojanek Several of the implementation-defined attributes were wrongly recognized as defined by the Ada RM. This change only affects code with restriction No_Implementation_Attributes. gcc/ada/ * sem_attr.ads (Attribute_Impl_Def): Fix list of implementation-defined attributes. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_attr.ads | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gcc/ada/sem_attr.ads b/gcc/ada/sem_attr.ads index 40ec423c4c7..52359e40ef6 100644 --- a/gcc/ada/sem_attr.ads +++ b/gcc/ada/sem_attr.ads @@ -609,6 +609,33 @@ package Sem_Attr is -- for constructing this definition in package System (see note above -- in Default_Bit_Order description). This is a static attribute. + Attribute_Atomic_Always_Lock_Free | + Attribute_Bit_Position | + Attribute_Compiler_Version | + Attribute_Descriptor_Size | + Attribute_Enabled | + Attribute_Fast_Math | + Attribute_From_Any | + Attribute_Has_Access_Values | + Attribute_Has_Tagged_Values | + Attribute_Initialized | + Attribute_Library_Level | + Attribute_Pool_Address | + Attribute_Restriction_Set | + Attribute_Scalar_Storage_Order | + Attribute_Simple_Storage_Pool | + Attribute_Small_Denominator | + Attribute_Small_Numerator | + Attribute_System_Allocator_Alignment | + Attribute_To_Any | + Attribute_TypeCode | + Attribute_Type_Key | + Attribute_Unconstrained_Array | + Attribute_Update | + Attribute_Valid_Value | + Attribute_Wchar_T_Size => True, + -- See description in GNAT RM + others => False); -- The following table lists all attributes that yield a result of a