This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, 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.
Attachment:
block.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |