dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or DW_AT_rvalue_reference attri...
authorJakub Jelinek <jakub@redhat.com>
Mon, 24 Oct 2016 18:44:30 +0000 (20:44 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 24 Oct 2016 18:44:30 +0000 (20:44 +0200)
commit0f2a9e37fa5487d7f1b4ea3530c497661a6d7817
tree6675f8e8df8869495a58275f084067520862325c
parent331075711a0f19224c11cc880c695fd52723b881
dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or DW_AT_rvalue_reference attributes.

* dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
DW_AT_rvalue_reference attributes.

* cp-objcp-common.c (cp_decl_dwarf_attribute): Handle DW_AT_reference
and DW_AT_rvalue_reference.

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

From-SVN: r241492
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/ref-2.C [new file with mode: 0644]