Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / c-family / stub-objc.c
blob0ce1feffb41a570c96ff293bf4e1100178aa12d4
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, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
5 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7 This file is part of GCC.
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 3, or (at your option) any later
12 version.
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 for more details.
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING3. If not see
21 <http://www.gnu.org/licenses/>. */
23 #include "config.h"
24 #include "system.h"
25 #include "coretypes.h"
26 #include "tree.h"
27 #include "c-common.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 tree
48 objc_lookup_ivar (tree other, tree ARG_UNUSED (arg))
50 /* Just use whatever C/C++ found. */
51 return other;
54 void
55 objc_check_decl (tree ARG_UNUSED (decl))
59 int
60 objc_is_reserved_word (tree ARG_UNUSED (ident))
62 return 0;
65 bool
66 objc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp),
67 int ARG_UNUSED (argno), tree ARG_UNUSED (callee))
69 return false;
72 void
73 objc_volatilize_decl (tree ARG_UNUSED (decl))
77 bool
78 objc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp))
80 return false;
83 tree
84 objc_rewrite_function_call (tree function, tree ARG_UNUSED (first_param))
86 return function;
89 tree
90 objc_message_selector (void)
92 return 0;
95 void
96 objc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig))
100 void
101 objc_declare_class (tree ARG_UNUSED (list))
105 void
106 objc_declare_protocols (tree ARG_UNUSED (list))
110 void
111 objc_start_protocol (tree ARG_UNUSED (proto),
112 tree ARG_UNUSED (protorefs))
116 void
117 objc_start_class_interface (tree ARG_UNUSED (name),
118 tree ARG_UNUSED (super),
119 tree ARG_UNUSED (protos))
123 void
124 objc_start_category_interface (tree ARG_UNUSED (name),
125 tree ARG_UNUSED (categ),
126 tree ARG_UNUSED (protos))
130 void
131 objc_continue_interface (void)
135 void
136 objc_finish_interface (void)
140 void
141 objc_add_instance_variable (tree ARG_UNUSED (decl))
145 void
146 objc_set_visibility (int ARG_UNUSED (vis))
150 void
151 objc_set_method_type (enum tree_code ARG_UNUSED (code))
155 void
156 objc_start_class_implementation (tree ARG_UNUSED (name),
157 tree ARG_UNUSED (super))
161 void
162 objc_start_category_implementation (tree ARG_UNUSED (name),
163 tree ARG_UNUSED (categ))
167 void
168 objc_continue_implementation (void)
172 void
173 objc_clear_super_receiver (void)
177 void
178 objc_finish_implementation (void)
182 void
183 objc_add_method_declaration (tree ARG_UNUSED (signature))
187 bool
188 objc_start_method_definition (tree ARG_UNUSED (signature))
190 return true;
193 void
194 objc_finish_method_definition (tree ARG_UNUSED (fndecl))
198 tree
199 objc_build_keyword_decl (tree ARG_UNUSED (selector),
200 tree ARG_UNUSED (type),
201 tree ARG_UNUSED (identifier))
203 return 0;
206 tree
207 objc_build_method_signature (tree ARG_UNUSED (rettype),
208 tree ARG_UNUSED (selectors),
209 tree ARG_UNUSED (optparms),
210 bool ARG_UNUSED (ellipsis))
212 return 0;
215 tree
216 objc_build_encode_expr (tree ARG_UNUSED (expr))
218 return 0;
221 tree
222 objc_build_protocol_expr (tree ARG_UNUSED (expr))
224 return 0;
227 tree
228 objc_build_selector_expr (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
230 return 0;
233 tree
234 objc_build_message_expr (tree ARG_UNUSED (expr))
236 return 0;
239 tree
240 objc_build_string_object (tree ARG_UNUSED (str))
242 return 0;
245 tree
246 objc_get_class_reference (tree ARG_UNUSED (name))
248 return 0;
251 tree
252 objc_get_interface_ivars (tree ARG_UNUSED (fieldlist))
254 return 0;
257 tree
258 objc_get_protocol_qualified_type (tree ARG_UNUSED (name),
259 tree ARG_UNUSED (protos))
261 return 0;
265 objc_static_init_needed_p (void)
267 return 0;
270 tree
271 objc_generate_static_init_call (tree ARG_UNUSED (ctors))
273 return 0;
277 objc_is_public (tree ARG_UNUSED (expr), tree ARG_UNUSED (identifier))
279 return 1;
282 tree
283 objc_get_class_ivars (tree ARG_UNUSED (name))
285 return 0;
288 tree
289 objc_build_throw_stmt (location_t ARG_UNUSED (loc), tree ARG_UNUSED (expr))
291 return 0;
294 tree
295 objc_build_synchronized (location_t ARG_UNUSED (start_locus),
296 tree ARG_UNUSED (mutex), tree ARG_UNUSED (body))
298 return 0;
301 void
302 objc_begin_try_stmt (location_t ARG_UNUSED (try_locus), tree ARG_UNUSED (body))
306 void
307 objc_begin_catch_clause (tree ARG_UNUSED (decl))
311 void
312 objc_finish_catch_clause (void)
316 void
317 objc_build_finally_clause (location_t ARG_UNUSED (finally_locus),
318 tree ARG_UNUSED (body))
322 tree
323 objc_finish_try_stmt (void)
325 return 0;
328 tree
329 objc_generate_write_barrier (tree ARG_UNUSED (lhs),
330 enum tree_code ARG_UNUSED (modifycode),
331 tree ARG_UNUSED (rhs))
333 return 0;