[Bug default/27464] CU referenced from PU (--odr-mode=link case) (bis)

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Wed Feb 24 17:39:04 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27464

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative fix:
...
diff --git a/dwz.c b/dwz.c
index 7bd18e3..89a231f 100644
--- a/dwz.c
+++ b/dwz.c
@@ -8445,6 +8445,9 @@ partition_dups (void)
              if (s)
                mark_singletons (die_cu (s), s, s, &ob2);
            }
+         else if (cnt_ref_cus (die) == 1)
+           mark_singletons (die_cu (die), die, die, &ob2);
+
          arr = (dw_die_ref *) obstack_base (&ob2);
        }

...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Dwz mailing list