OSDN Git Service

Give credit, where credit is due.
[pf3gnuchains/gcc-fork.git] / gcc / stub-objc.c
1 /* Stub functions for Objective-C and Objective-C++ routines
2    that are called from within the C and C++ front-ends,
3    respectively.
4    Copyright (C) 1991, 1995, 1997, 1998,
5    1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
12 version.
13
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17 for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING.  If not, write to the Free
21 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 02111-1307, USA.  */
23
24 #include "config.h"
25 #include "system.h"
26 #include "coretypes.h"
27 #include "tree.h"
28 #include "c-common.h"
29
30 tree
31 objc_is_class_name (tree ARG_UNUSED (arg))
32 {
33   return 0;
34 }
35
36 tree
37 objc_is_id (tree ARG_UNUSED (arg))
38 {
39   return 0;
40 }
41
42 tree
43 objc_is_object_ptr (tree ARG_UNUSED (arg))
44 {
45   return 0;
46 }
47
48 tree
49 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
50 {
51   /* Just use whatever C/C++ found.  */
52   return other;
53 }
54
55 void
56 objc_check_decl (tree ARG_UNUSED (decl))
57 {
58 }
59    
60 int
61 objc_is_reserved_word (tree ARG_UNUSED (ident))
62 {
63   return 0;
64 }
65
66 int
67 objc_comptypes (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs),
68                 int ARG_UNUSED (reflexive))
69 {
70   return -1;
71 }
72
73 tree
74 objc_rewrite_function_call (tree function, tree ARG_UNUSED (params))
75 {
76   return function;
77 }
78
79 tree
80 objc_message_selector (void)
81
82   return 0;
83 }
84
85 void
86 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
87 {
88 }
89
90 void
91 objc_declare_class (tree ARG_UNUSED (list))
92 {
93 }
94
95 void
96 objc_declare_protocols (tree ARG_UNUSED (list))
97 {
98 }
99
100 void
101 objc_start_protocol (tree ARG_UNUSED (proto),
102                      tree ARG_UNUSED (protorefs))
103 {
104 }
105
106 void
107 objc_start_class_interface (tree ARG_UNUSED (name),
108                             tree ARG_UNUSED (super),
109                             tree ARG_UNUSED (protos))
110 {
111 }
112
113 void
114 objc_start_category_interface (tree ARG_UNUSED (name),
115                                tree ARG_UNUSED (categ),
116                                tree ARG_UNUSED (protos))
117 {
118 }
119
120 void
121 objc_continue_interface (void)
122 {
123 }
124
125 void
126 objc_finish_interface (void)
127 {
128 }
129
130 void
131 objc_add_instance_variable (tree ARG_UNUSED (decl))
132 {
133 }
134
135 void
136 objc_set_visibility (int ARG_UNUSED (vis))
137 {
138 }
139
140 void
141 objc_set_method_type (enum tree_code ARG_UNUSED (code))
142 {
143 }
144
145 void
146 objc_start_class_implementation (tree ARG_UNUSED (name),
147                                  tree ARG_UNUSED (super))
148 {
149 }
150
151 void
152 objc_start_category_implementation (tree ARG_UNUSED (name),
153                                     tree ARG_UNUSED (categ))
154 {
155 }
156
157 void
158 objc_continue_implementation (void)
159 {
160 }
161
162 void
163 objc_clear_super_receiver (void)
164 {
165 }
166
167 void
168 objc_finish_implementation (void)
169 {
170 }
171
172 void
173 objc_add_method_declaration (tree ARG_UNUSED (signature))
174 {
175 }
176
177 void
178 objc_start_method_definition (tree ARG_UNUSED (signature))
179 {
180 }
181
182 void
183 objc_finish_method_definition (tree ARG_UNUSED (fndecl))
184 {
185 }
186
187 tree
188 objc_build_keyword_decl (tree ARG_UNUSED (selector),
189                          tree ARG_UNUSED (typename),
190                          tree ARG_UNUSED (identifier))
191 {
192   return 0;
193 }
194
195 tree
196 objc_build_method_signature (tree ARG_UNUSED (rettype),
197                              tree ARG_UNUSED (selectors),
198                              tree ARG_UNUSED (optparms),
199                              bool ARG_UNUSED (ellipsis))
200 {
201   return 0;
202 }
203
204 tree
205 objc_build_encode_expr (tree ARG_UNUSED (expr))
206 {
207   return 0;
208 }
209
210 tree
211 objc_build_protocol_expr (tree ARG_UNUSED (expr))
212 {
213   return 0;
214 }
215
216 tree
217 objc_build_selector_expr (tree ARG_UNUSED (expr))
218 {
219   return 0;
220 }
221
222 tree
223 objc_build_message_expr (tree ARG_UNUSED (expr))
224 {
225   return 0;
226 }
227
228 tree
229 objc_build_string_object (tree ARG_UNUSED (str))
230 {
231   return 0;
232 }
233
234 tree
235 objc_get_class_reference (tree ARG_UNUSED (name))
236 {
237   return 0;
238 }
239
240 tree
241 objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
242                                   tree ARG_UNUSED (protos))
243 {
244   return 0;
245 }
246
247 int
248 objc_static_init_needed_p (void)
249 {
250   return 0;
251 }
252
253 tree
254 objc_generate_static_init_call (tree ARG_UNUSED (ctors))
255 {
256   return 0;
257 }
258
259 int
260 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
261 {
262   return 1;
263 }
264
265 tree
266 objc_get_class_ivars (tree ARG_UNUSED (name))
267 {
268   return 0;
269 }
270
271 tree
272 objc_build_throw_stmt (tree ARG_UNUSED (expr))
273 {
274   return 0;
275 }
276
277 tree
278 objc_build_synchronized (location_t ARG_UNUSED (start_locus),
279                          tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
280 {
281   return 0;
282 }
283
284 void
285 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
286 {
287 }
288    
289 void
290 objc_begin_catch_clause (tree ARG_UNUSED (decl))
291 {
292 }
293
294 void
295 objc_finish_catch_clause (void)
296 {
297 }
298
299 void
300 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
301                            tree ARG_UNUSED (body))
302 {
303 }
304
305 tree
306 objc_finish_try_stmt (void)
307 {
308   return 0;
309 }
310
311 tree
312 objc_generate_write_barrier (tree ARG_UNUSED (lhs),
313                              enum tree_code ARG_UNUSED (modifycode),
314                              tree ARG_UNUSED (rhs))
315 {
316   return 0;
317 }