Mercurial > hg > CbC > CbC_gcc
comparison gcc/tree-nomudflap.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 /* Mudflap: narrow-pointer bounds-checking by tree rewriting. | 1 /* Mudflap: narrow-pointer bounds-checking by tree rewriting. |
2 Copyright (C) 2001, 2002, 2003, 2007, 2008 Free Software Foundation, Inc. | 2 Copyright (C) 2001, 2002, 2003, 2007, 2008, 2009 |
3 Free Software Foundation, Inc. | |
3 Contributed by Frank Ch. Eigler <fche@redhat.com> | 4 Contributed by Frank Ch. Eigler <fche@redhat.com> |
4 | 5 |
5 This file is part of GCC. | 6 This file is part of GCC. |
6 | 7 |
7 GCC is free software; you can redistribute it and/or modify it under | 8 GCC is free software; you can redistribute it and/or modify it under |
23 #include "system.h" | 24 #include "system.h" |
24 #include "coretypes.h" | 25 #include "coretypes.h" |
25 #include "tm.h" | 26 #include "tm.h" |
26 #include "tree.h" | 27 #include "tree.h" |
27 #include "tree-inline.h" | 28 #include "tree-inline.h" |
28 #include "c-tree.h" | |
29 #include "c-common.h" | |
30 #include "gimple.h" | 29 #include "gimple.h" |
31 #include "diagnostic.h" | 30 #include "diagnostic.h" |
32 #include "hashtab.h" | 31 #include "hashtab.h" |
33 #include "output.h" | 32 #include "output.h" |
34 #include "varray.h" | 33 #include "varray.h" |
88 gate_mudflap (void) | 87 gate_mudflap (void) |
89 { | 88 { |
90 return flag_mudflap != 0; | 89 return flag_mudflap != 0; |
91 } | 90 } |
92 | 91 |
93 struct gimple_opt_pass pass_mudflap_1 = | 92 struct gimple_opt_pass pass_mudflap_1 = |
94 { | 93 { |
95 { | 94 { |
96 GIMPLE_PASS, | 95 GIMPLE_PASS, |
97 "mudflap1", /* name */ | 96 "mudflap1", /* name */ |
98 gate_mudflap, /* gate */ | 97 gate_mudflap, /* gate */ |
99 NULL, /* execute */ | 98 NULL, /* execute */ |
100 NULL, /* sub */ | 99 NULL, /* sub */ |
101 NULL, /* next */ | 100 NULL, /* next */ |
102 0, /* static_pass_number */ | 101 0, /* static_pass_number */ |
103 0, /* tv_id */ | 102 TV_NONE, /* tv_id */ |
104 0, /* properties_required */ | 103 0, /* properties_required */ |
105 0, /* properties_provided */ | 104 0, /* properties_provided */ |
106 0, /* properties_destroyed */ | 105 0, /* properties_destroyed */ |
107 0, /* todo_flags_start */ | 106 0, /* todo_flags_start */ |
108 0 /* todo_flags_finish */ | 107 0 /* todo_flags_finish */ |
109 } | 108 } |
110 }; | 109 }; |
111 | 110 |
112 struct gimple_opt_pass pass_mudflap_2 = | 111 struct gimple_opt_pass pass_mudflap_2 = |
113 { | 112 { |
114 { | 113 { |
115 GIMPLE_PASS, | 114 GIMPLE_PASS, |
116 "mudflap2", /* name */ | 115 "mudflap2", /* name */ |
117 gate_mudflap, /* gate */ | 116 gate_mudflap, /* gate */ |
118 NULL, /* execute */ | 117 NULL, /* execute */ |
119 NULL, /* sub */ | 118 NULL, /* sub */ |
120 NULL, /* next */ | 119 NULL, /* next */ |
121 0, /* static_pass_number */ | 120 0, /* static_pass_number */ |
122 0, /* tv_id */ | 121 TV_NONE, /* tv_id */ |
123 0, /* properties_required */ | 122 0, /* properties_required */ |
124 0, /* properties_provided */ | 123 0, /* properties_provided */ |
125 0, /* properties_destroyed */ | 124 0, /* properties_destroyed */ |
126 0, /* todo_flags_start */ | 125 0, /* todo_flags_start */ |
127 0 /* todo_flags_finish */ | 126 0 /* todo_flags_finish */ |
131 /* Instead of: | 130 /* Instead of: |
132 #include "gt-tree-mudflap.h" | 131 #include "gt-tree-mudflap.h" |
133 We prepare a little dummy struct here. | 132 We prepare a little dummy struct here. |
134 */ | 133 */ |
135 | 134 |
136 const struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h[] = { | 135 EXPORTED_CONST struct ggc_root_tab gt_ggc_r_gt_tree_mudflap_h[] = { |
137 LAST_GGC_ROOT_TAB | 136 LAST_GGC_ROOT_TAB |
138 }; | 137 }; |