1 /* Language-dependent hooks for Objective-C.
2 Copyright 2001 Free Software Foundation, Inc.
3 Contributed by Ziemowit Laski <zlaski@apple.com>
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
29 #include "langhooks.h"
30 #include "langhooks-def.h"
32 static void objc_init_options
PARAMS ((void));
33 static void objc_post_options
PARAMS ((void));
35 #undef LANG_HOOKS_NAME
36 #define LANG_HOOKS_NAME "GNU Objective-C"
37 #undef LANG_HOOKS_INIT
38 #define LANG_HOOKS_INIT objc_init
39 #undef LANG_HOOKS_FINISH
40 #define LANG_HOOKS_FINISH c_common_finish
41 #undef LANG_HOOKS_INIT_OPTIONS
42 #define LANG_HOOKS_INIT_OPTIONS objc_init_options
43 #undef LANG_HOOKS_DECODE_OPTION
44 #define LANG_HOOKS_DECODE_OPTION objc_decode_option
45 #undef LANG_HOOKS_POST_OPTIONS
46 #define LANG_HOOKS_POST_OPTIONS objc_post_options
47 #undef LANG_HOOKS_STATICP
48 #define LANG_HOOKS_STATICP c_staticp
49 #undef LANG_HOOKS_PRINT_IDENTIFIER
50 #define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier
51 #undef LANG_HOOKS_SET_YYDEBUG
52 #define LANG_HOOKS_SET_YYDEBUG c_set_yydebug
53 /* Inlining hooks same as the C front end. */
54 #undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
55 #define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
56 c_cannot_inline_tree_fn
57 #undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS
58 #define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \
59 c_disregard_inline_limits
60 #undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P
61 #define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \
64 /* Each front end provides its own hooks, for toplev.c. */
65 const struct lang_hooks lang_hooks
= LANG_HOOKS_INITIALIZER
;
70 c_common_init_options (clk_objective_c
);
73 /* Post-switch processing. */
78 c_common_post_options ();