]> 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>
Thu, 17 Apr 2025 07:32:33 +0000 (09:32 +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'.

(cherry picked from commit 175016de6f9d800343ce31cf1837a3265569b657)

gcc/ChangeLog.omp
gcc/config/nvptx/nvptx.cc

index 0ffb30b66c049373eefb688042bf13538efb6b2c..c5fd3e18383e67ebc5743de75434366d21565cad 100644 (file)
@@ -1,3 +1,11 @@
+2025-04-17  Thomas Schwinge  <tschwinge@baylibre.com>
+
+       Backported from trunk:
+       2025-04-08  Thomas Schwinge  <tschwinge@baylibre.com>
+
+       * config/nvptx/nvptx.cc (nvptx_asm_output_def_from_decls)
+       [!ACCEL_COMPILER]: Don't define label 'emit_ptx_alias'.
+
 2025-04-08  Tobias Burnus  <tburnus@baylibre.com>
 
        Backported from master:
index 8e5d9ecce70ac82ef9a7e974861ea199fb79055d..23987a479c47164c24dd363733317fe6dbbab02c 100644 (file)
@@ -8497,7 +8497,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 ())