https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93384

--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps if we want to really make sure all the flags are what we expect them,
we should call clone_function_name_numbered instead of clone_function_name,
though I'm afraid I have no idea how well that works across LTO, because I see
nothing in the LTO dumping or restoring that would try to maintain clone_fn_ids
hash_map.
Or we could for each name we try look it up among the aliases and if we find
such an alias, retry with another number or punt after trying a few.

Reply via email to