[Bug debug/49382] -O2 -g: DW_AT_location at the very first PC is already modified
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 15 09:57:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49382
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-15 09:56:36 UTC ---
Author: jakub
Date: Wed Jun 15 09:56:33 2011
New Revision: 175076
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175076
Log:
PR debug/49382
* dwarf2out.c (dw_loc_list_node): Add force field.
(add_var_loc_to_decl): For PARM_DECL, attempt to keep
the incoming location in the list, even if it is modified
before first real insn.
(output_loc_list): Emit empty ranges with force flag set.
(dw_loc_list): If first range of a PARM_DECL is empty,
set force flag.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
More information about the Gcc-bugs
mailing list