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

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

https://gcc.gnu.org/g:7188d74b4e68ecdd3d1441dc82f1da3f892e013c

commit r17-5761-g7188d74b4e68ecdd3d1441dc82f1da3f892e013c
Author: Paul-Antoine Arras <[email protected]>
Date:   Thu Oct 29 16:10:29 2026 +0000

    amdgcn, nvptx: Use read_collect_gcc_options in mkoffload [PR111527]

    Since r17-1526-g619a5e5586759a
    "driver: Spill long COLLECT_GCC_OPTIONS to a response file [PR111527]"
    it is not safe to use a raw getenv call to read COLLECT_GCC_OPTIONS.

    Even though these instances only check whether the env var is set but do
not
    look up its value, change to use read_collect_gcc_options for consistency
and to
    avoid future issues.

            PR driver/111527

    gcc/ChangeLog:

            * config/gcn/mkoffload.cc (compile_native): Use
            read_collect_gcc_options instead of getenv.
            * config/nvptx/mkoffload.cc (compile_native): Likewise.

Reply via email to