]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix symbol_table::change_decl_assembler_name when DECL_RTL is already computed
authorJan Hubicka <jh@suse.cz>
Wed, 30 Jul 2025 12:48:43 +0000 (14:48 +0200)
committerJan Hubicka <jh@suse.cz>
Wed, 30 Jul 2025 13:05:44 +0000 (15:05 +0200)
commit05e4bb882979e94e0c675e771d90f94f1315e6d6
treedfee9a9c2de8d3f642d8c7224709131cc72b4528
parent1d3e713dda99e2f56393232e69653c413748bf57
Fix symbol_table::change_decl_assembler_name when DECL_RTL is already computed

while working on patch assigning unique names to static symbols I noticed that
fortran symbols are not renamed since the frontend calls make_decl_rtl.  This
gets DECL_ASSEMBBLER_NAME and DECL_RTL out of sync. I think we can drop that
call, but it is also good idea to avoid this inconsistence, so this patch makes
symbol_table::change_decl_assembler_name to recompute DECL_RTL in this case.

gcc/ChangeLog:

* symtab.cc (symbol_table::change_decl_assembler_name): Recompute DECL_RTL
in case it is already computed.
gcc/symtab.cc