r241753 - in /trunk/gcc: ChangeLog cp/ChangeLog...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Tue Nov 1 18:35:00 GMT 2016
Author: jakub
Date: Tue Nov 1 18:35:06 2016
New Revision: 241753
URL: https://gcc.gnu.org/viewcvs?rev=241753&root=gcc&view=rev
Log:
* dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
argument, don't call add_linkage_name if it is true.
(gen_variable_die): For C++ inline static data members, consider the
initial call when old_die is NULL to be declaration and call
add_name_and_src_coords_attributes in that case with true as
NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
(gen_member_die): For C++ inline static data members, emit a
definition DIE right away in DW_TAG_compile_unit context.
cp/
* cp-objcp-common.c (cp_decl_dwarf_attribute): Handle DW_AT_inline.
testsuite/
* g++.dg/debug/dwarf2/inline-var-1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/inline-var-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-objcp-common.c
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list