* c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
[official-gcc.git] / gcc / tree-nomudflap.c
blob657c82dad532438ddae9c92a438213579922122f
1 /* Mudflap: narrow-pointer bounds-checking by tree rewriting.
2 Copyright (C) 2001-2013 Free Software Foundation, Inc.
3 Contributed by Frank Ch. Eigler <fche@redhat.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
22 #include "config.h"
23 #include "system.h"
24 #include "coretypes.h"
25 #include "tm.h"
26 #include "tree.h"
27 #include "tree-inline.h"
28 #include "gimple.h"
29 #include "hashtab.h"
30 #include "langhooks.h"
31 #include "tree-mudflap.h"
32 #include "tree-pass.h"
33 #include "ggc.h"
34 #include "diagnostic-core.h"
38 /* This file contains placeholder functions, to be used only for
39 language processors that cannot handle tree-mudflap.c directly.
40 (e.g. Fortran). */
42 static void
43 nogo (void)
45 sorry ("mudflap: this language is not supported");
48 void
49 mudflap_enqueue_decl (tree obj ATTRIBUTE_UNUSED)
51 nogo ();
54 void
55 mudflap_enqueue_constant (tree obj ATTRIBUTE_UNUSED)
57 nogo ();
60 void
61 mudflap_finish_file (void)
63 nogo ();
66 int
67 mf_marked_p (tree t ATTRIBUTE_UNUSED)
69 nogo ();
70 return 0;
73 tree
74 mf_mark (tree t ATTRIBUTE_UNUSED)
76 nogo ();
77 return NULL;
80 /* The pass structures must exist, but need not do anything. */
82 static bool
83 gate_mudflap (void)
85 return flag_mudflap != 0;
88 struct gimple_opt_pass pass_mudflap_1 =
91 GIMPLE_PASS,
92 "mudflap1", /* name */
93 OPTGROUP_NONE, /* optinfo_flags */
94 gate_mudflap, /* gate */
95 NULL, /* execute */
96 NULL, /* sub */
97 NULL, /* next */
98 0, /* static_pass_number */
99 TV_NONE, /* tv_id */
100 0, /* properties_required */
101 0, /* properties_provided */
102 0, /* properties_destroyed */
103 0, /* todo_flags_start */
104 0 /* todo_flags_finish */
108 struct gimple_opt_pass pass_mudflap_2 =
111 GIMPLE_PASS,
112 "mudflap2", /* name */
113 OPTGROUP_NONE, /* optinfo_flags */
114 gate_mudflap, /* gate */
115 NULL, /* execute */
116 NULL, /* sub */
117 NULL, /* next */
118 0, /* static_pass_number */
119 TV_NONE, /* tv_id */
120 0, /* properties_required */
121 0, /* properties_provided */
122 0, /* properties_destroyed */
123 0, /* todo_flags_start */
124 0 /* todo_flags_finish */
128 /* Instead of:
129 #include "gt-tree-mudflap.h"
130 We prepare a little dummy struct here.
133 EXPORTED_CONST struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h[] = {
134 LAST_GGC_ROOT_TAB