From patchwork Tue May 16 08:41:46 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: 94542 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp276034vqo; Tue, 16 May 2023 01:57:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5cfRvHy2S7F5iF6CxNtaHYkzMFU1BMxiERTFKy/hvMKLVd1R31nVCSULFmfNXz6zolo4oA X-Received: by 2002:a17:907:3e1d:b0:94e:dd30:54b5 with SMTP id hp29-20020a1709073e1d00b0094edd3054b5mr40027309ejc.6.1684227420205; Tue, 16 May 2023 01:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684227420; cv=none; d=google.com; s=arc-20160816; b=U3grki4xWsxXHXroRDbFMcb8RqoTXle1vYnSBTudCymjpMQa57lZi+0YRtCgFjPuup 9UeKks2Jmhp1Y2qPx/xj0TIyY1A4xGLQCtQVjaPtbr3g7ZP2o7t3gOnh4vn+GxwFpDH7 g+6CeycYKvye5rP/XUuYqMlPEic4uWRhhKuDlFT6VEJfvphppU2/cjTV/CJGGA0FLqVp hi++w3YD7XfYDGKDxl24z/Wb8PX8cVPEJlNG1E036evInpFJnIC6zXnrE2ud9HC0f1Fd Kc1EdZpDCyeq5SbR3QGEWMTGz7Q5ipVYRW8YPLkAbwjpZZ8bW1zbJXA+eigd7i3iKU+j wqaw== 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=HfxgZwK4MGd0dAlZXQmsw6ivWpQDp1v8/swbqY8zpps=; b=x6jBCyEqwgXfIaAlcJBxm3uaVmr292YJK3uxjubvdMvLw+VYn+9ORk51l1zqCZ32YJ m2ajFQZfuYOJkG8SSkwnLJBig0PPod1zvKT4hDTv2bKCJJTaJoHc4y711jEWkMRQteEs pnj+M3R8r/SpAuSzxXOQ5DZitkuAhHWOB8kGheHKAHk+UP+jYcUTYvlc4YIlqjdQFdPY gJ4ugUq5ORXKVofajll2bR6lqOvOz1r/Q+RBgZneG94wcO6USIRKvIth/I95WiXCH3/V W5kg92HgVtcpVyhKP6V0ptLwMidq2Cc6tcRRMyW1z2SgEWpTLY4Q1OexXLwgvL6mUG7k eTrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=tXftSpAU; 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 ud14-20020a170907c60e00b0096a24903e7dsi10996573ejc.866.2023.05.16.01.56.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:57:00 -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=tXftSpAU; 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 044C43870900 for ; Tue, 16 May 2023 08:49:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 044C43870900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684226952; bh=HfxgZwK4MGd0dAlZXQmsw6ivWpQDp1v8/swbqY8zpps=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tXftSpAUsgg+v4wxaVjHpl/P4wFfgUnRAn9BHgncMEI47xXUXrawdkQrzNu2YxSjw CimaNfOvVL/icD86hHZFIaxmobOrHDRS+HEwekOC9IJ0UOosyUeV3gk5JFAp+OYjym hYpeR/GwZC5fu7w+bdpdZ6MGi4aBt6oGGKdnqyvc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 8A39538708F2 for ; Tue, 16 May 2023 08:41:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A39538708F2 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f435658d23so74350735e9.3 for ; Tue, 16 May 2023 01:41:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684226508; x=1686818508; 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=HfxgZwK4MGd0dAlZXQmsw6ivWpQDp1v8/swbqY8zpps=; b=czPrD4CH3bVU3enWbFOBdMDOzcoS1fj2Eh2zAS6goGOW0j46VVNDTSqjnR9kFkAeXS iSNMLuO7Wq6hGghtosvG1SxIFeXfTU6C6Out26walnAFRQJZOZmJiqigd/QAJGoqpX/m S+aTqJaqMTzv9u9UaO3kX8gqkSaUCIPpot8RdaNC2+im6QaKy+4i5c3AHIgJh86KcxO8 0HWSbBGNILEOfuM88K6mWTj2UOjaIpLY00SoLYRW8iYslp4i3EDXCvEO/uG8YGIenwVR 0cU0LCtvQB6ouRAtq3qkkYWfnzkmoCZtmqmCZPUOWE9J/txIHpqouFAK+05PYKbCq0of se0Q== X-Gm-Message-State: AC+VfDyO3odS7b73H8Cbz9pH/k4n8LqcqEGaP2PlWNablHkKsXWx49Wu CIeT/doPWALw0I1oIES7LCPF2EKZGTu7Ni2UPFo5aw== X-Received: by 2002:a1c:7712:0:b0:3f4:1dd9:e9e0 with SMTP id t18-20020a1c7712000000b003f41dd9e9e0mr23254850wmi.7.1684226508298; Tue, 16 May 2023 01:41:48 -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 p22-20020a7bcc96000000b003f1958eeadcsm1538210wma.17.2023.05.16.01.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 01:41:47 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Steve Baird Subject: [COMMITTED] ada: Add "gnat --help-ada" text for new switches. Date: Tue, 16 May 2023 10:41:46 +0200 Message-Id: <20230516084146.1502587-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.5 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?1766040451591527034?= X-GMAIL-MSGID: =?utf-8?q?1766040451591527034?= From: Steve Baird The output generated by "gnat --help-ada" should include descriptions for the newly added -gnatw_s and -gnatw_S switches". gcc/ada/ * usage.adb: Generate output text describing the -gnatw_s switch (and the corresponding -gnatw_S switch). Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/usage.adb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/ada/usage.adb b/gcc/ada/usage.adb index 97cedbb9a2d..9e2aa019573 100644 --- a/gcc/ada/usage.adb +++ b/gcc/ada/usage.adb @@ -580,6 +580,10 @@ begin Write_Line (" s suppress all info/warnings"); Write_Line (" .s turn on warnings for overridden size clause"); Write_Line (" .S* turn off warnings for overridden size clause"); + Write_Line (" _s+ turn on warnings for ineffective predicate " & + "tests"); + Write_Line (" _S* turn off warnings for ineffective predicate " & + "tests"); Write_Line (" t turn on warnings for tracking deleted code"); Write_Line (" T* turn off warnings for tracking deleted code"); Write_Line (" .t*+ turn on warnings for suspicious contract");