nvptx: In offloading compilation, special-case certain host-setup symbol aliases: avoid unused label 'emit_ptx_alias' diagnostic
Minor fix-up for commit 65b31b3fff
"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'.
This commit is contained in:
parent
649b3cf32a
commit
175016de6f
1 changed files with 2 additions and 0 deletions
|
@ -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 ())
|
||||
|
|
Loading…
Add table
Reference in a new issue