LTO partitioning does renaming of symbols that ends up in same partition
and clash with assembler name. This is done for "ordinary" symbols (such
as static functions) but also for symbols that are kept only as master
clones holding bodies of functions to be specialized later.
This is done only becuase we stream bodies to named section and clash
in names would mean that ltrans will load wrong body and crash.
Martin recently added bit to stream body for clones that are needed
since this makes it easier to bookeep what summaries are output. THis
however triggers mass renaming of inline clones that is very slow
and unnecesary since their bodies are never streamed.
Bootstrapped/regtested x86_64-linux, comitted.
gcc/lto/ChangeLog:
2023-01-04 Jan Hubicka <hubicka@ucw.cz>
* lto-partition.cc (may_need_named_section_p): Clones with no body
need no remaning.