]> git.ipfire.org Git - thirdparty/gcc.git/commit
nvptx: In offloading compilation, special-case certain host-setup symbol aliases...
authorThomas Schwinge <tschwinge@baylibre.com>
Mon, 7 Apr 2025 10:39:33 +0000 (12:39 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Tue, 8 Apr 2025 10:17:02 +0000 (12:17 +0200)
commit175016de6f9d800343ce31cf1837a3265569b657
tree77b21113361ab2c3332a285de56553884daa9219
parent649b3cf32aee7c22f24033d0f6f8c74196b74a19
nvptx: In offloading compilation, special-case certain host-setup symbol aliases: avoid unused label 'emit_ptx_alias' diagnostic

Minor fix-up for commit 65b31b3fff2fced015ded1026733605f34053796
"nvptx: In offloading compilation, special-case certain host-setup symbol aliases [PR101544]",
as of which we see for non-offloading configurations:

    +[...]/source-gcc/gcc/config/nvptx/nvptx.cc: In function 'void nvptx_asm_output_def_from_decls(FILE*, tree, tree)':
    +[...]/source-gcc/gcc/config/nvptx/nvptx.cc:7769:2: warning: label 'emit_ptx_alias' defined but not used [-Wunused-label]
    + 7769 |  emit_ptx_alias:
    +      |  ^~~~~~~~~~~~~~

gcc/
* config/nvptx/nvptx.cc (nvptx_asm_output_def_from_decls)
[!ACCEL_COMPILER]: Don't define label 'emit_ptx_alias'.
gcc/config/nvptx/nvptx.cc