2014-09-12 Marc Glisse <marc.glisse@inria.fr>
[official-gcc.git] / gcc / c-family / stub-objc.c
blob40866cc397221729b26f9226554b001ea9b1196f
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-2014 Free Software Foundation, Inc.
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
11 version.
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
16 for more details.
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/>. */
22 #include "config.h"
23 #include "system.h"
24 #include "coretypes.h"
25 #include "tree.h"
26 #include "c-common.h"
27 #include "c-objc.h"
29 tree
30 objc_is_class_name (tree ARG_UNUSED (arg))
32 return 0;
35 tree
36 objc_is_id (tree ARG_UNUSED (arg))
38 return 0;
41 tree
42 objc_is_object_ptr (tree ARG_UNUSED (arg))
44 return 0;
47 bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg))
49 return false;
52 tree
53 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
55 /* Just use whatever C/C++ found. */
56 return other;
59 void
60 objc_check_decl (tree ARG_UNUSED (decl))
64 void
65 objc_check_global_decl (tree ARG_UNUSED (decl))
69 tree
70 objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2))
72 return 0;
75 bool
76 objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
77 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
79 return false;
82 bool
83 objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
84 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
86 return false;
89 void
90 objc_volatilize_decl (tree ARG_UNUSED (decl))
94 tree
95 objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param))
97 return function;
100 tree
101 objc_message_selector (void)
103 return 0;
106 void
107 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
111 void
112 objc_declare_class (tree ARG_UNUSED (identifier))
116 void
117 objc_declare_protocol (tree ARG_UNUSED (name), tree ARG_UNUSED (attributes))
121 void
122 objc_start_protocol (tree ARG_UNUSED (proto),
123 tree ARG_UNUSED (protorefs),
124 tree ARG_UNUSED (attribs))
128 void
129 objc_set_method_opt (bool ARG_UNUSED (optional))
133 void
134 objc_start_class_interface (tree ARG_UNUSED (name),
135 tree ARG_UNUSED (super),
136 tree ARG_UNUSED (protos),
137 tree ARG_UNUSED (attribs))
141 void
142 objc_start_category_interface (tree ARG_UNUSED (name),
143 tree ARG_UNUSED (categ),
144 tree ARG_UNUSED (protos),
145 tree ARG_UNUSED (attribs))
149 void
150 objc_continue_interface (void)
154 void
155 objc_finish_interface (void)
159 void
160 objc_add_instance_variable (tree ARG_UNUSED (decl))
164 void
165 objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis))
169 void
170 objc_start_class_implementation (tree ARG_UNUSED (name),
171 tree ARG_UNUSED (super))
175 void
176 objc_start_category_implementation (tree ARG_UNUSED (name),
177 tree ARG_UNUSED (categ))
181 void
182 objc_continue_implementation (void)
186 void
187 objc_clear_super_receiver (void)
191 void
192 objc_finish_implementation (void)
196 void
197 objc_add_method_declaration (bool ARG_UNUSED (is_class_method),
198 tree ARG_UNUSED (signature),
199 tree ARG_UNUSED (attributes))
203 bool
204 objc_start_method_definition (bool ARG_UNUSED (is_class_method),
205 tree ARG_UNUSED (signature),
206 tree ARG_UNUSED (attributes),
207 tree ARG_UNUSED (expr))
209 return true;
212 void
213 objc_finish_method_definition (tree ARG_UNUSED (fndecl))
217 bool
218 objc_method_decl (enum tree_code ARG_UNUSED(opcode))
220 return false;
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))
229 return 0;
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))
239 return 0;
242 tree
243 objc_build_encode_expr (tree ARG_UNUSED (expr))
245 return 0;
248 tree
249 objc_build_protocol_expr (tree ARG_UNUSED (expr))
251 return 0;
254 tree
255 objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
257 return 0;
260 tree
261 objc_build_message_expr (tree ARG_UNUSED (receiver), tree ARG_UNUSED (args))
263 return 0;
266 tree
267 objc_build_string_object (tree ARG_UNUSED (str))
269 return 0;
272 tree
273 objc_get_class_reference (tree ARG_UNUSED (name))
275 return 0;
278 bool
279 objc_detect_field_duplicates (bool ARG_UNUSED (check_superclasses_only))
281 return false;
284 tree
285 objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
286 tree ARG_UNUSED (protos))
288 return 0;
292 objc_static_init_needed_p (void)
294 return 0;
297 tree
298 objc_generate_static_init_call (tree ARG_UNUSED (ctors))
300 return 0;
304 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
306 return 1;
309 tree
310 objc_get_class_ivars (tree ARG_UNUSED (name))
312 return 0;
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))
329 bool
330 objc_is_property_ref (tree ARG_UNUSED (node))
332 return 0;
335 tree
336 objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
338 return 0;
341 tree
342 objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
344 return 0;
347 tree
348 objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs))
350 return 0;
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))
359 return 0;
362 void
363 objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus),
364 tree ARG_UNUSED (property_and_ivar_list))
368 void
369 objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus),
370 tree ARG_UNUSED (property_list))
374 const char *
375 objc_maybe_printable_name (tree ARG_UNUSED (decl),
376 int ARG_UNUSED (v))
378 return NULL;
381 tree
382 objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
384 return 0;
387 tree
388 objc_build_synchronized (location_t ARG_UNUSED (start_locus),
389 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
391 return 0;
394 void
395 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
399 void
400 objc_begin_catch_clause (tree ARG_UNUSED (decl))
404 void
405 objc_finish_catch_clause (void)
409 void
410 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
411 tree ARG_UNUSED (body))
415 tree
416 objc_finish_try_stmt (void)
418 return 0;
421 tree
422 objc_generate_write_barrier (tree ARG_UNUSED (lhs),
423 enum tree_code ARG_UNUSED (modifycode),
424 tree ARG_UNUSED (rhs))
426 return 0;
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))
434 return;
437 void
438 objc_write_global_declarations (void)
442 bool
443 objc_string_ref_type_p (tree ARG_UNUSED (strp))
445 return false;
448 void
449 objc_check_format_arg (tree ARG_UNUSED (format_arg),
450 tree ARG_UNUSED (args_list))
454 void
455 objc_finish_function (void)
459 void
460 objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc))