aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2024-01-03 14:27:39 +0000
committerKwok Cheung Yeung <kcy@codesourcery.com>2024-01-03 14:41:25 +0000
commit6ae84729940acff598e1a7f49d7b381025082ceb (patch)
tree3dd61b0732a288cf77057c6c8b327512576a03ca /gcc
parenta945c346f57ba40fc80c14ac59be0d43624e559d (diff)
downloadgcc-6ae84729940acff598e1a7f49d7b381025082ceb.zip
gcc-6ae84729940acff598e1a7f49d7b381025082ceb.tar.gz
gcc-6ae84729940acff598e1a7f49d7b381025082ceb.tar.bz2
nvptx: Restructure code generating function map labels
This restructures the code generating FUNC_MAP and IND_FUNC_MAP labels in the assembly code for mkoffload to consume, hopefully making it a bit clearer and easier to search for. 2024-01-03 Kwok Cheung Yeung <kcy@codesourcery.com> gcc/ * config/nvptx/nvptx.cc (nvptx_record_offload_symbol): Restucture printing of FUNC_MAP/IND_FUNC_MAP labels.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/nvptx/nvptx.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/nvptx/nvptx.cc b/gcc/config/nvptx/nvptx.cc
index 724e403..9363d3e 100644
--- a/gcc/config/nvptx/nvptx.cc
+++ b/gcc/config/nvptx/nvptx.cc
@@ -5921,8 +5921,10 @@ nvptx_record_offload_symbol (tree decl)
fprintf (asm_out_file, "//:");
if (lookup_attribute ("omp declare target indirect",
DECL_ATTRIBUTES (decl)))
- fprintf (asm_out_file, "IND_");
- fprintf (asm_out_file, "FUNC_MAP \"%s\"",
+ fprintf (asm_out_file, "IND_FUNC_MAP");
+ else
+ fprintf (asm_out_file, "FUNC_MAP");
+ fprintf (asm_out_file, " \"%s\"",
IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
for (; dims; dims = TREE_CHAIN (dims))