1 /* Mudflap: narrow-pointer bounds-checking by tree rewriting.
2 Copyright (C) 2001, 2002, 2003, 2007, 2008, 2009
3 Free Software Foundation, Inc.
4 Contributed by Frank Ch. Eigler <fche@redhat.com>
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
25 #include "coretypes.h"
28 #include "tree-inline.h"
30 #include "diagnostic.h"
34 #include "langhooks.h"
35 #include "tree-mudflap.h"
36 #include "tree-pass.h"
42 /* This file contains placeholder functions, to be used only for
43 language processors that cannot handle tree-mudflap.c directly.
49 internal_error ("mudflap: this language is not supported");
53 mudflap_enqueue_decl (tree obj ATTRIBUTE_UNUSED
)
59 mudflap_enqueue_constant (tree obj ATTRIBUTE_UNUSED
)
65 mudflap_finish_file (void)
71 mf_marked_p (tree t ATTRIBUTE_UNUSED
)
78 mf_mark (tree t ATTRIBUTE_UNUSED
)
84 /* The pass structures must exist, but need not do anything. */
89 return flag_mudflap
!= 0;
92 struct gimple_opt_pass pass_mudflap_1
=
96 "mudflap1", /* name */
97 gate_mudflap
, /* gate */
101 0, /* static_pass_number */
103 0, /* properties_required */
104 0, /* properties_provided */
105 0, /* properties_destroyed */
106 0, /* todo_flags_start */
107 0 /* todo_flags_finish */
111 struct gimple_opt_pass pass_mudflap_2
=
115 "mudflap2", /* name */
116 gate_mudflap
, /* gate */
120 0, /* static_pass_number */
122 0, /* properties_required */
123 0, /* properties_provided */
124 0, /* properties_destroyed */
125 0, /* todo_flags_start */
126 0 /* todo_flags_finish */
131 #include "gt-tree-mudflap.h"
132 We prepare a little dummy struct here.
135 const struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h
[] = {