Message ID | ri6va23st0j.fsf@suse.cz |
---|---|
State | New |
Headers | show |
Series | [PR,hsa/87863] Set assembler name of group and global variables early | expand |
diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c index 79e9405ce3f..1fdd8fc2efb 100644 --- a/gcc/omp-grid.c +++ b/gcc/omp-grid.c @@ -934,6 +934,8 @@ grid_mark_variable_segment (tree var, enum grid_var_segment segment) if (!TREE_STATIC (var)) { TREE_STATIC (var) = 1; + const char *prefix = IDENTIFIER_POINTER (DECL_NAME (var)); + SET_DECL_ASSEMBLER_NAME (var, create_tmp_var_name (prefix)); varpool_node::finalize_decl (var); }