]> gcc.gnu.org Git - gcc.git/blame - gcc/objc/objc-lang.c
Make-lang.in: Update copyright.
[gcc.git] / gcc / objc / objc-lang.c
CommitLineData
4e089a75
ZL
1/* Language-dependent hooks for Objective-C.
2 Copyright 2001 Free Software Foundation, Inc.
3 Contributed by Ziemowit Laski <zlaski@apple.com>
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING. If not, write to
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
21
22#include "config.h"
23#include "system.h"
24#include "tree.h"
25#include "c-tree.h"
26#include "c-common.h"
27#include "toplev.h"
28#include "objc-act.h"
29#include "langhooks.h"
30#include "langhooks-def.h"
31
32static void objc_init_options PARAMS ((void));
33static void objc_post_options PARAMS ((void));
34
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_PRINT_IDENTIFIER
48#define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier
49#undef LANG_HOOKS_SET_YYDEBUG
50#define LANG_HOOKS_SET_YYDEBUG c_set_yydebug
51/* Inlining hooks same as the C front end. */
52#undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
53#define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
54 c_cannot_inline_tree_fn
55#undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS
56#define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \
57 c_disregard_inline_limits
58#undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P
59#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \
60 anon_aggr_type_p
61
62/* Each front end provides its own hooks, for toplev.c. */
63const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
64
65static void
66objc_init_options ()
67{
68 c_common_init_options (clk_objective_c);
69}
70
71/* Post-switch processing. */
72
73static void
74objc_post_options ()
75{
76 c_common_post_options ();
77}
78
79
This page took 0.030063 seconds and 5 git commands to generate.