From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06CF1C4332F for ; Thu, 10 Nov 2022 01:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiKJBe0 (ORCPT ); Wed, 9 Nov 2022 20:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbiKJBeZ (ORCPT ); Wed, 9 Nov 2022 20:34:25 -0500 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 09 Nov 2022 17:34:24 PST Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5508F1E3FA for ; Wed, 9 Nov 2022 17:34:24 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,152,1665475200"; d="scan'208";a="86523672" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 09 Nov 2022 17:33:21 -0800 IronPort-SDR: /CSXM/85bf/VqMKBkhZkWF4WtmJlt5kt3i8gZRftQsBha87wsc6JnF47ZX8Sz5xd96mFt3HT1U mT/oxK4uvM4d5P881Jg/ZvlBySDCXsj/aEqBqjq6y/+ICy9rcdKPo2mIJhvicrahqXbwoxmO0b MNc0ZWJRuHSHK8zR/aJP8yvqj5wJsWcCKTQP3UqTAHR/dlp1IN5NVQ86vYpo7UdEZjpMJo3YoF Y1dxiRulQsumQZmLiDCkOTFklKTv8+96r5ZY0yz0vsTRj3+nnqUwWWMdEhqB19m1pSMvd+1TiK +BA= Date: Thu, 10 Nov 2022 01:33:15 +0000 From: Joseph Myers To: Alejandro Colomar CC: Martin Uecker , Ingo Schwarze , JeanHeyd Meneide , , Subject: Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters In-Reply-To: Message-ID: <69d694b3-756-792d-8880-87bab482ea34@codesourcery.com> References: <20220826210710.35237-1-alx.manpages@gmail.com> <89d79095-d1cd-ab2b-00e4-caa31126751e@gmail.com> <5ba53bad-019e-8a94-d61e-85b2f13223a9@gmail.com> <491a930d-47eb-7c86-c0c4-25eef4ac0be0@gmail.com> <2abccaa2-d472-4c5b-aea6-7a2dddd665da@gmail.com> <4475b350c2a4d60da540c0f3055f466640e6c409.camel@tugraz.at> <51f5a2f2-84c1-bc75-cf94-0cdc1771d37f@gmail.com> <4e3fee795769544738b3dc793aa95d6b34b72047.camel@tugraz.at> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On Thu, 10 Nov 2022, Alejandro Colomar via Gcc wrote: > I've shown the three kinds of prototypes that have been changed: > > - Normal VLA; nothing fancy except for the '.'. > - Complex size expressions. > - 'void *' VLAs (assuming GNU conventions: sizeof(void *)==1). That doesn't cover any of the tricky issues with such proposals, such as the choice of which entity is referred to by the parameter name when there are multiple nested parameter lists that use the same parameter name, or when the identifier is visible from an outer scope (including in particular the case where it's declared as a typedef name in an outer scope). -- Joseph S. Myers joseph@codesourcery.com