------- Comment #1 from jakub at gcc dot gnu dot org 2010-02-24 12:44 ------- Created an attachment (id=19946) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19946&action=view) gcc45-pr43161.patch
Untested patch that fixes this. I'm not 100% sure whether it is safe to call df_analyze just for -g and not for -g0 when DF_LR_RUN_DCE isn't set in the pass (i.e. whether it wouldn't introduce any debug info regressions). This patch version calls it unconditionally, if we could call it just for -g, we could call it only after detecting there is at least one DEBUG_INSN change queued at the end of any bb. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43161