diff options
author | Michal Jires <mjires@suse.cz> | 2025-01-16 14:42:59 +0100 |
---|---|---|
committer | Michal Jires <mjires@suse.cz> | 2025-01-18 20:40:47 +0100 |
commit | 557d1a44ece3b9cf0084a4ebcc2e50875d788393 (patch) | |
tree | a051b523a60d84d7d35c7d02221b62c85f76499f /libphobos/src/std/algorithm/mutation.d | |
parent | d309844d6fe02e695eb82cbd30fd135e836f24eb (diff) | |
download | gcc-557d1a44ece3b9cf0084a4ebcc2e50875d788393.zip gcc-557d1a44ece3b9cf0084a4ebcc2e50875d788393.tar.gz gcc-557d1a44ece3b9cf0084a4ebcc2e50875d788393.tar.bz2 |
Fix uniqueness of symtab_node::get_dump_name.
symtab_node::get_dump_name uses node order to identify nodes.
Order is no longer unique because of Incremental LTO patches.
This patch moves uid from cgraph_node node to symtab_node,
so get_dump_name can use uid instead and get back unique dump names.
In inlining passes, uid is replaced with more appropriate (more compact
for indexing) summary id.
Bootstrapped/regtested on x86_64-linux.
Ok for trunk?
gcc/ChangeLog:
* cgraph.cc (symbol_table::create_empty):
Move uid to symtab_node.
(test_symbol_table_test): Change expected dump id.
* cgraph.h (struct cgraph_node):
Move uid to symtab_node.
(symbol_table::register_symbol): Likewise.
* dumpfile.cc (test_capture_of_dump_calls):
Change expected dump id.
* ipa-inline.cc (update_caller_keys):
Use summary id instead of uid.
(update_callee_keys): Likewise.
* symtab.cc (symtab_node::get_dump_name):
Use uid instead of order.
gcc/testsuite/ChangeLog:
* gcc.dg/live-patching-1.c: Change expected dump id.
* gcc.dg/live-patching-4.c: Likewise.
Diffstat (limited to 'libphobos/src/std/algorithm/mutation.d')
0 files changed, 0 insertions, 0 deletions