On 11/27/24 2:59 PM, Richard Biener wrote:

Did you test with -fdebug-types-section?  This code should be still needed
to generate the linkonce debug-type sections.  Note it doesn't work (very well)
when combined with LTO.

I used the tests in testsuite and now I also tested it with
nontrivial project. The added sections (.debug_types/.debug_info)
seem to come from output_comdat_type_unit

Do you have something more specific that should use this code?


My reasoning why this branch cannot be taken was:
1) oldsym/die_symbol is non-null only for comp_unit_die()
2) comp_unit_die() does not have a parent
3) comdat_type_p = true is set only for DIEs with parents
So both non-zero die_symbol and comdat_type_p cannot happen.

Michal

Reply via email to