https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64498
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #3) > If the final result is -g0, then clearing flag_var_tracking_assignments is > desirable, if the final result is -g and any of the inputs have debug stmts, > then either you need to turn flag_var_tracking_assignments whenever any > inputs > has debug stmts, or remove the debug stmts if you want to keep it cleared. I think this will properly happen when removing flag_var_tracking_assignments from Optimization. The streamer drops all debug stmts at stream-in time according to global flags.