Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Martin Uecker via Gcc
... > > > >Whether or not you feel like the manpages are the best place to > > start that, I'll leave up to you! > > I'll try to defend the reasons to start this in the man-pages. > > This feature is mostly for documentation purposes, not being meaningful > for code at all (for some me

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Ingo Schwarze
Hi, the only point i strongly care about is this one: Manual pages should not use * non-standard syntax * non-portable syntax * ambiguous syntax (i.e. syntax that might have different meanings with different compilers or in different contexts) * syntax that might be invalid or dangerous wi

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Alejandro Colomar via Gcc
Hi Martin, On 9/3/22 14:47, Martin Uecker wrote: [...] GCC will warn if the bound is specified inconsistently between declarations and also emit warnings if it can see that a buffer which is passed is too small: https://godbolt.org/z/PsjPG1nv7 That's very good news! BTW, it's nice to see th

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Martin Uecker via Gcc
Am Samstag, den 03.09.2022, 15:41 +0200 schrieb Alejandro Colomar: > Hi Martin, > > On 9/3/22 14:47, Martin Uecker wrote: > [...] > > > GCC will warn if the bound is specified inconsistently between > > declarations and also emit warnings if it can see that a buffer > > which is passed is too sma

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Alejandro Colomar via Gcc
Hi Martin, On 9/3/22 16:35, Martin Uecker wrote: Am Samstag, den 03.09.2022, 15:41 +0200 schrieb Alejandro Colomar: Hi Martin, On 9/3/22 14:47, Martin Uecker wrote: [...] GCC will warn if the bound is specified inconsistently between declarations and also emit warnings if it can see that a b

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Alejandro Colomar via Gcc
Hi Ingo, On 9/3/22 15:29, Ingo Schwarze wrote: the only point i strongly care about is this one: Manual pages should not use * non-standard syntax * non-portable syntax * ambiguous syntax (i.e. syntax that might have different meanings with different compilers or in different contexts

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Martin Uecker via Gcc
Hi Alejandro, Am Samstag, den 03.09.2022, 16:59 +0200 schrieb Alejandro Colomar: > Hi Martin, > > On 9/3/22 16:35, Martin Uecker wrote: > > Am Samstag, den 03.09.2022, 15:41 +0200 schrieb Alejandro Colomar: > > > Hi Martin, > > > > > > On 9/3/22 14:47, Martin Uecker wrote: > > > [...] > > > > >

Re: [PATCH] Various pages: SYNOPSIS: Use VLA syntax in function parameters

2022-09-03 Thread Alejandro Colomar via Gcc
Hi Martin, On 9/3/22 17:31, Martin Uecker wrote: [...] But the recent discussion about presenting nonnull pointers as [static 1] is horrible. But let's wait till the future hopefully fixes this. yes, [static 1] is problematic because then the number can not be used as a bound anymore. My ex

gcc-12-20220903 is now available

2022-09-03 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220903 is now available on https://gcc.gnu.org/pub/gcc/snapshots/12-20220903/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 12 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch