stub-objc.c revision 267654
156668Sshin/* Stub functions for Objective-C and Objective-C++ routines 256668Sshin that are called from within the C and C++ front-ends, 356668Sshin respectively. 4122679Sume Copyright (C) 1991, 1995, 1997, 1998, 556668Sshin 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 656668Sshin 7122679SumeThis file is part of GCC. 856668Sshin 956668SshinGCC is free software; you can redistribute it and/or modify it under 1056668Sshinthe terms of the GNU General Public License as published by the Free 11108533SschweikhSoftware Foundation; either version 2, or (at your option) any later 1256668Sshinversion. 1356668Sshin 1456668SshinGCC is distributed in the hope that it will be useful, but WITHOUT ANY 1556668SshinWARRANTY; without even the implied warranty of MERCHANTABILITY or 1656668SshinFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1756668Sshinfor more details. 1856668Sshin 1956668SshinYou should have received a copy of the GNU General Public License 2056668Sshinalong with GCC; see the file COPYING. If not, write to the Free 2156668SshinSoftware Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 2256668Sshin02110-1301, USA. */ 2356668Sshin 2456668Sshin#include "config.h" 2556668Sshin#include "system.h" 2656668Sshin#include "coretypes.h" 2756668Sshin#include "tree.h" 2856668Sshin#include "c-common.h" 2956668Sshin 3056668Sshintree 3178064Sumeobjc_is_class_name (tree ARG_UNUSED (arg)) 3256668Sshin{ 33108533Sschweikh return 0; 3456668Sshin} 3578064Sume 3678064Sumetree 3778064Sumeobjc_is_id (tree ARG_UNUSED (arg)) 3856668Sshin{ 3956668Sshin return 0; 4056668Sshin} 4156668Sshin 4256668Sshintree 4356668Sshinobjc_is_object_ptr (tree ARG_UNUSED (arg)) 4456668Sshin{ 4578064Sume return 0; 4656668Sshin} 4756668Sshin 4856668Sshintree 4956668Sshinobjc_lookup_ivar (tree other, tree ARG_UNUSED (arg)) 5056668Sshin{ 5156668Sshin /* Just use whatever C/C++ found. */ 5256668Sshin return other; 5356668Sshin} 5456668Sshin 5556668Sshinvoid 5696397Sddobjc_check_decl (tree ARG_UNUSED (decl)) 5756668Sshin{ 5856668Sshin} 5956668Sshin 6056668Sshinint 6178064Sumeobjc_is_reserved_word (tree ARG_UNUSED (ident)) 6278064Sume{ 6356668Sshin return 0; 6456668Sshin} 6556668Sshin 6678064Sumebool 6756668Sshinobjc_compare_types (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp), 6856668Sshin int ARG_UNUSED (argno), tree ARG_UNUSED (callee)) 6956668Sshin{ 7056668Sshin return false; 7156668Sshin} 7256668Sshin 7356668Sshinvoid 7456668Sshinobjc_volatilize_decl (tree ARG_UNUSED (decl)) 7556668Sshin{ 7656668Sshin} 7778064Sume 7862655Skrisbool 7956668Sshinobjc_type_quals_match (tree ARG_UNUSED (ltyp), tree ARG_UNUSED (rtyp)) 8078064Sume{ 8178064Sume return false; 8256668Sshin} 8378064Sume 8456668Sshintree 8556668Sshinobjc_rewrite_function_call (tree function, tree ARG_UNUSED (params)) 8656668Sshin{ 8756668Sshin return function; 8856668Sshin} 8956668Sshin 9056668Sshintree 9156668Sshinobjc_message_selector (void) 9256668Sshin{ 9356668Sshin return 0; 9456668Sshin} 9562655Skris 9656668Sshinvoid 9756668Sshinobjc_declare_alias (tree ARG_UNUSED (alias), tree ARG_UNUSED (orig)) 9862655Skris{ 9956668Sshin} 10078064Sume 10156668Sshinvoid 10256668Sshinobjc_declare_class (tree ARG_UNUSED (list)) 10356668Sshin{ 10456668Sshin} 10556668Sshin 10656668Sshinvoid 10756668Sshinobjc_declare_protocols (tree ARG_UNUSED (list)) 10856668Sshin{ 10956668Sshin} 11056668Sshin 11156668Sshinvoid 11278064Sumeobjc_start_protocol (tree ARG_UNUSED (proto), 11378064Sume tree ARG_UNUSED (protorefs)) 11478064Sume{ 11578064Sume} 11678064Sume 11778064Sumevoid 11878064Sumeobjc_start_class_interface (tree ARG_UNUSED (name), 11978064Sume tree ARG_UNUSED (super), 12078064Sume tree ARG_UNUSED (protos)) 12178064Sume{ 12278064Sume} 12378064Sume 12456668Sshinvoid 12556668Sshinobjc_start_category_interface (tree ARG_UNUSED (name), 12656668Sshin tree ARG_UNUSED (categ), 12756668Sshin tree ARG_UNUSED (protos)) 12856668Sshin{ 12956668Sshin} 13078064Sume 13178064Sumevoid 13278064Sumeobjc_continue_interface (void) 13356668Sshin{ 13456668Sshin} 13578064Sume 13678064Sumevoid 13756668Sshinobjc_finish_interface (void) 13856668Sshin{ 13956668Sshin} 14056668Sshin 14156668Sshinvoid 14262655Skrisobjc_add_instance_variable (tree ARG_UNUSED (decl)) 14356668Sshin{ 14456668Sshin} 14556668Sshin 14662655Skrisvoid 14756668Sshinobjc_set_visibility (int ARG_UNUSED (vis)) 14856668Sshin{ 149} 150 151void 152objc_set_method_type (enum tree_code ARG_UNUSED (code)) 153{ 154} 155 156void 157objc_start_class_implementation (tree ARG_UNUSED (name), 158 tree ARG_UNUSED (super)) 159{ 160} 161 162void 163objc_start_category_implementation (tree ARG_UNUSED (name), 164 tree ARG_UNUSED (categ)) 165{ 166} 167 168void 169objc_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