[Bug debug/126348] [LTO] Split clone and direct children refer to abstract DIEs from different CUs
luolongjuna at gmail dot com via Gcc-bugs <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126348 --- Comment #3 from Longjun Luo <luolongjuna at gmail dot com> --- Patch v2 posted: https://inbox.sourceware.org/gcc-patches/[email protected]/ This version addresses the review comments on v1 by moving the fallback out of dwarf2out_die_ref_for_decl and into the initial LTO streaming caller, restricted to cgraph_node::split_part clones. The regression test now also verifies that the concrete split-function DIE is address-bearing and that it and its direct children refer to the same input TU. Bootstrapped and regression-tested on x86_64-pc-linux-gnu (C and C++ only), with no new failures. The new test fails without the patch and passes with it.