[COMMITTED,17/30] ada: Remove repeated condition in check for implementation attributes
Message ID | 20240520074858.222435-17-poulhies@adacore.com |
---|---|
State | Committed |
Commit | 4ed963a52a0a7349f0beb765ee0802857d1752eb |
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 D37993858404 for <patchwork@sourceware.org>; Mon, 20 May 2024 07:57:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id F20A93858D37 for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 07:49:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F20A93858D37 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 F20A93858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191369; cv=none; b=SLEHuA0eV8yYLeuFpNFVy3ojPCFGk3ngbu5oU2RpRMO+OZr3jpDLwfdkhUUfm7H8u7E8BtORBp9RhFL7KvxBd4kR1wXtys3DiB7wNmlj/HR44CbD4BFmXcQidmgm6hrGxnFxnfRYF16NIpzxrU8lJZ6T6Vq8RT3KSjFyYIbcS44= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716191369; c=relaxed/simple; bh=c2XHAIcsbq9zDtXosyXGCl+tVSveTIWTzIun4TK2LdM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=DWA4sx3XyM7K2WLMtDEpoNUhYnHUVmni+kX2VgNRIGZJSMelqhweNfztICARs5ZtD9Y6ijGmQWqsmIhTDpkLO4Ho7hb2x42aYr+WnFXchuK/PnkDEPVTFgiPFc+0qoPOm3R6aIP9Onzy+qBbDNi+mia1bDyjc+roW9IcRKotI7g= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-420298ff5b1so24598895e9.1 for <gcc-patches@gcc.gnu.org>; Mon, 20 May 2024 00:49:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716191365; x=1716796165; 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=ULYBQu6bDn5MHtOWeUmBJjZUQe7hgb31Njv9/ikArlw=; b=HwPqTmM2YmfsHRY7lTOg9HAJ9Z/StPdEw3KJDrgBWiu/kbTTR5Or4gA/MrbHwtvU9k PLPyqJ2at1Yrb4XwztanZ2wpuBdJ+M+eG4B2EpHwwIQ9p0MMu7YtnvduUV1K9fAzef3Z /kjo9Q3OnusQx/5rmcenJcaOYqkpFe5QEghsN7wrVsHZPuCifpuRyb0DfHlt5Qpw87GI wncZz7rg4Q8oJenYJ60oVy1sXetQ253j4qXGBNKv6rdv+H5g/PE8BnVA0dgqdE8c4s5c KNluJ7NZWDJHYYnF+4lR6b6j+NZTpKB8+RvhBTeOJAizmZwZNKzYHeX/kTCX2G6J3z7F zi0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716191365; x=1716796165; 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=ULYBQu6bDn5MHtOWeUmBJjZUQe7hgb31Njv9/ikArlw=; b=FZ/grU4kglWMQL67eNevRo9FwCmtwA8Gl2gz9NnXwvfNVcckWR8Bky8RmymGIN9ghb I/1zt1gS0IJ4DHKHgSgoJ/JOyKD0kpW+ET2pnLVt8p0cUaig9BSGejoJaEs7jSeDgQzz VQwf7aGdQ8nJKFJrgdoHSy+PdgG5qx05LlchMKLWr+/tbTxMYxE++uHV2puFLJff8+x7 W8Rjc6M7s4IXD9hBZxBkJ2tejEGdKriFXcIMywQMQn9qq79LGeplHBq0VGst2uh1giHT LVExSGF8lLsV/YDIqEjVp2YNMVbFKkfjVEDi38kl8oB8nPWhJqaRXxlscoFthhpV7wEn wLPg== X-Gm-Message-State: AOJu0YxUzmPKdA9jSNi27f4q0KwtVRr8DxoebPsl60VQKJ9UsjQVKpDx YeWrsUwOAslvuBrBQy6wBrr+F8kFCgHI3OI39kANcBpBKFJMOvJzInHAU8g1QBF7AUFUcidaxZw = X-Google-Smtp-Source: AGHT+IFMb0RsiUftyEjYkLDZi+XhJvIMbTfMRn2EC7xtyWRh87lgoLxujKGFMIq5ktd3IT7lAYrBnA== X-Received: by 2002:a05:600c:1c94:b0:41f:f32d:d6c with SMTP id 5b1f17b1804b1-41ff32d0dbamr277919475e9.23.1716191364773; Mon, 20 May 2024 00:49:24 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 00:49:24 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek <trojanek@adacore.com> Subject: [COMMITTED 17/30] ada: Remove repeated condition in check for implementation attributes Date: Mon, 20 May 2024 09:48:43 +0200 Message-ID: <20240520074858.222435-17-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: Piotr Trojanek <trojanek@adacore.com>
Code cleanup; semantics is unaffected.
gcc/ada/
* sem_attr.adb (Analyze_Attribute): Remove condition that is
already checked by an enclosing IF statement.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_attr.adb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index 2b22cf13ad0..6c32d201c55 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -3225,7 +3225,7 @@ package body Sem_Attr is if Comes_From_Source (N) then if not Attribute_83 (Attr_Id) then - if Ada_Version = Ada_83 and then Comes_From_Source (N) then + if Ada_Version = Ada_83 then Error_Msg_Name_1 := Aname; Error_Msg_N ("(Ada 83) attribute% is not standard??", N); end if;