poly_int: alter_reg
[official-gcc.git] / gcc / c-family / stub-objc.c
blob33dc2a1abd6f478e0c942997001eb22267249ffb
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-2017 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-objc.h"
28 tree
29 objc_is_class_name (tree ARG_UNUSED (arg))
31 return 0;
34 tree
35 objc_is_id (tree ARG_UNUSED (arg))
37 return 0;
40 tree
41 objc_is_object_ptr (tree ARG_UNUSED (arg))
43 return 0;
46 bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg))
48 return false;
51 tree
52 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
54 /* Just use whatever C/C++ found. */
55 return other;
58 void
59 objc_check_decl (tree ARG_UNUSED (decl))
63 void
64 objc_check_global_decl (tree ARG_UNUSED (decl))
68 tree
69 objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2))
71 return 0;
74 bool
75 objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
76 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
78 return false;
81 bool
82 objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
83 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
85 return false;
88 void
89 objc_volatilize_decl (tree ARG_UNUSED (decl))
93 tree
94 objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param))
96 return function;
99 tree
100 objc_message_selector (void)
102 return 0;
105 void
106 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
110 void
111 objc_declare_class (tree ARG_UNUSED (identifier))
115 void
116 objc_declare_protocol (tree ARG_UNUSED (name), tree ARG_UNUSED (attributes))
120 void
121 objc_start_protocol (tree ARG_UNUSED (proto),
122 tree ARG_UNUSED (protorefs),
123 tree ARG_UNUSED (attribs))
127 void
128 objc_set_method_opt (bool ARG_UNUSED (optional))
132 void
133 objc_start_class_interface (tree ARG_UNUSED (name),
134 tree ARG_UNUSED (super),
135 tree ARG_UNUSED (protos),
136 tree ARG_UNUSED (attribs))
140 void
141 objc_start_category_interface (tree ARG_UNUSED (name),
142 tree ARG_UNUSED (categ),
143 tree ARG_UNUSED (protos),
144 tree ARG_UNUSED (attribs))
148 void
149 objc_continue_interface (void)
153 void
154 objc_finish_interface (void)
158 void
159 objc_add_instance_variable (tree ARG_UNUSED (decl))
163 void
164 objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis))
168 void
169 objc_start_class_implementation (tree ARG_UNUSED (name),
170 tree ARG_UNUSED (super))
174 void
175 objc_start_category_implementation (tree ARG_UNUSED (name),
176 tree ARG_UNUSED (categ))
180 void
181 objc_continue_implementation (void)
185 void
186 objc_clear_super_receiver (void)
190 void
191 objc_finish_implementation (void)
195 void
196 objc_add_method_declaration (bool ARG_UNUSED (is_class_method),
197 tree ARG_UNUSED (signature),
198 tree ARG_UNUSED (attributes))
202 bool
203 objc_start_method_definition (bool ARG_UNUSED (is_class_method),
204 tree ARG_UNUSED (signature),
205 tree ARG_UNUSED (attributes),
206 tree ARG_UNUSED (expr))
208 return true;
211 void
212 objc_finish_method_definition (tree ARG_UNUSED (fndecl))
216 bool
217 objc_method_decl (enum tree_code ARG_UNUSED(opcode))
219 return false;
222 tree
223 objc_build_keyword_decl (tree ARG_UNUSED (selector),
224 tree ARG_UNUSED (type),
225 tree ARG_UNUSED (identifier),
226 tree ARG_UNUSED (attributes))
228 return 0;
231 tree
232 objc_build_method_signature (bool ARG_UNUSED (is_class_method),
233 tree ARG_UNUSED (rettype),
234 tree ARG_UNUSED (selectors),
235 tree ARG_UNUSED (optparms),
236 bool ARG_UNUSED (ellipsis))
238 return 0;
241 tree
242 objc_build_encode_expr (tree ARG_UNUSED (expr))
244 return 0;
247 tree
248 objc_build_protocol_expr (tree ARG_UNUSED (expr))
250 return 0;
253 tree
254 objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
256 return 0;
259 tree
260 objc_build_message_expr (tree ARG_UNUSED (receiver), tree ARG_UNUSED (args))
262 return 0;
265 tree
266 objc_build_string_object (tree ARG_UNUSED (str))
268 return 0;
271 tree
272 objc_get_class_reference (tree ARG_UNUSED (name))
274 return 0;
277 bool
278 objc_detect_field_duplicates (bool ARG_UNUSED (check_superclasses_only))
280 return false;
283 tree
284 objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
285 tree ARG_UNUSED (protos))
287 return 0;
291 objc_static_init_needed_p (void)
293 return 0;
296 tree
297 objc_generate_static_init_call (tree ARG_UNUSED (ctors))
299 return 0;
303 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
305 return 1;
308 tree
309 objc_get_class_ivars (tree ARG_UNUSED (name))
311 return 0;
314 void
315 objc_add_property_declaration (location_t ARG_UNUSED (location),
316 tree ARG_UNUSED (decl),
317 bool ARG_UNUSED (parsed_property_readonly),
318 bool ARG_UNUSED (parsed_property_readwrite),
319 bool ARG_UNUSED (parsed_property_assign),
320 bool ARG_UNUSED (parsed_property_retain),
321 bool ARG_UNUSED (parsed_property_copy),
322 bool ARG_UNUSED (parsed_property_nonatomic),
323 tree ARG_UNUSED (parsed_property_getter_ident),
324 tree ARG_UNUSED (parsed_property_setter_ident))
328 bool
329 objc_is_property_ref (tree ARG_UNUSED (node))
331 return 0;
334 tree
335 objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
337 return 0;
340 tree
341 objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
343 return 0;
346 tree
347 objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs))
349 return 0;
352 tree
353 objc_build_incr_expr_for_property_ref (location_t ARG_UNUSED (location),
354 enum tree_code ARG_UNUSED (code),
355 tree ARG_UNUSED (argument),
356 tree ARG_UNUSED (increment))
358 return 0;
361 void
362 objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus),
363 tree ARG_UNUSED (property_and_ivar_list))
367 void
368 objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus),
369 tree ARG_UNUSED (property_list))
373 const char *
374 objc_maybe_printable_name (tree ARG_UNUSED (decl),
375 int ARG_UNUSED (v))
377 return NULL;
380 tree
381 objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
383 return 0;
386 tree
387 objc_build_synchronized (location_t ARG_UNUSED (start_locus),
388 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
390 return 0;
393 void
394 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
398 void
399 objc_begin_catch_clause (tree ARG_UNUSED (decl))
403 void
404 objc_finish_catch_clause (void)
408 void
409 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
410 tree ARG_UNUSED (body))
414 tree
415 objc_finish_try_stmt (void)
417 return 0;
420 tree
421 objc_generate_write_barrier (tree ARG_UNUSED (lhs),
422 enum tree_code ARG_UNUSED (modifycode),
423 tree ARG_UNUSED (rhs))
425 return 0;
428 void
429 objc_finish_foreach_loop (location_t ARG_UNUSED (location), tree ARG_UNUSED (object_expression),
430 tree ARG_UNUSED (collection_expression), tree ARG_UNUSED (for_body),
431 tree ARG_UNUSED (break_label), tree ARG_UNUSED (continue_label))
433 return;
436 void
437 objc_write_global_declarations (void)
441 bool
442 objc_string_ref_type_p (tree ARG_UNUSED (strp))
444 return false;
447 void
448 objc_check_format_arg (tree ARG_UNUSED (format_arg),
449 tree ARG_UNUSED (args_list))
453 void
454 objc_finish_function (void)
458 void
459 objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc))