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