From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id D293B3857838 for ; Wed, 11 Jan 2023 20:26:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D293B3857838 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.96,317,1665475200"; d="scan'208";a="93127323" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 11 Jan 2023 12:26:08 -0800 IronPort-SDR: 56cWDbdhekmKEcwSGfjBjZU5hWRKTfu+bsFWLjths1hsHSjgiJoGca/EhdBwITMqzy335D+kI1 S34WhZQeH0/ZLRUf15BSpw6vyDazjmm31LjtF8YHs25tnQqUH2IS5jPVk1aG9tu6zEJtmwhpqB O30bbxRUJW3p4bEURmbgNyBBGe4bTcb1M3TuPpcChsZ10wMeLGiv0J1M2aQiJXXHQStsjOpwpl a99mNPfvBTITc7Aogi+KkAr3lkpw9zCdQN4JB00/clmKxZxCqkysdnnBPa4/Pp5Q98TI28AYn2 sTI= Date: Wed, 11 Jan 2023 20:26:03 +0000 From: Joseph Myers To: Jakub Jelinek CC: Marek Polacek , Subject: Re: [PATCH] c: Don't emit DEBUG_BEGIN_STMTs for K&R function argument declarations [PR105972] In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3109.0 required=5.0 tests=BAYES_00,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 11 Jan 2023, Jakub Jelinek via Gcc-patches wrote: > The following patch ensures we don't emit any such DEBUG_BEGIN_STMTs for the > K&R function parameter declarations even in nested functions. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > 2023-01-11 Jakub Jelinek > > PR c/105972 > * c-parser.cc (c_parser_declaration_or_fndef): Disable debug non-bind > markers for K&R function parameter declarations of nested functions. > > * gcc.dg/pr105972.c: New test. OK. -- Joseph S. Myers joseph@codesourcery.com