[AArch64] PR target/68129: Define TARGET_SUPPORTS_WIDE_INT
[official-gcc.git] / gcc / c-family / stub-objc.c
blob4aa2f4d7887d2c2ab42e2a2721389eaa33c1e841
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-2015 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 "alias.h"
28 #include "c-objc.h"
30 tree
31 objc_is_class_name (tree ARG_UNUSED (arg))
33 return 0;
36 tree
37 objc_is_id (tree ARG_UNUSED (arg))
39 return 0;
42 tree
43 objc_is_object_ptr (tree ARG_UNUSED (arg))
45 return 0;
48 bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg))
50 return false;
53 tree
54 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
56 /* Just use whatever C/C++ found. */
57 return other;
60 void
61 objc_check_decl (tree ARG_UNUSED (decl))
65 void
66 objc_check_global_decl (tree ARG_UNUSED (decl))
70 tree
71 objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2))
73 return 0;
76 bool
77 objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
78 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
80 return false;
83 bool
84 objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
85 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
87 return false;
90 void
91 objc_volatilize_decl (tree ARG_UNUSED (decl))
95 tree
96 objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param))
98 return function;
101 tree
102 objc_message_selector (void)
104 return 0;
107 void
108 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
112 void
113 objc_declare_class (tree ARG_UNUSED (identifier))
117 void
118 objc_declare_protocol (tree ARG_UNUSED (name), tree ARG_UNUSED (attributes))
122 void
123 objc_start_protocol (tree ARG_UNUSED (proto),
124 tree ARG_UNUSED (protorefs),
125 tree ARG_UNUSED (attribs))
129 void
130 objc_set_method_opt (bool ARG_UNUSED (optional))
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))
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))
150 void
151 objc_continue_interface (void)
155 void
156 objc_finish_interface (void)
160 void
161 objc_add_instance_variable (tree ARG_UNUSED (decl))
165 void
166 objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis))
170 void
171 objc_start_class_implementation (tree ARG_UNUSED (name),
172 tree ARG_UNUSED (super))
176 void
177 objc_start_category_implementation (tree ARG_UNUSED (name),
178 tree ARG_UNUSED (categ))
182 void
183 objc_continue_implementation (void)
187 void
188 objc_clear_super_receiver (void)
192 void
193 objc_finish_implementation (void)
197 void
198 objc_add_method_declaration (bool ARG_UNUSED (is_class_method),
199 tree ARG_UNUSED (signature),
200 tree ARG_UNUSED (attributes))
204 bool
205 objc_start_method_definition (bool ARG_UNUSED (is_class_method),
206 tree ARG_UNUSED (signature),
207 tree ARG_UNUSED (attributes),
208 tree ARG_UNUSED (expr))
210 return true;
213 void
214 objc_finish_method_definition (tree ARG_UNUSED (fndecl))
218 bool
219 objc_method_decl (enum tree_code ARG_UNUSED(opcode))
221 return false;
224 tree
225 objc_build_keyword_decl (tree ARG_UNUSED (selector),
226 tree ARG_UNUSED (type),
227 tree ARG_UNUSED (identifier),
228 tree ARG_UNUSED (attributes))
230 return 0;
233 tree
234 objc_build_method_signature (bool ARG_UNUSED (is_class_method),
235 tree ARG_UNUSED (rettype),
236 tree ARG_UNUSED (selectors),
237 tree ARG_UNUSED (optparms),
238 bool ARG_UNUSED (ellipsis))
240 return 0;
243 tree
244 objc_build_encode_expr (tree ARG_UNUSED (expr))
246 return 0;
249 tree
250 objc_build_protocol_expr (tree ARG_UNUSED (expr))
252 return 0;
255 tree
256 objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
258 return 0;
261 tree
262 objc_build_message_expr (tree ARG_UNUSED (receiver), tree ARG_UNUSED (args))
264 return 0;
267 tree
268 objc_build_string_object (tree ARG_UNUSED (str))
270 return 0;
273 tree
274 objc_get_class_reference (tree ARG_UNUSED (name))
276 return 0;
279 bool
280 objc_detect_field_duplicates (bool ARG_UNUSED (check_superclasses_only))
282 return false;
285 tree
286 objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
287 tree ARG_UNUSED (protos))
289 return 0;
293 objc_static_init_needed_p (void)
295 return 0;
298 tree
299 objc_generate_static_init_call (tree ARG_UNUSED (ctors))
301 return 0;
305 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
307 return 1;
310 tree
311 objc_get_class_ivars (tree ARG_UNUSED (name))
313 return 0;
316 void
317 objc_add_property_declaration (location_t ARG_UNUSED (location),
318 tree ARG_UNUSED (decl),
319 bool ARG_UNUSED (parsed_property_readonly),
320 bool ARG_UNUSED (parsed_property_readwrite),
321 bool ARG_UNUSED (parsed_property_assign),
322 bool ARG_UNUSED (parsed_property_retain),
323 bool ARG_UNUSED (parsed_property_copy),
324 bool ARG_UNUSED (parsed_property_nonatomic),
325 tree ARG_UNUSED (parsed_property_getter_ident),
326 tree ARG_UNUSED (parsed_property_setter_ident))
330 bool
331 objc_is_property_ref (tree ARG_UNUSED (node))
333 return 0;
336 tree
337 objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
339 return 0;
342 tree
343 objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
345 return 0;
348 tree
349 objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs))
351 return 0;
354 tree
355 objc_build_incr_expr_for_property_ref (location_t ARG_UNUSED (location),
356 enum tree_code ARG_UNUSED (code),
357 tree ARG_UNUSED (argument),
358 tree ARG_UNUSED (increment))
360 return 0;
363 void
364 objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus),
365 tree ARG_UNUSED (property_and_ivar_list))
369 void
370 objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus),
371 tree ARG_UNUSED (property_list))
375 const char *
376 objc_maybe_printable_name (tree ARG_UNUSED (decl),
377 int ARG_UNUSED (v))
379 return NULL;
382 tree
383 objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
385 return 0;
388 tree
389 objc_build_synchronized (location_t ARG_UNUSED (start_locus),
390 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
392 return 0;
395 void
396 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
400 void
401 objc_begin_catch_clause (tree ARG_UNUSED (decl))
405 void
406 objc_finish_catch_clause (void)
410 void
411 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
412 tree ARG_UNUSED (body))
416 tree
417 objc_finish_try_stmt (void)
419 return 0;
422 tree
423 objc_generate_write_barrier (tree ARG_UNUSED (lhs),
424 enum tree_code ARG_UNUSED (modifycode),
425 tree ARG_UNUSED (rhs))
427 return 0;
430 void
431 objc_finish_foreach_loop (location_t ARG_UNUSED (location), tree ARG_UNUSED (object_expression),
432 tree ARG_UNUSED (collection_expression), tree ARG_UNUSED (for_body),
433 tree ARG_UNUSED (break_label), tree ARG_UNUSED (continue_label))
435 return;
438 void
439 objc_write_global_declarations (void)
443 bool
444 objc_string_ref_type_p (tree ARG_UNUSED (strp))
446 return false;
449 void
450 objc_check_format_arg (tree ARG_UNUSED (format_arg),
451 tree ARG_UNUSED (args_list))
455 void
456 objc_finish_function (void)
460 void
461 objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc))