From patchwork Tue May 23 08:07:37 2023 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: 97839 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1973900vqo; Tue, 23 May 2023 01:11:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mtTE88P7YLAmdCGLsSiFmD423QuSfjrJYIV5djYZtXbJsnpSSfsEid+fAoycFIluqEKO8 X-Received: by 2002:a17:907:9712:b0:96f:e622:6865 with SMTP id jg18-20020a170907971200b0096fe6226865mr5267996ejc.57.1684829519499; Tue, 23 May 2023 01:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684829519; cv=none; d=google.com; s=arc-20160816; b=zbIxqga7sVIyUNE5blzkdNCY79eUkBPe+MV0kzG/oXlg6MJ7jU9sjZCJwiRiePKhRJ gD2aIExdg2MUNFax8eyK6V3mnB4CVMthz6VRSiuyU+yZb+poP30swP8AMTZvuRzWNqBZ xJRRTjLZrtPKbViStIOtl4/9LsAcBv8VI0geCdf7ySMSQagocYhAiQzwXBSc/8aoVHjE c9v7WsHv4XfJnDHaKJEjmG6Nf4wvY577qcoPQLMPUSQYCmo/xuA4CN+U7+ujEy+uXqyh k6MOdYpz7J/WbeaD8R1DuyxFcxYWdr53zErTFKQl7QZf2xpqBZKxoP09VFbJinah6KCH qX/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=xxObproohPgpooolrZohIqdirULQerDJxWVUT1rLbeI=; b=xol4fQ19m/QBrZIqk5EWIv97ZMbH8OmixWvcVz1H534o+W2aHqgbD6/ZFeathmiWCo 7MvKFPPPxeOoYFDiVqrdkgyExw6PhFm/Gos7DeLAcCZLses3njieHgp/lTFjpsRHcjc2 jaub20r6/eJeIXi34F/R0xkJ38QVZYxiZxsu77HJJobY7ttv8Iaw/IbUhEgRP3nlJH2K uEBiUSrJYPLCEQUiaYfS3HiLRaQq0r67ndilwKuu/lYHuS7KZB3Hh2oc9X26rU8O3EM/ uVEwr2GKhnyrlqXHXA9zlZqHsuiRegvtXMVkzVyzCPWFtFpA2lKMAVXTmN+qVNmZBAwU DlXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=H3uV9aQr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f12-20020a17090631cc00b0096a97134296si5050191ejf.721.2023.05.23.01.11.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 01:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=H3uV9aQr; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D38863887F6D for ; Tue, 23 May 2023 08:09:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D38863887F6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684829382; bh=xxObproohPgpooolrZohIqdirULQerDJxWVUT1rLbeI=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=H3uV9aQrdDwbCLGHq25hh/CXvlmKHgoATe4Csp+L/fVYsJWLaFDjHjoDQ9du4XqOT TnNPbh0LeOO6n7Tb8HSjYeMAdp5/uhfDH7ctj8L3nnzYkYIJ9WEZwfp4oTVwCabLsC A7ENNbI0MkqrZe9ESHaB1JzQ/jRcxDM3xuigt3ms= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 1C52D385800A for ; Tue, 23 May 2023 08:07:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C52D385800A Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f606a80d34so11281975e9.0 for ; Tue, 23 May 2023 01:07:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684829259; x=1687421259; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xxObproohPgpooolrZohIqdirULQerDJxWVUT1rLbeI=; b=hl6SRBJSW70935AeFrs13e0t0cjaJm1Cdyh3S5N6X3lnucCIvArADYqCYxgMOlDC3R dvuhZxudUB9lzAxZgqiuYU7Lhejg+nTf+cm0Iq+q0iPNFN47mYBDlVwmZ+2WPIvzjlTT bKDxUKvv+cVVqi3/tU8ab043DVR0+yD0E34Qvhwfei970s+LkXt1b+AmtVD6//zmFdY9 BFEBApHxnBPANwq3opWZ5EHt9KdR+nxv2bxHmL12QYP0hctRLrM/cC88gNFAIIEAjTc2 5e4zFsexJUxTKu/fohn8fenEnTaRKPZmcBX7cT8LVsGCsYDudFwXHRvHqcAoM+D7Mb7N UcKQ== X-Gm-Message-State: AC+VfDzFIf62HB/VMdMS1NguqYEP7RD1hyjlQoypxQTWtazlwR5Ck9O+ OoaVL78GgZNX1ZYiA7IrddqOC3dIucNMMZoHQ3oR5g== X-Received: by 2002:a7b:cb82:0:b0:3f4:f00f:5e09 with SMTP id m2-20020a7bcb82000000b003f4f00f5e09mr9078785wmi.11.1684829259282; Tue, 23 May 2023 01:07:39 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id a23-20020a1cf017000000b003f17eaae2c9sm10944348wmb.1.2023.05.23.01.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 01:07:38 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques Subject: [COMMITTED] ada: Remove duplicate comment Date: Tue, 23 May 2023 10:07:37 +0200 Message-Id: <20230523080737.1872700-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.6 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, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766671798627086590?= X-GMAIL-MSGID: =?utf-8?q?1766671798627086590?= From: Ronan Desplanques gcc/ada/ * sem_ch7.adb: Remove duplicate comment. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_ch7.adb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gcc/ada/sem_ch7.adb b/gcc/ada/sem_ch7.adb index 5021d0ee04f..2610a7bba4d 100644 --- a/gcc/ada/sem_ch7.adb +++ b/gcc/ada/sem_ch7.adb @@ -3197,10 +3197,6 @@ package body Sem_Ch7 is -- is simply that the initializing expression is missing. if not Has_Private_Declaration (Etype (Id)) then - - -- We assume that the user did not intend a deferred constant - -- declaration, and the expression is just missing. - Error_Msg_N ("constant declaration requires initialization expression", Parent (Id));