1*38fd1498Szrj /* Do-nothing debug hooks for GCC.
2*38fd1498Szrj Copyright (C) 2001-2018 Free Software Foundation, Inc.
3*38fd1498Szrj
4*38fd1498Szrj This program is free software; you can redistribute it and/or modify it
5*38fd1498Szrj under the terms of the GNU General Public License as published by the
6*38fd1498Szrj Free Software Foundation; either version 3, or (at your option) any
7*38fd1498Szrj later version.
8*38fd1498Szrj
9*38fd1498Szrj This program is distributed in the hope that it will be useful,
10*38fd1498Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of
11*38fd1498Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12*38fd1498Szrj GNU General Public License for more details.
13*38fd1498Szrj
14*38fd1498Szrj You should have received a copy of the GNU General Public License
15*38fd1498Szrj along with this program; see the file COPYING3. If not see
16*38fd1498Szrj <http://www.gnu.org/licenses/>. */
17*38fd1498Szrj
18*38fd1498Szrj #include "config.h"
19*38fd1498Szrj #include "system.h"
20*38fd1498Szrj #include "coretypes.h"
21*38fd1498Szrj #include "tree.h"
22*38fd1498Szrj #include "debug.h"
23*38fd1498Szrj
24*38fd1498Szrj /* The do-nothing debug hooks. */
25*38fd1498Szrj const struct gcc_debug_hooks do_nothing_debug_hooks =
26*38fd1498Szrj {
27*38fd1498Szrj debug_nothing_charstar,
28*38fd1498Szrj debug_nothing_charstar,
29*38fd1498Szrj debug_nothing_charstar, /* early_finish */
30*38fd1498Szrj debug_nothing_void,
31*38fd1498Szrj debug_nothing_int_charstar,
32*38fd1498Szrj debug_nothing_int_charstar,
33*38fd1498Szrj debug_nothing_int_charstar,
34*38fd1498Szrj debug_nothing_int,
35*38fd1498Szrj debug_nothing_int_int, /* begin_block */
36*38fd1498Szrj debug_nothing_int_int, /* end_block */
37*38fd1498Szrj debug_true_const_tree, /* ignore_block */
38*38fd1498Szrj debug_nothing_int_int_charstar_int_bool, /* source_line */
39*38fd1498Szrj debug_nothing_int_int_charstar, /* begin_prologue */
40*38fd1498Szrj debug_nothing_int_charstar, /* end_prologue */
41*38fd1498Szrj debug_nothing_int_charstar, /* begin_epilogue */
42*38fd1498Szrj debug_nothing_int_charstar, /* end_epilogue */
43*38fd1498Szrj debug_nothing_tree, /* begin_function */
44*38fd1498Szrj debug_nothing_int, /* end_function */
45*38fd1498Szrj debug_nothing_tree, /* register_main_translation_unit */
46*38fd1498Szrj debug_nothing_tree, /* function_decl */
47*38fd1498Szrj debug_nothing_tree, /* early_global_decl */
48*38fd1498Szrj debug_nothing_tree, /* late_global_decl */
49*38fd1498Szrj debug_nothing_tree_int, /* type_decl */
50*38fd1498Szrj debug_nothing_tree_tree_tree_bool_bool,/* imported_module_or_decl */
51*38fd1498Szrj debug_false_tree_charstarstar_uhwistar,/* die_ref_for_decl */
52*38fd1498Szrj debug_nothing_tree_charstar_uhwi, /* register_external_die */
53*38fd1498Szrj debug_nothing_tree, /* deferred_inline_function */
54*38fd1498Szrj debug_nothing_tree, /* outlining_inline_function */
55*38fd1498Szrj debug_nothing_rtx_code_label, /* label */
56*38fd1498Szrj debug_nothing_int, /* handle_pch */
57*38fd1498Szrj debug_nothing_rtx_insn, /* var_location */
58*38fd1498Szrj debug_nothing_tree, /* inline_entry */
59*38fd1498Szrj debug_nothing_tree, /* size_function */
60*38fd1498Szrj debug_nothing_void, /* switch_text_section */
61*38fd1498Szrj debug_nothing_tree_tree, /* set_name */
62*38fd1498Szrj 0, /* start_end_main_source_file */
63*38fd1498Szrj TYPE_SYMTAB_IS_ADDRESS /* tree_type_symtab_field */
64*38fd1498Szrj };
65*38fd1498Szrj
66*38fd1498Szrj /* This file contains implementations of each debug hook that do
67*38fd1498Szrj nothing. */
68*38fd1498Szrj
69*38fd1498Szrj void
debug_nothing_void(void)70*38fd1498Szrj debug_nothing_void (void)
71*38fd1498Szrj {
72*38fd1498Szrj }
73*38fd1498Szrj
74*38fd1498Szrj void
debug_nothing_tree(tree decl ATTRIBUTE_UNUSED)75*38fd1498Szrj debug_nothing_tree (tree decl ATTRIBUTE_UNUSED)
76*38fd1498Szrj {
77*38fd1498Szrj }
78*38fd1498Szrj
79*38fd1498Szrj void
debug_nothing_tree_tree(tree t1 ATTRIBUTE_UNUSED,tree t2 ATTRIBUTE_UNUSED)80*38fd1498Szrj debug_nothing_tree_tree (tree t1 ATTRIBUTE_UNUSED,
81*38fd1498Szrj tree t2 ATTRIBUTE_UNUSED)
82*38fd1498Szrj {
83*38fd1498Szrj }
84*38fd1498Szrj
85*38fd1498Szrj void
debug_nothing_tree_tree_tree_bool_bool(tree t1 ATTRIBUTE_UNUSED,tree t2 ATTRIBUTE_UNUSED,tree t3 ATTRIBUTE_UNUSED,bool b1 ATTRIBUTE_UNUSED,bool b2 ATTRIBUTE_UNUSED)86*38fd1498Szrj debug_nothing_tree_tree_tree_bool_bool (tree t1 ATTRIBUTE_UNUSED,
87*38fd1498Szrj tree t2 ATTRIBUTE_UNUSED,
88*38fd1498Szrj tree t3 ATTRIBUTE_UNUSED,
89*38fd1498Szrj bool b1 ATTRIBUTE_UNUSED,
90*38fd1498Szrj bool b2 ATTRIBUTE_UNUSED)
91*38fd1498Szrj {
92*38fd1498Szrj }
93*38fd1498Szrj
94*38fd1498Szrj bool
debug_true_const_tree(const_tree block ATTRIBUTE_UNUSED)95*38fd1498Szrj debug_true_const_tree (const_tree block ATTRIBUTE_UNUSED)
96*38fd1498Szrj {
97*38fd1498Szrj return true;
98*38fd1498Szrj }
99*38fd1498Szrj
100*38fd1498Szrj void
debug_nothing_rtx_insn(rtx_insn * insn ATTRIBUTE_UNUSED)101*38fd1498Szrj debug_nothing_rtx_insn (rtx_insn *insn ATTRIBUTE_UNUSED)
102*38fd1498Szrj {
103*38fd1498Szrj }
104*38fd1498Szrj
105*38fd1498Szrj void
debug_nothing_rtx_code_label(rtx_code_label * label ATTRIBUTE_UNUSED)106*38fd1498Szrj debug_nothing_rtx_code_label (rtx_code_label *label ATTRIBUTE_UNUSED)
107*38fd1498Szrj {
108*38fd1498Szrj }
109*38fd1498Szrj
110*38fd1498Szrj void
debug_nothing_charstar(const char * main_filename ATTRIBUTE_UNUSED)111*38fd1498Szrj debug_nothing_charstar (const char *main_filename ATTRIBUTE_UNUSED)
112*38fd1498Szrj {
113*38fd1498Szrj }
114*38fd1498Szrj
115*38fd1498Szrj void
debug_nothing_int_charstar(unsigned int line ATTRIBUTE_UNUSED,const char * text ATTRIBUTE_UNUSED)116*38fd1498Szrj debug_nothing_int_charstar (unsigned int line ATTRIBUTE_UNUSED,
117*38fd1498Szrj const char *text ATTRIBUTE_UNUSED)
118*38fd1498Szrj {
119*38fd1498Szrj }
120*38fd1498Szrj
121*38fd1498Szrj void
debug_nothing_int_int_charstar(unsigned int line ATTRIBUTE_UNUSED,unsigned int column ATTRIBUTE_UNUSED,const char * text ATTRIBUTE_UNUSED)122*38fd1498Szrj debug_nothing_int_int_charstar (unsigned int line ATTRIBUTE_UNUSED,
123*38fd1498Szrj unsigned int column ATTRIBUTE_UNUSED,
124*38fd1498Szrj const char *text ATTRIBUTE_UNUSED)
125*38fd1498Szrj {
126*38fd1498Szrj }
127*38fd1498Szrj
128*38fd1498Szrj void
debug_nothing_int_int_charstar_int_bool(unsigned int line ATTRIBUTE_UNUSED,unsigned int column ATTRIBUTE_UNUSED,const char * text ATTRIBUTE_UNUSED,int discriminator ATTRIBUTE_UNUSED,bool is_stmt ATTRIBUTE_UNUSED)129*38fd1498Szrj debug_nothing_int_int_charstar_int_bool (unsigned int line ATTRIBUTE_UNUSED,
130*38fd1498Szrj unsigned int column ATTRIBUTE_UNUSED,
131*38fd1498Szrj const char *text ATTRIBUTE_UNUSED,
132*38fd1498Szrj int discriminator ATTRIBUTE_UNUSED,
133*38fd1498Szrj bool is_stmt ATTRIBUTE_UNUSED)
134*38fd1498Szrj {
135*38fd1498Szrj }
136*38fd1498Szrj
137*38fd1498Szrj void
debug_nothing_int(unsigned int line ATTRIBUTE_UNUSED)138*38fd1498Szrj debug_nothing_int (unsigned int line ATTRIBUTE_UNUSED)
139*38fd1498Szrj {
140*38fd1498Szrj }
141*38fd1498Szrj
142*38fd1498Szrj void
debug_nothing_int_int(unsigned int line ATTRIBUTE_UNUSED,unsigned int n ATTRIBUTE_UNUSED)143*38fd1498Szrj debug_nothing_int_int (unsigned int line ATTRIBUTE_UNUSED,
144*38fd1498Szrj unsigned int n ATTRIBUTE_UNUSED)
145*38fd1498Szrj {
146*38fd1498Szrj }
147*38fd1498Szrj
148*38fd1498Szrj void
debug_nothing_tree_int(tree decl ATTRIBUTE_UNUSED,int local ATTRIBUTE_UNUSED)149*38fd1498Szrj debug_nothing_tree_int (tree decl ATTRIBUTE_UNUSED,
150*38fd1498Szrj int local ATTRIBUTE_UNUSED)
151*38fd1498Szrj {
152*38fd1498Szrj }
153*38fd1498Szrj
154*38fd1498Szrj bool
debug_false_tree_charstarstar_uhwistar(tree,const char **,unsigned HOST_WIDE_INT *)155*38fd1498Szrj debug_false_tree_charstarstar_uhwistar (tree, const char **,
156*38fd1498Szrj unsigned HOST_WIDE_INT *)
157*38fd1498Szrj {
158*38fd1498Szrj return false;
159*38fd1498Szrj }
160*38fd1498Szrj
161*38fd1498Szrj void
debug_nothing_tree_charstar_uhwi(tree,const char *,unsigned HOST_WIDE_INT)162*38fd1498Szrj debug_nothing_tree_charstar_uhwi (tree, const char *,
163*38fd1498Szrj unsigned HOST_WIDE_INT)
164*38fd1498Szrj {
165*38fd1498Szrj }
166