OSDN Git Service

* Make-lang.in (CXX_OBJS): Added cp-lang.o.
[pf3gnuchains/gcc-fork.git] / gcc / cp / cp-lang.c
1 /* Language-dependent hooks for C++.
2    Copyright 2001 Free Software Foundation, Inc.
3    Contributed by Alexandre Oliva  <aoliva@redhat.com>
4
5 This file is part of GNU CC.
6
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)
10 any later version.
11
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.
16
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.  */
21
22 #include "config.h"
23 #include "system.h"
24 #include "tree.h"
25 #include "cp-tree.h"
26 #include "toplev.h"
27 #include "langhooks.h"
28
29 #undef LANG_HOOKS_INIT
30 #define LANG_HOOKS_INIT cxx_init
31 #undef LANG_HOOKS_FINISH
32 #define LANG_HOOKS_FINISH cxx_finish
33 #undef LANG_HOOKS_INIT_OPTIONS
34 #define LANG_HOOKS_INIT_OPTIONS cxx_init_options
35 #undef LANG_HOOKS_DECODE_OPTION
36 #define LANG_HOOKS_DECODE_OPTION cxx_decode_option
37 #undef LANG_HOOKS_POST_OPTIONS
38 #define LANG_HOOKS_POST_OPTIONS cxx_post_options
39
40 #undef LANG_HOOKS_TREE_INLINING_WALK_SUBTREES
41 #define LANG_HOOKS_TREE_INLINING_WALK_SUBTREES \
42   cp_walk_subtrees
43 #undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
44 #define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
45   cp_cannot_inline_tree_fn
46 #undef LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS
47 #define LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS \
48   cp_add_pending_fn_decls
49 #undef LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P
50 #define LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P \
51   cp_is_overload_p
52 #undef LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P
53 #define LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P \
54   cp_auto_var_in_fn_p
55 #undef LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING
56 #define LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING \
57   cp_copy_res_decl_for_inlining
58 #undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P
59 #define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P anon_aggr_type_p
60
61 /* Each front end provides its own hooks, for toplev.c.  */
62 struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;