This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Do not change scope for unknown locations
> 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 <dehao@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