summaryrefslogtreecommitdiff
path: root/gcc/debug.h
diff options
context:
space:
mode:
authorccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-29 18:13:27 +0000
committerccoutant <ccoutant@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-29 18:13:27 +0000
commitb922281abe41c6d48002ac95e2fa34dab15b4572 (patch)
tree7087fae8b2855105cb47e6bdcf53fef7dda8d854 /gcc/debug.h
parent57bb39d9fee50cd68eba31a440501cf0777f657e (diff)
downloadgcc-b922281abe41c6d48002ac95e2fa34dab15b4572.tar.gz
gcc/ChangeLog:
PR debug/41700 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two locations in the source). (store_vcall_insn): New function. (lookup_vcall_insn): New function. (dwarf2out_virtual_call_token): Use store_vcall_insn. (dwarf2out_copy_call_info): New function. (dwarf2out_virtual_call): Use lookup_vcall_insn. * emit-rtl.c (try_split): Call copy_call_info debug hook. * debug.h (struct gcc_debug_hooks): Add copy_call_info hook. * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook. (debug_nothing_rtx_rtx): New dummy hook. * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook. (xcoff_debug_hooks): Likewise. * sdbout.c (sdb_debug_hooks): Likewise. * vmsdbgout.c (vmsdbg_debug_hooks): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/debug.h')
-rw-r--r--gcc/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/debug.h b/gcc/debug.h
index ef611d43572..079ecb623ad 100644
--- a/gcc/debug.h
+++ b/gcc/debug.h
@@ -143,6 +143,12 @@ struct gcc_debug_hooks
point. */
void (* virtual_call_token) (tree addr, int insn_uid);
+ /* Copies the OBJ_TYPE_REF_TOKEN for a virtual call from OLD_INSN to
+ NEW_INSN. Called from emit-rtl.c:try_split when a CALL_INSN is
+ split, so that the vtable slot index remains associated with the
+ new CALL_INSN. */
+ void (* copy_call_info) (rtx old_insn, rtx new_insn);
+
/* Records a virtual call given INSN_UID, which is the UID of the call
instruction. The UID is then mapped to the vtable slot index noted
during the lowering phase. Called from final_scan_insn when ICF
@@ -174,6 +180,7 @@ extern void debug_nothing_tree_int (tree, int);
extern void debug_nothing_tree_tree_tree_bool (tree, tree, tree, bool);
extern bool debug_true_const_tree (const_tree);
extern void debug_nothing_rtx (rtx);
+extern void debug_nothing_rtx_rtx (rtx, rtx);
extern void debug_nothing_uid (int);
/* Hooks for various debug formats. */