https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779
baoshan <pangbw at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pangbw at gmail dot com --- Comment #9 from baoshan <pangbw at gmail dot com> --- (In reply to Jakub Jelinek from comment #6) >> I.e. not perform it at all if !MAY_HAVE_DEBUG_INSNS, and use D There are some regression test cases would check if the generated RTL are same with or without debug option enabled(like gcc.dg/pr45055.c), so if we perform optimization depend on if there is debug instructions, these test cases would fail. Will GCC community accept such patch with these regressions? I have a fix that could fix this issue but with regression on pr45055.c, so far I am hesitate if I can post it for review.