diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-21 08:20:43 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-21 08:20:43 +0000 |
commit | f630fc6ab056ba999b808a0784107320bbebb445 (patch) | |
tree | cdfc8507e0a36ca76e879d398976c0fa9102afb7 /gcc/debug.h | |
parent | 95770ca3202ebd8529d202aaf4714343a2c4e14e (diff) | |
download | gcc-f630fc6ab056ba999b808a0784107320bbebb445.zip gcc-f630fc6ab056ba999b808a0784107320bbebb445.tar.gz gcc-f630fc6ab056ba999b808a0784107320bbebb445.tar.bz2 |
Debug hooks: use rtx_insn and rtx_code_label
2014-08-21 David Malcolm <dmalcolm@redhat.com>
* debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
"label" from rtx to rtx_code_label *. Strengthen param 1 of
"var_location" hook from rtx to rtx_insn *.
(debug_nothing_rtx): Delete in favor of...
(debug_nothing_rtx_code_label): New prototype.
(debug_nothing_rtx_rtx): Delete unused prototype.
(debug_nothing_rtx_insn): New prototype.
* final.c (final_scan_insn): Add checked cast to rtx_insn * when
invoking debug_hooks->var_location (in two places, one in a NOTE
case of a switch statement, the other guarded by a CALL_P
conditional. Add checked cast to rtx_code_label * when invoking
debug_hooks->label (within CODE_LABEL case of switch statement).
* dbxout.c (dbx_debug_hooks): Update "label" hook from
debug_nothing_rtx to debug_nothing_rtx_code_label. Update
"var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
(xcoff_debug_hooks): Likewise.
* debug.c (do_nothing_debug_hooks): Likewise.
(debug_nothing_rtx): Delete in favor of...
(debug_nothing_rtx_insn): New function.
(debug_nothing_rtx_rtx): Delete unused function.
(debug_nothing_rtx_code_label): New function.
* dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
debug_nothing_rtx to debug_nothing_rtx_code_label.
(dwarf2out_var_location): Strengthen param "loc_note" from rtx
to rtx_insn *.
* sdbout.c (sdb_debug_hooks): Update "var_location" hook from
debug_nothing_rtx to debug_nothing_rtx_insn.
(sdbout_label): Strengthen param "insn" from rtx to
rtx_code_label *.
* vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
debug_nothing_rtx to debug_nothing_rtx_code_label. Update
"var_location" hook from debug_nothing_rtx to
debug_nothing_rtx_insn.
From-SVN: r214259
Diffstat (limited to 'gcc/debug.h')
-rw-r--r-- | gcc/debug.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/debug.h b/gcc/debug.h index fc57589..3ac7976 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -119,14 +119,14 @@ struct gcc_debug_hooks /* Called from final_scan_insn for any CODE_LABEL insn whose LABEL_NAME is non-null. */ - void (* label) (rtx); + void (* label) (rtx_code_label *); /* Called after the start and before the end of writing a PCH file. The parameter is 0 if after the start, 1 if before the end. */ void (* handle_pch) (unsigned int); /* Called from final_scan_insn for any NOTE_INSN_VAR_LOCATION note. */ - void (* var_location) (rtx); + void (* var_location) (rtx_insn *); /* Called from final_scan_insn if there is a switch between hot and cold text sections. */ @@ -160,8 +160,8 @@ extern void debug_nothing_tree_tree (tree, tree); 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_rtx_insn (rtx_insn *); +extern void debug_nothing_rtx_code_label (rtx_code_label *); /* Hooks for various debug formats. */ extern const struct gcc_debug_hooks do_nothing_debug_hooks; |