stub-objc.c revision 169690
190792Sgshapiro/* Stub functions for Objective-C and Objective-C++ routines
290792Sgshapiro   that are called from within the C and C++ front-ends,
390792Sgshapiro   respectively.
490792Sgshapiro   Copyright (C) 1991, 1995, 1997, 1998,
5132943Sgshapiro   1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6132943Sgshapiro
7132943SgshapiroThis file is part of GCC.
890792Sgshapiro
990792SgshapiroGCC is free software; you can redistribute it and/or modify it under
1090792Sgshapirothe terms of the GNU General Public License as published by the Free
1190792SgshapiroSoftware Foundation; either version 2, or (at your option) any later
1290792Sgshapiroversion.
1390792Sgshapiro
1490792SgshapiroGCC is distributed in the hope that it will be useful, but WITHOUT ANY
1590792SgshapiroWARRANTY; without even the implied warranty of MERCHANTABILITY or
1690792SgshapiroFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1790792Sgshapirofor more details.
1890792Sgshapiro
1990792SgshapiroYou should have received a copy of the GNU General Public License
2090792Sgshapiroalong with GCC; see the file COPYING.  If not, write to the Free
2190792SgshapiroSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
22112810Sgshapiro02110-1301, USA.  */
2390792Sgshapiro
2490792Sgshapiro#include "config.h"
2590792Sgshapiro#include "system.h"
2690792Sgshapiro#include "coretypes.h"
2790792Sgshapiro#include "tree.h"
2890792Sgshapiro#include "c-common.h"
2990792Sgshapiro
3090792Sgshapirotree
3190792Sgshapiroobjc_is_class_name (tree ARG_UNUSED (arg))
3290792Sgshapiro{
3390792Sgshapiro  return 0;
3490792Sgshapiro}
3590792Sgshapiro
3690792Sgshapirotree
3790792Sgshapiroobjc_is_id (tree ARG_UNUSED (arg))
3890792Sgshapiro{
3994334Sgshapiro  return 0;
4094334Sgshapiro}
4194334Sgshapiro
4294334Sgshapirotree
4390792Sgshapiroobjc_is_object_ptr (tree ARG_UNUSED (arg))
4490792Sgshapiro{
4594334Sgshapiro  return 0;
4690792Sgshapiro}
4790792Sgshapiro
4890792Sgshapirotree
4990792Sgshapiroobjc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
5090792Sgshapiro{
5190792Sgshapiro  /* Just use whatever C/C++ found.  */
5294334Sgshapiro  return other;
5394334Sgshapiro}
5490792Sgshapiro
5590792Sgshapirovoid
5690792Sgshapiroobjc_check_decl (tree ARG_UNUSED (decl))
5790792Sgshapiro{
5890792Sgshapiro}
5990792Sgshapiro
6090792Sgshapiroint
6190792Sgshapiroobjc_is_reserved_word (tree ARG_UNUSED (ident))
6290792Sgshapiro{
6390792Sgshapiro  return 0;
6490792Sgshapiro}
6590792Sgshapiro
6690792Sgshapirobool
6790792Sgshapiroobjc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
6890792Sgshapiro		    int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
6990792Sgshapiro{
7090792Sgshapiro  return false;
7190792Sgshapiro}
7290792Sgshapiro
7390792Sgshapirovoid
7490792Sgshapiroobjc_volatilize_decl (tree ARG_UNUSED (decl))
7590792Sgshapiro{
7690792Sgshapiro}
7790792Sgshapiro
7890792Sgshapirobool
7990792Sgshapiroobjc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp))
8090792Sgshapiro{
8190792Sgshapiro  return false;
8290792Sgshapiro}
8390792Sgshapiro
8490792Sgshapirotree
8590792Sgshapiroobjc_rewrite_function_call (tree function, tree ARG_UNUSED (params))
8690792Sgshapiro{
8790792Sgshapiro  return function;
8890792Sgshapiro}
8990792Sgshapiro
9090792Sgshapirotree
9190792Sgshapiroobjc_message_selector (void)
9290792Sgshapiro{
9390792Sgshapiro  return 0;
9490792Sgshapiro}
9590792Sgshapiro
9690792Sgshapirovoid
9790792Sgshapiroobjc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
9890792Sgshapiro{
9990792Sgshapiro}
10090792Sgshapiro
10190792Sgshapirovoid
10290792Sgshapiroobjc_declare_class (tree ARG_UNUSED (list))
10390792Sgshapiro{
10490792Sgshapiro}
10590792Sgshapiro
10690792Sgshapirovoid
10790792Sgshapiroobjc_declare_protocols (tree ARG_UNUSED (list))
10890792Sgshapiro{
10990792Sgshapiro}
11090792Sgshapiro
11190792Sgshapirovoid
11290792Sgshapiroobjc_start_protocol (tree ARG_UNUSED (proto),
11390792Sgshapiro		     tree ARG_UNUSED (protorefs))
11490792Sgshapiro{
11590792Sgshapiro}
11690792Sgshapiro
11790792Sgshapirovoid
11890792Sgshapiroobjc_start_class_interface (tree ARG_UNUSED (name),
11990792Sgshapiro			    tree ARG_UNUSED (super),
12094334Sgshapiro			    tree ARG_UNUSED (protos))
12190792Sgshapiro{
12290792Sgshapiro}
12390792Sgshapiro
12490792Sgshapirovoid
12590792Sgshapiroobjc_start_category_interface (tree ARG_UNUSED (name),
12690792Sgshapiro			       tree ARG_UNUSED (categ),
12790792Sgshapiro			       tree ARG_UNUSED (protos))
12890792Sgshapiro{
12990792Sgshapiro}
13090792Sgshapiro
13190792Sgshapirovoid
13290792Sgshapiroobjc_continue_interface (void)
13390792Sgshapiro{
13490792Sgshapiro}
13590792Sgshapiro
13690792Sgshapirovoid
13790792Sgshapiroobjc_finish_interface (void)
13890792Sgshapiro{
13990792Sgshapiro}
14090792Sgshapiro
14190792Sgshapirovoid
14290792Sgshapiroobjc_add_instance_variable (tree ARG_UNUSED (decl))
14390792Sgshapiro{
14490792Sgshapiro}
14590792Sgshapiro
14690792Sgshapirovoid
14790792Sgshapiroobjc_set_visibility (int ARG_UNUSED (vis))
14890792Sgshapiro{
14990792Sgshapiro}
15090792Sgshapiro
15190792Sgshapirovoid
15290792Sgshapiroobjc_set_method_type (enum tree_code ARG_UNUSED (code))
15390792Sgshapiro{
15490792Sgshapiro}
15590792Sgshapiro
15690792Sgshapirovoid
15790792Sgshapiroobjc_start_class_implementation (tree ARG_UNUSED (name),
15890792Sgshapiro				 tree ARG_UNUSED (super))
15990792Sgshapiro{
16090792Sgshapiro}
16190792Sgshapiro
16290792Sgshapirovoid
163112810Sgshapiroobjc_start_category_implementation (tree ARG_UNUSED (name),
16490792Sgshapiro				    tree ARG_UNUSED (categ))
16590792Sgshapiro{
16690792Sgshapiro}
167112810Sgshapiro
16890792Sgshapirovoid
16990792Sgshapiroobjc_continue_implementation (void)
170{
171}
172
173void
174objc_clear_super_receiver (void)
175{
176}
177
178void
179objc_finish_implementation (void)
180{
181}
182
183void
184objc_add_method_declaration (tree ARG_UNUSED (signature))
185{
186}
187
188void
189objc_start_method_definition (tree ARG_UNUSED (signature))
190{
191}
192
193void
194objc_finish_method_definition (tree ARG_UNUSED (fndecl))
195{
196}
197
198tree
199objc_build_keyword_decl (tree ARG_UNUSED (selector),
200			 tree ARG_UNUSED (typename),
201			 tree ARG_UNUSED (identifier))
202{
203  return 0;
204}
205
206tree
207objc_build_method_signature (tree ARG_UNUSED (rettype),
208			     tree ARG_UNUSED (selectors),
209			     tree ARG_UNUSED (optparms),
210			     bool ARG_UNUSED (ellipsis))
211{
212  return 0;
213}
214
215tree
216objc_build_encode_expr (tree ARG_UNUSED (expr))
217{
218  return 0;
219}
220
221tree
222objc_build_protocol_expr (tree ARG_UNUSED (expr))
223{
224  return 0;
225}
226
227tree
228objc_build_selector_expr (tree ARG_UNUSED (expr))
229{
230  return 0;
231}
232
233tree
234objc_build_message_expr (tree ARG_UNUSED (expr))
235{
236  return 0;
237}
238
239tree
240objc_build_string_object (tree ARG_UNUSED (str))
241{
242  return 0;
243}
244
245tree
246objc_get_class_reference (tree ARG_UNUSED (name))
247{
248  return 0;
249}
250
251tree
252objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
253				  tree ARG_UNUSED (protos))
254{
255  return 0;
256}
257
258int
259objc_static_init_needed_p (void)
260{
261  return 0;
262}
263
264tree
265objc_generate_static_init_call (tree ARG_UNUSED (ctors))
266{
267  return 0;
268}
269
270int
271objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
272{
273  return 1;
274}
275
276tree
277objc_get_class_ivars (tree ARG_UNUSED (name))
278{
279  return 0;
280}
281
282tree
283objc_build_throw_stmt (tree ARG_UNUSED (expr))
284{
285  return 0;
286}
287
288tree
289objc_build_synchronized (location_t ARG_UNUSED (start_locus),
290			 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
291{
292  return 0;
293}
294
295void
296objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
297{
298}
299
300void
301objc_begin_catch_clause (tree ARG_UNUSED (decl))
302{
303}
304
305void
306objc_finish_catch_clause (void)
307{
308}
309
310void
311objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
312			   tree ARG_UNUSED (body))
313{
314}
315
316tree
317objc_finish_try_stmt (void)
318{
319  return 0;
320}
321
322tree
323objc_generate_write_barrier (tree ARG_UNUSED (lhs),
324			     enum tree_code ARG_UNUSED (modifycode),
325			     tree ARG_UNUSED (rhs))
326{
327  return 0;
328}
329