> As Richard suggested, if a location is UNKNOWN_LOCATION, instead of > change_scope to DECL_INITIAL (cfun->decl), we should let it inherit > location from its previous instructions. This is implemented in the > attached patch. > > Bootstrapped and passed gcc regression tests and gdb regression tests. > > Is it okay for trunk? > > Thanks, > Dehao > > gcc/ChangeLog: > 2012-11-02 Dehao Chen <de...@google.com> > > * final.c (reemit_insn_block_notes): Do not change scope if insn > location is UNKNOWN_LOCATION.
OK, thanks. What happens if you go one step farther and always continue? -- Eric Botcazou