PR debug/63239 Add DWARF representation for C++11 deleted member function.
authorMark Wielaard <mjw@redhat.com>
Sun, 5 Oct 2014 15:25:03 +0000 (15:25 +0000)
committerMark Wielaard <mark@gcc.gnu.org>
Sun, 5 Oct 2014 15:25:03 +0000 (15:25 +0000)
commitf50592234cdef68ddc9b98b65a88a443e2c4523f
tree700ed4a22c54f19e861b8af7cede31a1ed585658
parent0127c169d155ecdad955d1b27cbc9e34ea981d42
PR debug/63239 Add DWARF representation for C++11 deleted member function.

include/ChangeLog

* dwarf2.def (DW_AT_GNU_deleted): New attribute.

gcc/ChangeLog

* dwarf2out.c (gen_subprogram_die): When a member function is
explicitly deleted then add a DW_AT_GNU_deleted attribute.
* langhooks.h (struct lang_hooks_for_decls): Add
function_decl_deleted_p langhook.
* langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
(LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.

gcc/cp/ChangeLog

* cp-objcp-common.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
(cp_function_decl_deleted_p): New prototype.
* cp-objcp-common.c (cp_function_deleted_p): New function.

gcc/testsuite/ChangeLog

* g++.dg/debug/dwarf2/deleted-member-function.C: New testcase.

From-SVN: r215901
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/cp/cp-objcp-common.h
gcc/dwarf2out.c
gcc/langhooks-def.h
gcc/langhooks.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/deleted-member-function.C [new file with mode: 0644]
include/ChangeLog
include/dwarf2.def