https://gcc.gnu.org/g:41e2077fa2ba4f9f99d8c2b84eb76b40dd52fc6a
commit r16-4677-g41e2077fa2ba4f9f99d8c2b84eb76b40dd52fc6a Author: Thomas Schwinge <[email protected]> Date: Fri Oct 24 09:59:53 2025 +0200 libgomp: Simplify 'parse_stacksize' call in 'libgomp/env.c:initialize_env' Minor fix-up for commit r13-2545-g9f2fca56593a2b87026b399d26adcdca90705685 "OpenMP, libgomp: Environment variable syntax extension". Supplying an array of three elements is misleading: 'parse_stacksize' only looks at 'params[0]'. Just let the compiler figure out the array size (..., as done elsewhere, too). libgomp/ * env.c (initialize_env): Simplify 'parse_stacksize' call. Diff: --- libgomp/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgomp/env.c b/libgomp/env.c index 626a753ca71b..f63a36afdd23 100644 --- a/libgomp/env.c +++ b/libgomp/env.c @@ -2455,7 +2455,7 @@ initialize_env (void) const char *env = getenv ("GOMP_STACKSIZE"); if (env != NULL && parse_stacksize ("GOMP_STACKSIZE", env, - (void *[3]) {&none->icvs.stacksize})) + (void *[]) {&none->icvs.stacksize})) gomp_set_icv_flag (&none->flags, GOMP_ICV_STACKSIZE); } if (none != NULL && gomp_get_icv_flag (none->flags, GOMP_ICV_STACKSIZE))
