]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
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

index de0ce5d916459ae6bf042e86394b90c961f2ad4e..87364bf423c5984bffb1fbb9c75daa6f7e2ff199 100644 (file)
@@ -7766,7 +7766,9 @@ nvptx_asm_output_def_from_decls (FILE *stream, tree name,
       return;
     }
 
+#ifdef ACCEL_COMPILER
  emit_ptx_alias:
+#endif
 
   cgraph_node *cnode = cgraph_node::get (name);
   if (!cnode->referred_to_p ())