On Sat, 20 Sep 2025, Martin Uecker wrote: > This fixes a regression caused by my patch for nested functions > on aarch64. > > Bootstrapped and regression tested on aarch64 and x86_64. > > > > c: Fix regression related to DECL_NONLOCAL on aarch64 [PR121933] > > The recent patch r16-3747-gafa74d37e81 to detect the use of non-local > context by nested functions caused regressions on aarch64, because > DECL_NONLOCAL was set on labels. Fix this by setting it only to > the same types of decls as before. > > PR target/121933 > > gcc/c/ChangeLog: > * gcc/c/c-typeck.cc (mark_decl_used): Set DECL_NONLOCAL > only for VAR_DECL, FUNC_DECL, PARM_DECL.
OK. -- Joseph S. Myers [email protected]
