From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 95B7F3888C55 for ; Tue, 29 Mar 2022 18:00:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 95B7F3888C55 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,220,1643702400"; d="scan'208";a="73797309" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa2.mentor.iphmx.com with ESMTP; 29 Mar 2022 10:00:39 -0800 IronPort-SDR: rjDERg9ToKcLsXTolWr42LM2TPYQ/aZ4enFdtlOhqGs+ma5BSU22RJq0PG+YdoTVBya852xvVy toTDa9rsj0Lizi7QJKCf9RfUutT01ALyLoBsliRWEzNRnGXWCgBzhb2HUA8dWCpIosFyLtCV1h HOjZ3rURMhatH+TKdpNHMuXzSt08GjYbgXtkve/ZMrnhfoEX+ZZH7cctMd0UO/BHsOVgchtwce 4wc/K5FLfhcR9Dhnu0694BtHj9LLfiSv4vAjXU1ibynj73IxhPLDppG6SbNzocQKURo68Nuxx9 fOo= Date: Tue, 29 Mar 2022 18:00:35 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Thomas Schwinge CC: Martin Sebor , Subject: Re: options: Remove 'gcc/c-family/c.opt:Wuse-after-free' option definition record (was: [PATCH v2 1/2] add -Wuse-after-free) In-Reply-To: <87ee2l9knf.fsf@euler.schwinge.homeip.net> Message-ID: References: <2f6ecb46-954a-4eb2-c10c-2b2617ff382f@gmail.com> <13a79548-162e-e499-559e-c29a77b1d188@gmail.com> <9aa3967f-bdb2-f4b4-eb6c-3ceaa93ee0db@redhat.com> <67e378bc-fc09-1c79-a0ac-8a54c6f5d062@gmail.com> <87ee2l9knf.fsf@euler.schwinge.homeip.net> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3114.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-List-Received-Date: Tue, 29 Mar 2022 18:00:42 -0000 On Tue, 29 Mar 2022, Thomas Schwinge wrote: > | --- gcc/c-family/c.opt > | +++ gcc/c-family/c.opt > | [...] > | +# Defining these options here in addition to common.opt is necessary > | +# in order for the default -Wall setting of -Wuse-after-free=2 to take > | +# effect. > | + > | +Wuse-after-free > | +LangEnabledBy(C ObjC C++ LTO ObjC++) > | +; in common.opt > | + > | +Wuse-after-free= > | +LangEnabledBy(C ObjC C++ LTO ObjC++, Wall,2,0) > | +; in common.opt > | [...] > > OK to push the attached "options: Remove > 'gcc/c-family/c.opt:Wuse-after-free' option definition record"? OK. -- Joseph S. Myers joseph@codesourcery.com