https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121933

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Uecker <[email protected]>:

https://gcc.gnu.org/g:4c1d8818dee177b4f6c3adbf747873a0443d02b6

commit r16-4146-g4c1d8818dee177b4f6c3adbf747873a0443d02b6
Author: Martin Uecker <[email protected]>
Date:   Sat Sep 13 08:37:32 2025 +0200

    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:
            * c-typeck.cc (mark_decl_used): Set DECL_NONLOCAL
            only for VAR_DECL, FUNC_DECL, PARM_DECL.

Reply via email to