]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/stub-objc.c
Update copyright years.
[thirdparty/gcc.git] / gcc / c-family / stub-objc.c
CommitLineData
264fa2db
ZL
1/* Stub functions for Objective-C and Objective-C++ routines
2 that are called from within the C and C++ front-ends,
3 respectively.
8d9254fc 4 Copyright (C) 1991-2020 Free Software Foundation, Inc.
264fa2db
ZL
5
6This file is part of GCC.
7
8GCC is free software; you can redistribute it and/or modify it under
9the terms of the GNU General Public License as published by the Free
9dcd6f09 10Software Foundation; either version 3, or (at your option) any later
264fa2db
ZL
11version.
12
13GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14WARRANTY; without even the implied warranty of MERCHANTABILITY or
15FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16for more details.
17
18You should have received a copy of the GNU General Public License
9dcd6f09
NC
19along with GCC; see the file COPYING3. If not see
20<http://www.gnu.org/licenses/>. */
264fa2db
ZL
21
22#include "config.h"
23#include "system.h"
24#include "coretypes.h"
25#include "tree.h"
61d3ce20 26#include "c-objc.h"
264fa2db
ZL
27
28tree
bc095846 29objc_is_class_name (tree ARG_UNUSED (arg))
264fa2db
ZL
30{
31 return 0;
32}
33
c41e5f27
ZL
34tree
35objc_is_id (tree ARG_UNUSED (arg))
36{
37 return 0;
38}
39
264fa2db 40tree
e18476eb 41objc_is_object_ptr (tree ARG_UNUSED (arg))
264fa2db
ZL
42{
43 return 0;
44}
45
90fbfdc3
NP
46bool objc_diagnose_private_ivar (tree ARG_UNUSED (arg))
47{
48 return false;
49}
50
264fa2db 51tree
16b34ad6 52objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
264fa2db 53{
16b34ad6
ZL
54 /* Just use whatever C/C++ found. */
55 return other;
264fa2db
ZL
56}
57
58void
e18476eb 59objc_check_decl (tree ARG_UNUSED (decl))
264fa2db
ZL
60{
61}
b8698a0f 62
a6341d57
NP
63void
64objc_check_global_decl (tree ARG_UNUSED (decl))
65{
66}
67
b581b85b
NP
68tree
69objc_common_type (tree ARG_UNUSED (type1), tree ARG_UNUSED (type2))
70{
71 return 0;
72}
73
58393038
ZL
74bool
75objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
76 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
77{
78 return false;
79}
80
b581b85b
NP
81bool
82objc_have_common_type (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
83 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
84{
85 return false;
86}
87
58393038
ZL
88void
89objc_volatilize_decl (tree ARG_UNUSED (decl))
90{
91}
92
6e955430 93tree
bbbbb16a 94objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param))
6e955430
ZL
95{
96 return function;
97}
98
264fa2db
ZL
99tree
100objc_message_selector (void)
b8698a0f 101{
264fa2db
ZL
102 return 0;
103}
104
c41e5f27
ZL
105void
106objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
107{
108}
109
110void
32dabdaf 111objc_declare_class (tree ARG_UNUSED (identifier))
c41e5f27
ZL
112{
113}
114
115void
c59633d9 116objc_declare_protocol (tree ARG_UNUSED (name), tree ARG_UNUSED (attributes))
c41e5f27
ZL
117{
118}
119
120void
121objc_start_protocol (tree ARG_UNUSED (proto),
c165dca7
IS
122 tree ARG_UNUSED (protorefs),
123 tree ARG_UNUSED (attribs))
c41e5f27
ZL
124{
125}
126
92902b1b
IS
127void
128objc_set_method_opt (bool ARG_UNUSED (optional))
129{
130}
131
c41e5f27
ZL
132void
133objc_start_class_interface (tree ARG_UNUSED (name),
134 tree ARG_UNUSED (super),
c165dca7
IS
135 tree ARG_UNUSED (protos),
136 tree ARG_UNUSED (attribs))
c41e5f27
ZL
137{
138}
139
140void
141objc_start_category_interface (tree ARG_UNUSED (name),
142 tree ARG_UNUSED (categ),
c165dca7
IS
143 tree ARG_UNUSED (protos),
144 tree ARG_UNUSED (attribs))
c41e5f27
ZL
145{
146}
147
148void
149objc_continue_interface (void)
150{
151}
152
153void
154objc_finish_interface (void)
155{
156}
157
158void
159objc_add_instance_variable (tree ARG_UNUSED (decl))
160{
161}
162
163void
c37d8c30 164objc_set_visibility (objc_ivar_visibility_kind ARG_UNUSED (vis))
c41e5f27
ZL
165{
166}
167
c41e5f27
ZL
168void
169objc_start_class_implementation (tree ARG_UNUSED (name),
170 tree ARG_UNUSED (super))
171{
172}
173
174void
175objc_start_category_implementation (tree ARG_UNUSED (name),
176 tree ARG_UNUSED (categ))
177{
178}
179
180void
181objc_continue_implementation (void)
182{
183}
184
325c3691
RH
185void
186objc_clear_super_receiver (void)
187{
188}
189
c41e5f27
ZL
190void
191objc_finish_implementation (void)
192{
193}
194
195void
249a82c4
NP
196objc_add_method_declaration (bool ARG_UNUSED (is_class_method),
197 tree ARG_UNUSED (signature),
f7e71da5 198 tree ARG_UNUSED (attributes))
c41e5f27
ZL
199{
200}
201
45547c7f 202bool
249a82c4
NP
203objc_start_method_definition (bool ARG_UNUSED (is_class_method),
204 tree ARG_UNUSED (signature),
a04a722b
JM
205 tree ARG_UNUSED (attributes),
206 tree ARG_UNUSED (expr))
c41e5f27 207{
45547c7f 208 return true;
c41e5f27
ZL
209}
210
211void
212objc_finish_method_definition (tree ARG_UNUSED (fndecl))
213{
214}
215
a1178b30
IS
216bool
217objc_method_decl (enum tree_code ARG_UNUSED(opcode))
218{
219 return false;
220}
221
c41e5f27
ZL
222tree
223objc_build_keyword_decl (tree ARG_UNUSED (selector),
4557bf49 224 tree ARG_UNUSED (type),
f7e71da5
IS
225 tree ARG_UNUSED (identifier),
226 tree ARG_UNUSED (attributes))
c41e5f27
ZL
227{
228 return 0;
229}
230
231tree
249a82c4
NP
232objc_build_method_signature (bool ARG_UNUSED (is_class_method),
233 tree ARG_UNUSED (rettype),
c41e5f27 234 tree ARG_UNUSED (selectors),
dbb74365
RS
235 tree ARG_UNUSED (optparms),
236 bool ARG_UNUSED (ellipsis))
c41e5f27
ZL
237{
238 return 0;
239}
240
241tree
242objc_build_encode_expr (tree ARG_UNUSED (expr))
243{
244 return 0;
245}
246
247tree
248objc_build_protocol_expr (tree ARG_UNUSED (expr))
249{
250 return 0;
251}
252
253tree
c2255bc4 254objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
c41e5f27
ZL
255{
256 return 0;
257}
258
259tree
eb345401 260objc_build_message_expr (tree ARG_UNUSED (receiver), tree ARG_UNUSED (args))
c41e5f27
ZL
261{
262 return 0;
263}
264
265tree
266objc_build_string_object (tree ARG_UNUSED (str))
267{
268 return 0;
269}
270
271tree
272objc_get_class_reference (tree ARG_UNUSED (name))
273{
274 return 0;
275}
276
0dc33c3c
NP
277bool
278objc_detect_field_duplicates (bool ARG_UNUSED (check_superclasses_only))
c0c24aa4 279{
0dc33c3c 280 return false;
c0c24aa4
NP
281}
282
c41e5f27
ZL
283tree
284objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
285 tree ARG_UNUSED (protos))
286{
287 return 0;
288}
289
290int
291objc_static_init_needed_p (void)
292{
293 return 0;
294}
295
296tree
297objc_generate_static_init_call (tree ARG_UNUSED (ctors))
298{
299 return 0;
300}
301
7a3ea201 302int
e18476eb 303objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
7a3ea201
RH
304{
305 return 1;
306}
27bf414c
JM
307
308tree
6e955430 309objc_get_class_ivars (tree ARG_UNUSED (name))
27bf414c
JM
310{
311 return 0;
312}
313
668ea4b1 314void
200290f2
NP
315objc_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),
46a88c12 324 tree ARG_UNUSED (parsed_property_setter_ident))
668ea4b1
IS
325{
326}
327
46a88c12
NP
328bool
329objc_is_property_ref (tree ARG_UNUSED (node))
330{
331 return 0;
332}
333
668ea4b1 334tree
46a88c12 335objc_maybe_build_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
668ea4b1
IS
336{
337 return 0;
338}
339
bede2adc
NP
340tree
341objc_build_class_component_ref (tree ARG_UNUSED (datum), tree ARG_UNUSED (component))
342{
343 return 0;
344}
345
668ea4b1 346tree
46a88c12 347objc_maybe_build_modify_expr (tree ARG_UNUSED (lhs), tree ARG_UNUSED (rhs))
668ea4b1
IS
348{
349 return 0;
350}
351
925e8657
NP
352tree
353objc_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))
357{
358 return 0;
359}
360
da57d1b9
NP
361void
362objc_add_synthesize_declaration (location_t ARG_UNUSED (start_locus),
363 tree ARG_UNUSED (property_and_ivar_list))
364{
365}
366
367void
368objc_add_dynamic_declaration (location_t ARG_UNUSED (start_locus),
369 tree ARG_UNUSED (property_list))
370{
371}
372
b8a18805
NP
373const char *
374objc_maybe_printable_name (tree ARG_UNUSED (decl),
375 int ARG_UNUSED (v))
376{
377 return NULL;
378}
379
27bf414c 380tree
c2255bc4 381objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
27bf414c
JM
382{
383 return 0;
384}
385
6e955430 386tree
27bf414c
JM
387objc_build_synchronized (location_t ARG_UNUSED (start_locus),
388 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
389{
6e955430 390 return 0;
27bf414c
JM
391}
392
393void
394objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
395{
396}
b8698a0f 397
27bf414c
JM
398void
399objc_begin_catch_clause (tree ARG_UNUSED (decl))
400{
401}
402
403void
404objc_finish_catch_clause (void)
405{
406}
407
408void
409objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
410 tree ARG_UNUSED (body))
411{
412}
413
6e955430 414tree
27bf414c
JM
415objc_finish_try_stmt (void)
416{
6e955430 417 return 0;
27bf414c 418}
6e955430
ZL
419
420tree
421objc_generate_write_barrier (tree ARG_UNUSED (lhs),
422 enum tree_code ARG_UNUSED (modifycode),
423 tree ARG_UNUSED (rhs))
424{
425 return 0;
b8698a0f 426}
f05b9d93
NP
427
428void
429objc_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))
432{
433 return;
434}
977e30bc
NP
435
436void
437objc_write_global_declarations (void)
438{
439}
91ebb981
IS
440
441bool
442objc_string_ref_type_p (tree ARG_UNUSED (strp))
443{
444 return false;
445}
446
447void
448objc_check_format_arg (tree ARG_UNUSED (format_arg),
449 tree ARG_UNUSED (args_list))
450{
451}
6c39e757
NP
452
453void
454objc_finish_function (void)
455{
456}
46270f14
NP
457
458void
459objc_maybe_warn_exceptions (location_t ARG_UNUSED (loc))
460{
461}