dwarf2out.c (gen_variable_die): For -gdwarf-5...
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Feb 2017 21:33:47 +0000 (22:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Feb 2017 21:33:47 +0000 (22:33 +0100)
commitfe8ece053b4e3f5570881c774cd3f76b9fb41360
tree5a5749461ba4f9bbeaf92f3105049952f5c7c129
parent61ac5ebe618c2cbdc591854eff96c6aa64514382
dwarf2out.c (gen_variable_die): For -gdwarf-5...

* dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
instead of DW_TAG_member for static data member declarations and don't
set no_linkage_name for static inline data members.
(gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
to DW_TAG_member.

* g++.dg/debug/dwarf2/inline-var-2.C: New test.

From-SVN: r245661
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C [new file with mode: 0644]