From patchwork Mon May 29 08:28:58 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: 100147 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1362461vqr; Mon, 29 May 2023 01:35:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5g+oRMMuY0MKh8C8crgkjNrrAqBt8unmgsmkpCr2vp2YvoaEDKqCKDu8okU4oa1VQRvpi4 X-Received: by 2002:a17:907:c09:b0:971:eb29:a086 with SMTP id ga9-20020a1709070c0900b00971eb29a086mr12059682ejc.75.1685349317991; Mon, 29 May 2023 01:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685349317; cv=none; d=google.com; s=arc-20160816; b=dtUh+1eeENhMN7E3RT4CpUQEsGzbXOQsaHy+1pQWs7gxHTky9hgCKH4fILDKVjdypa BpeWCbhoXF8sc6Ho8t7BUIT6C4Z+aUD4EzISHB6vm5uAww4JL3fhOTXcgtWiD+6+DsOM D+KbqsT8l0l3a3ZCICKLPgyi1WwNSJtqmRepWL7WYhwkCsbLEDRn+uKiKCtw11dLKZvo 1y35cL7RyGiMZb4DwfbRssv0MW/CZM1qpUghyTQUaM0LPp1dL380sIJF6/o/KVWwEEir 6w+G5xPUX6zxqxiRtQ3ZOtCf3++mQZSq7KzosxRMacekQRUZG8/6NFUlYKar+WTkHNJZ GZXA== 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=OtRn9zSWGNmlWQ0aOjsGaTx8R1a9i9xxh+N0xMoi2lY=; b=dlFdigbNIHRzxklLXfQIYsHDG136uWR4hwzAj+aB2OQqirEFaCyvfjguOzcWNvgkYJ aYAJ4fl2BJZPsNeOJ+zlGq73CwxvdgykHYqJLi30wbxUgMZwDEchziFXSYe4b8CrttEc cedlO5mRd8jwuLe9747sLlWVFQ2Vu0lX6ET5PCnCgLLMFSiiljkBjwt1/hXC8PNplN3f SuCO6JdPevapjTliSUOoi8EAQbXq9b4Wfvp3XDe6GX2tRY/9CmsHff+gL4BWf8YyQy09 G9WJMY+9o4BAS1SM5+gLkj/ZjAt8fBzqkQsCXcoD4P+GsebEFQFFAwg+K7hLUWsRUauR iBqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=QdSehK5o; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id su24-20020a17090703d800b00973943bdc94si375675ejb.502.2023.05.29.01.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 01:35:17 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=QdSehK5o; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 ED2FE3882675 for ; Mon, 29 May 2023 08:32:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED2FE3882675 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685349151; bh=OtRn9zSWGNmlWQ0aOjsGaTx8R1a9i9xxh+N0xMoi2lY=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=QdSehK5oWn2/B/jkEYyEe9dIlmbHrPSz06bOnMqiDFxormcNhdsXOnnQk8BKSiIZF 71sJ5Ow6CoynvZFICbB4xcN/9nu5C87rS4VN8j1H9lWEy/aIfoLSxIngGBUtrvDer8 NQ/F0351FIBhV3N4IwO1EwYjVBh6DQrnlvHhFd4Q= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 69342385770F for ; Mon, 29 May 2023 08:29:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 69342385770F Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6dbe3c230so31165525e9.3 for ; Mon, 29 May 2023 01:29:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685348940; x=1687940940; 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=OtRn9zSWGNmlWQ0aOjsGaTx8R1a9i9xxh+N0xMoi2lY=; b=fj+0wGJqRwPWeJEbYCxg/b8Fq75OqpYNpS+UloTe9/8WVJ+MEjUBRHjrJCv6lJmkZA +ldVQljYQq4nqlnVWLZGCJW7u6un7GsnVECBTqF5iK3kjBKoqzaievOC61KEGcDD37SA zM52DLGSSlt4tuPkAfHVtIgCs7Tl7bb2c0JEn1Li8Ux3bAUs5lHPfTKmk4etYsFevEXf hDTFvoDWk6+EfokgKChmUV8+lA4I/3lr5WBXOC9DH9Kct4kWbEzcYBicnMBZMI+hn3so rVdwhb2sG5mFg8+EcAEwjQXaq0fdex+LmxL1P2JeUDQSXbCnsB4iIa+ha0bEl14W8o5d OR0A== X-Gm-Message-State: AC+VfDzmA7Zy8MK5vibaPClcOqzc7FGr90TmWxhhh/CAhSWvpn+b0sBI wbCsX8gg3ATBoDGsCHggT0cXtmPsKTEQ7BviSPdBGQ== X-Received: by 2002:a05:600c:283:b0:3f6:3ad:16a with SMTP id 3-20020a05600c028300b003f603ad016amr9102208wmk.31.1685348940391; Mon, 29 May 2023 01:29:00 -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 8-20020a05600c024800b003f4e8530696sm13356252wmj.46.2023.05.29.01.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 01:28:59 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED] ada: Tune message for pre/post on access-to-subprogram in old Ada Date: Mon, 29 May 2023 10:28:58 +0200 Message-Id: <20230529082858.2409319-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 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, 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?1767216846608176133?= X-GMAIL-MSGID: =?utf-8?q?1767216846608176133?= From: Piotr Trojanek Fix grammar in error message; make it consistent with a similar message for pre/postcondition on formal subprogram. gcc/ada/ * sem_prag.adb (Analyze_Pre_Post_Condition): Tune error message. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_prag.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/sem_prag.adb b/gcc/ada/sem_prag.adb index 88dacf5cc57..b74c60cd183 100644 --- a/gcc/ada/sem_prag.adb +++ b/gcc/ada/sem_prag.adb @@ -5245,7 +5245,7 @@ package body Sem_Prag is then if Ada_Version < Ada_2022 then Error_Msg_Ada_2022_Feature - ("pre/postcondition access-to-subprogram", Loc); + ("pre/postcondition on access-to-subprogram", Loc); raise Pragma_Exit; end if;