https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119190
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org Target Milestone|--- |15.0 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- One possibility would be to guard the bitmap_set_bit (dce_worklist, SSA_NAME_VERSION (gimple_assign_lhs (stmt))); on if (optimize && !optimize_debug) or maybe just if (optimize). For -Og -g it actually works fine, we get - ci = COMPLEX_EXPR <_2, _4>; + ci_8 = COMPLEX_EXPR <_2, _4>; + # DEBUG ci => ci_8 from ssa pass and - ci_8 = COMPLEX_EXPR <_2, _4>; - # DEBUG ci => ci_8 + # DEBUG ci => __complex__ (1.0e+0, 2.0e+0) from fre1. While for -Og we can get var-tracking-assignments for this, for -O0 we can't.