Mercurial > hg > CbC > CbC_gcc
comparison gcc/c-family/stub-objc.c @ 68:561a7518be6b
update gcc-4.6
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 21 Aug 2011 07:07:55 +0900 |
parents | |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
67:f6334be47118 | 68:561a7518be6b |
---|---|
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, 1999, 2000, 2001, 2002, 2003, | |
5 2004, 2005, 2007, 2009, 2010 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 3, 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 COPYING3. If not see | |
21 <http://www.gnu.org/licenses/>. */ | |
22 | |
23 #include "config.h" | |
24 #include "system.h" | |
25 #include "coretypes.h" | |
26 #include "tree.h" | |
27 #include "c-common.h" | |
28 #include "c-objc.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 bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg)) | |
49 { | |
50 return false; | |
51 } | |
52 | |
53 tree | |
54 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) | |
55 { | |
56 /* Just use whatever C/C++ found. */ | |
57 return other; | |
58 } | |
59 | |
60 void | |
61 objc_check_decl (tree ARG_UNUSED (decl)) | |
62 { | |
63 } | |
64 | |
65 void | |
66 objc_check_global_decl (tree ARG_UNUSED (decl)) | |
67 { | |
68 } | |
69 | |
70 tree | |
71 objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2)) | |
72 { | |
73 return 0; | |
74 } | |
75 | |
76 bool | |
77 objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), | |
78 int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) | |
79 { | |
80 return false; | |
81 } | |
82 | |
83 bool | |
84 objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), | |
85 int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) | |
86 { | |
87 return false; | |
88 } | |
89 | |
90 void | |
91 objc_volatilize_decl (tree ARG_UNUSED (decl)) | |
92 { | |
93 } | |
94 | |
95 tree | |
96 objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param)) | |
97 { | |
98 return function; | |
99 } | |
100 | |
101 tree | |
102 objc_message_selector (void) | |
103 { | |
104 return 0; | |
105 } | |
106 | |
107 void | |
108 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig)) | |
109 { | |
110 } | |
111 | |
112 void | |
113 objc_declare_class (tree ARG_UNUSED (list)) | |
114 { | |
115 } | |
116 | |
117 void | |
118 objc_declare_protocols (tree ARG_UNUSED (list), tree ARG_UNUSED (attributes)) | |
119 { | |
120 } | |
121 | |
122 void | |
123 objc_start_protocol (tree ARG_UNUSED (proto), | |
124 tree ARG_UNUSED (protorefs), | |
125 tree ARG_UNUSED (attribs)) | |
126 { | |
127 } | |
128 | |
129 void | |
130 objc_set_method_opt (bool ARG_UNUSED (optional)) | |
131 { | |
132 } | |
133 | |
134 void | |
135 objc_start_class_interface (tree ARG_UNUSED (name), | |
136 tree ARG_UNUSED (super), | |
137 tree ARG_UNUSED (protos), | |
138 tree ARG_UNUSED (attribs)) | |
139 { | |
140 } | |
141 | |
142 void | |
143 objc_start_category_interface (tree ARG_UNUSED (name), | |
144 tree ARG_UNUSED (categ), | |
145 tree ARG_UNUSED (protos), | |
146 tree ARG_UNUSED (attribs)) | |
147 { | |
148 } | |
149 | |
150 void | |
151 objc_continue_interface (void) | |
152 { | |
153 } | |
154 | |
155 void | |
156 objc_finish_interface (void) | |
157 { | |
158 } | |
159 | |
160 void | |
161 objc_add_instance_variable (tree ARG_UNUSED (decl)) | |
162 { | |
163 } | |
164 | |
165 void | |
166 objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis)) | |
167 { | |
168 } | |
169 | |
170 void | |
171 objc_start_class_implementation (tree ARG_UNUSED (name), | |
172 tree ARG_UNUSED (super)) | |
173 { | |
174 } | |
175 | |
176 void | |
177 objc_start_category_implementation (tree ARG_UNUSED (name), | |
178 tree ARG_UNUSED (categ)) | |
179 { | |
180 } | |
181 | |
182 void | |
183 objc_continue_implementation (void) | |
184 { | |
185 } | |
186 | |
187 void | |
188 objc_clear_super_receiver (void) | |
189 { | |
190 } | |
191 | |
192 void | |
193 objc_finish_implementation (void) | |
194 { | |
195 } | |
196 | |
197 void | |
198 objc_add_method_declaration (bool ARG_UNUSED (is_class_method), | |
199 tree ARG_UNUSED (signature), | |
200 tree ARG_UNUSED (attributes)) | |
201 { | |
202 } | |
203 | |
204 bool | |
205 objc_start_method_definition (bool ARG_UNUSED (is_class_method), | |
206 tree ARG_UNUSED (signature), | |
207 tree ARG_UNUSED (attributes)) | |
208 { | |
209 return true; | |
210 } | |
211 | |
212 void | |
213 objc_finish_method_definition (tree ARG_UNUSED (fndecl)) | |
214 { | |
215 } | |
216 | |
217 bool | |
218 objc_method_decl (enum tree_code ARG_UNUSED(opcode)) | |
219 { | |
220 return false; | |
221 } | |
222 | |
223 tree | |
224 objc_build_keyword_decl (tree ARG_UNUSED (selector), | |
225 tree ARG_UNUSED (type), | |
226 tree ARG_UNUSED (identifier), | |
227 tree ARG_UNUSED (attributes)) | |
228 { | |
229 return 0; | |
230 } | |
231 | |
232 tree | |
233 objc_build_method_signature (bool ARG_UNUSED (is_class_method), | |
234 tree ARG_UNUSED (rettype), | |
235 tree ARG_UNUSED (selectors), | |
236 tree ARG_UNUSED (optparms), | |
237 bool ARG_UNUSED (ellipsis)) | |
238 { | |
239 return 0; | |
240 } | |
241 | |
242 tree | |
243 objc_build_encode_expr (tree ARG_UNUSED (expr)) | |
244 { | |
245 return 0; | |
246 } | |
247 | |
248 tree | |
249 objc_build_protocol_expr (tree ARG_UNUSED (expr)) | |
250 { | |
251 return 0; | |
252 } | |
253 | |
254 tree | |
255 objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) | |
256 { | |
257 return 0; | |
258 } | |
259 | |
260 tree | |
261 objc_build_message_expr (tree ARG_UNUSED (expr)) | |
262 { | |
263 return 0; | |
264 } | |
265 | |
266 tree | |
267 objc_build_string_object (tree ARG_UNUSED (str)) | |
268 { | |
269 return 0; | |
270 } | |
271 | |
272 tree | |
273 objc_get_class_reference (tree ARG_UNUSED (name)) | |
274 { | |
275 return 0; | |
276 } | |
277 | |
278 tree | |
279 objc_get_interface_ivars (tree ARG_UNUSED (fieldlist)) | |
280 { | |
281 return 0; | |
282 } | |
283 | |
284 tree | |
285 objc_get_protocol_qualified_type (tree ARG_UNUSED (name), | |
286 tree ARG_UNUSED (protos)) | |
287 { | |
288 return 0; | |
289 } | |
290 | |
291 int | |
292 objc_static_init_needed_p (void) | |
293 { | |
294 return 0; | |
295 } | |
296 | |
297 tree | |
298 objc_generate_static_init_call (tree ARG_UNUSED (ctors)) | |
299 { | |
300 return 0; | |
301 } | |
302 | |
303 int | |
304 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier)) | |
305 { | |
306 return 1; | |
307 } | |
308 | |
309 tree | |
310 objc_get_class_ivars (tree ARG_UNUSED (name)) | |
311 { | |
312 return 0; | |
313 } | |
314 | |
315 void | |
316 objc_add_property_declaration (location_t ARG_UNUSED (location), | |
317 tree ARG_UNUSED (decl), | |
318 bool ARG_UNUSED (parsed_property_readonly), | |
319 bool ARG_UNUSED (parsed_property_readwrite), | |
320 bool ARG_UNUSED (parsed_property_assign), | |
321 bool ARG_UNUSED (parsed_property_retain), | |
322 bool ARG_UNUSED (parsed_property_copy), | |
323 bool ARG_UNUSED (parsed_property_nonatomic), | |
324 tree ARG_UNUSED (parsed_property_getter_ident), | |
325 tree ARG_UNUSED (parsed_property_setter_ident)) | |
326 { | |
327 } | |
328 | |
329 bool | |
330 objc_is_property_ref (tree ARG_UNUSED (node)) | |
331 { | |
332 return 0; | |
333 } | |
334 | |
335 tree | |
336 objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component)) | |
337 { | |
338 return 0; | |
339 } | |
340 | |
341 tree | |
342 objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component)) | |
343 { | |
344 return 0; | |
345 } | |
346 | |
347 tree | |
348 objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs)) | |
349 { | |
350 return 0; | |
351 } | |
352 | |
353 tree | |
354 objc_build_incr_expr_for_property_ref (location_t ARG_UNUSED (location), | |
355 enum tree_code ARG_UNUSED (code), | |
356 tree ARG_UNUSED (argument), | |
357 tree ARG_UNUSED (increment)) | |
358 { | |
359 return 0; | |
360 } | |
361 | |
362 void | |
363 objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus), | |
364 tree ARG_UNUSED (property_and_ivar_list)) | |
365 { | |
366 } | |
367 | |
368 void | |
369 objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus), | |
370 tree ARG_UNUSED (property_list)) | |
371 { | |
372 } | |
373 | |
374 const char * | |
375 objc_maybe_printable_name (tree ARG_UNUSED (decl), | |
376 int ARG_UNUSED (v)) | |
377 { | |
378 return NULL; | |
379 } | |
380 | |
381 tree | |
382 objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr)) | |
383 { | |
384 return 0; | |
385 } | |
386 | |
387 tree | |
388 objc_build_synchronized (location_t ARG_UNUSED (start_locus), | |
389 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body)) | |
390 { | |
391 return 0; | |
392 } | |
393 | |
394 void | |
395 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body)) | |
396 { | |
397 } | |
398 | |
399 void | |
400 objc_begin_catch_clause (tree ARG_UNUSED (decl)) | |
401 { | |
402 } | |
403 | |
404 void | |
405 objc_finish_catch_clause (void) | |
406 { | |
407 } | |
408 | |
409 void | |
410 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus), | |
411 tree ARG_UNUSED (body)) | |
412 { | |
413 } | |
414 | |
415 tree | |
416 objc_finish_try_stmt (void) | |
417 { | |
418 return 0; | |
419 } | |
420 | |
421 tree | |
422 objc_generate_write_barrier (tree ARG_UNUSED (lhs), | |
423 enum tree_code ARG_UNUSED (modifycode), | |
424 tree ARG_UNUSED (rhs)) | |
425 { | |
426 return 0; | |
427 } | |
428 | |
429 void | |
430 objc_finish_foreach_loop (location_t ARG_UNUSED (location), tree ARG_UNUSED (object_expression), | |
431 tree ARG_UNUSED (collection_expression), tree ARG_UNUSED (for_body), | |
432 tree ARG_UNUSED (break_label), tree ARG_UNUSED (continue_label)) | |
433 { | |
434 return; | |
435 } | |
436 | |
437 void | |
438 objc_write_global_declarations (void) | |
439 { | |
440 } | |
441 | |
442 bool | |
443 objc_string_ref_type_p (tree ARG_UNUSED (strp)) | |
444 { | |
445 return false; | |
446 } | |
447 | |
448 void | |
449 objc_check_format_arg (tree ARG_UNUSED (format_arg), | |
450 tree ARG_UNUSED (args_list)) | |
451 { | |
452 } | |
453 | |
454 void | |
455 objc_finish_function (void) | |
456 { | |
457 } | |
458 | |
459 void | |
460 objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc)) | |
461 { | |
462 } |