From patchwork Tue Nov 8 08:41:23 2022 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: 16931 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2568884wru; Tue, 8 Nov 2022 00:42:39 -0800 (PST) X-Google-Smtp-Source: AMsMyM7ZoSaCn4Bls+MQzH6RSgNuTS+faYlBEdyuAwOki6NuF3i9Wby4szEP/KZoR+rlBGTTlx4o X-Received: by 2002:a17:907:6d25:b0:7aa:f5a4:5f66 with SMTP id sa37-20020a1709076d2500b007aaf5a45f66mr50757286ejc.216.1667896959395; Tue, 08 Nov 2022 00:42:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667896959; cv=none; d=google.com; s=arc-20160816; b=o10YQfU/zfoN7HMCgz4smCv0jYRTQFFaFnoLQ9Dafh445foG89myF2S59b2eVD5W7g x0npg2Pi1WTZmrEm3ELFyYqrz4DhqO8ioK8G+hJLZc+F78HGDey/+GbtukhI5B1EU4RS 25DQfJ+OJrPcrodSJ77ng38EX1WCfBGZJ+dkjVA40o/GXLTHM/ycAnky2LErb/3xuMV+ yn5lEkrSCBztOC0mBbWeKf7ic61ebnAl3VrqK7a30troEm3P879wPBJ71LTUh+wx7fzl mH/DBGucx6qhsBoyZUuGhLQteOtm0pxgrpbZs6wRAFb5A6VmMql7Bau1ASdHr+PEdQjv vb1Q== 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=xZsltAr6YhYJnR3gWzYXu+AcPDR5Vmg1mTyAktPwVbQ=; b=BsYp7BofWLQxigTwUrolS9gchz/VOe7Ogs4GxacRAkZeDATqghhJjJmNbEbCcMCxxu eEV2RpiBlyTYtnzwUwOgnE9QPjIlTRPwgpinu5IdA1/oAwydbvBYsAK2mOAFUDW8xNCb GHHK2QXbtz9Wc27LI7sEmTfZM95gnXrpG5PQIOgPpU2QbZxnuKHuIpUFf+0Oh+14JxEw NNNBGBjEYzlzHzS9cRQDZdhL04KdYx4esIJa+N6m3CVq4hkT8kb7XMLzmkVMeQ9Ql0E2 oHsry5RiYs/sLi5VNaIra7FvEqd7Wn60nN49j7wecMalvn2JrBtrpyZ4XiacPxWR+eEh 5Y+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=p41L2yya; 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 nb5-20020a1709071c8500b007aa6ce58d9asi12674720ejc.712.2022.11.08.00.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 00:42:39 -0800 (PST) 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=p41L2yya; 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 D13F03857BB6 for ; Tue, 8 Nov 2022 08:42:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D13F03857BB6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667896940; bh=xZsltAr6YhYJnR3gWzYXu+AcPDR5Vmg1mTyAktPwVbQ=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=p41L2yyaWOkGfvH8VaLkU5VEudGAGtGJLTxBJAeOOWRd6Ox6cRkdDM6Di+m1oLmN6 ocIY4pVkvvHJWQVDX82vNqbtYZ2K0sFAL+okImWMH8Enf60FDp8tVgX3Caw7PeSksd c1eE7Wyh+SnStmepew+Fuk/nglca1H1zuqMXZFHQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 8F171385842F for ; Tue, 8 Nov 2022 08:41:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8F171385842F Received: by mail-wr1-x42c.google.com with SMTP id z14so19786801wrn.7 for ; Tue, 08 Nov 2022 00:41:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xZsltAr6YhYJnR3gWzYXu+AcPDR5Vmg1mTyAktPwVbQ=; b=34jD0nL0L0idWBZhqaVyDskxrynt401+4GBM2ngNsl5tmyBK3LdJ8s2YV2KulkzCGB sVMEDaJT6OGo4kD3R6za+voi/J5z6/qbugm+XaSzm+seYVmqD2Nhn/9IBtE0sMZeDGyl hisaKJVnwZg0dlwic0TCp3M2erDKiA67RD+TmsPn/qJwcDqX3i26v735MaOdmsQmt5Qc O2S1GP2jvQjO1tlXlbKLrufenPoVbSh7YQyhTcgIHlUplN0U0APvwhkyX9SOk/+YUGPw DhJyMTfoFgtdfxx/4JjZJcBwQksMlcCen+cJ/r5YWIcswGo3AWa30JxP6H87YSgt9ofI fCCw== X-Gm-Message-State: ACrzQf0NlC+3eF3OQyfPeHjDgrv7sOpVNjZ2eW0lvJgrMlQVq8L0P4er NZFFWkeXns4tOapp6OwOZ4TBESpGMVR1dA== X-Received: by 2002:a05:6000:683:b0:236:8a6d:72a1 with SMTP id bo3-20020a056000068300b002368a6d72a1mr679647wrb.682.1667896888987; Tue, 08 Nov 2022 00:41:28 -0800 (PST) Received: from localhost.localdomain (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id h2-20020a5d4302000000b0022ae0965a8asm9442322wrq.24.2022.11.08.00.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 00:41:28 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Bob Duff Subject: [COMMITTED] ada: Add new -gnatw_q switch to usage message Date: Tue, 8 Nov 2022 09:41:23 +0100 Message-Id: <20221108084123.300670-1-poulhies@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 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.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?1748916721872452540?= X-GMAIL-MSGID: =?utf-8?q?1748916721872452540?= From: Bob Duff ...along with -gnatw_Q. gcc/ada/ * usage.adb: Add -gnatw_q and -gnatw_Q. 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 7d11ae53696..642cfda1b27 100644 --- a/gcc/ada/usage.adb +++ b/gcc/ada/usage.adb @@ -567,6 +567,10 @@ begin "record types"); Write_Line (" .Q* turn off warnings for questionable layout of " & "record types"); + Write_Line (" _q turn on warnings for ignored " & + "equality operators"); + Write_Line (" _Q* turn off warnings for ignored " & + "equality operators"); Write_Line (" r+ turn on warnings for redundant construct"); Write_Line (" R* turn off warnings for redundant construct"); Write_Line (" .r+ turn on warnings for object renaming function");