aboutsummaryrefslogtreecommitdiff
path: root/include/dwarf2.def
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2014-10-05 15:25:03 +0000
committerMark Wielaard <mark@gcc.gnu.org>2014-10-05 15:25:03 +0000
commitf50592234cdef68ddc9b98b65a88a443e2c4523f (patch)
tree700ed4a22c54f19e861b8af7cede31a1ed585658 /include/dwarf2.def
parent0127c169d155ecdad955d1b27cbc9e34ea981d42 (diff)
downloadgcc-f50592234cdef68ddc9b98b65a88a443e2c4523f.zip
gcc-f50592234cdef68ddc9b98b65a88a443e2c4523f.tar.gz
gcc-f50592234cdef68ddc9b98b65a88a443e2c4523f.tar.bz2
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
Diffstat (limited to 'include/dwarf2.def')
-rw-r--r--include/dwarf2.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dwarf2.def b/include/dwarf2.def
index 71a37b3..42a8d4b 100644
--- a/include/dwarf2.def
+++ b/include/dwarf2.def
@@ -383,6 +383,8 @@ DW_AT (DW_AT_GNU_all_call_sites, 0x2117)
DW_AT (DW_AT_GNU_all_source_call_sites, 0x2118)
/* Section offset into .debug_macro section. */
DW_AT (DW_AT_GNU_macros, 0x2119)
+/* Attribute for C++ deleted special member functions (= delete;). */
+DW_AT (DW_AT_GNU_deleted, 0x211a)
/* Extensions for Fission. See http://gcc.gnu.org/wiki/DebugFission. */
DW_AT (DW_AT_GNU_dwo_name, 0x2130)
DW_AT (DW_AT_GNU_dwo_id, 0x2131)