------- Comment #40 from hubicka at gcc dot gnu dot org 2006-08-07 08:18 ------- Roger, the patch for advance loc seems sane solution to me (in my limited understanding of dwarf2).
If I understand it right, we need the advance_loc only when crossing the section boundary, so we ought to be able to use NOTE_INSN_SWITCH_TEXT_SECTIONS and use the advance_loc only when tripping over it. Only anoying thing would be probably to get it passed out of final.c up to the offending place. Thanks for looking into this, Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22313