* Makefile.in (rtlanal.o): Depend on $(TM_P_H).
[official-gcc.git] / gcc / langhooks.h
blob43335fa2ba6a422096e8ea5ad1e58eea22e4067f
1 /* Macros to initialize the lang_hooks data structure.
2 Copyright 2001 Free Software Foundation, Inc.
3 Contributed by Alexandre Oliva <aoliva@redhat.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)
10 any later version.
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. */
22 #ifndef GCC_LANG_HOOKS_H
23 #define GCC_LANG_HOOKS_H
25 /* Older hooks, that don't go in sub-structures for backward
26 compatibility. */
27 #ifndef LANG_HOOKS_INIT
28 #define LANG_HOOKS_INIT NULL
29 #endif
30 #ifndef LANG_HOOKS_FINISH
31 #define LANG_HOOKS_FINISH NULL
32 #endif
33 #ifndef LANG_HOOKS_INIT_OPTIONS
34 #define LANG_HOOKS_INIT_OPTIONS NULL
35 #endif
36 #ifndef LANG_HOOKS_DECODE_OPTION
37 #define LANG_HOOKS_DECODE_OPTION NULL
38 #endif
39 #ifndef LANG_HOOKS_POST_OPTIONS
40 #define LANG_HOOKS_POST_OPTIONS NULL
41 #endif
43 /* Declarations of default tree inlining hooks. */
44 tree tree_inlining_default_hook_walk_subtrees PARAMS ((tree*, int *,
45 walk_tree_fn,
46 void *, void *));
47 int tree_inlining_default_hook_cannot_inline_tree_fn PARAMS ((tree*));
48 int tree_inlining_default_hook_disregard_inline_limits PARAMS ((tree));
49 tree tree_inlining_default_hook_add_pending_fn_decls PARAMS ((void*, tree));
50 int tree_inlining_default_hook_tree_chain_matters_p PARAMS ((tree));
51 int tree_inlining_default_hook_auto_var_in_fn_p PARAMS ((tree, tree));
52 tree tree_inlining_default_hook_copy_res_decl_for_inlining PARAMS ((tree, tree,
53 tree,
54 void *,
55 int *,
56 void *));
57 int tree_inlining_default_hook_anon_aggr_type_p PARAMS ((tree));
59 /* Tree inlining hooks. */
60 #ifndef LANG_HOOKS_TREE_INLINING_WALK_SUBTREES
61 #define LANG_HOOKS_TREE_INLINING_WALK_SUBTREES \
62 tree_inlining_default_hook_walk_subtrees
63 #endif
64 #ifndef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
65 #define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
66 tree_inlining_default_hook_cannot_inline_tree_fn
67 #endif
68 #ifndef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS
69 #define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \
70 tree_inlining_default_hook_disregard_inline_limits
71 #endif
72 #ifndef LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS
73 #define LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS \
74 tree_inlining_default_hook_add_pending_fn_decls
75 #endif
76 #ifndef LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P
77 #define LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P \
78 tree_inlining_default_hook_tree_chain_matters_p
79 #endif
80 #ifndef LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P
81 #define LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P \
82 tree_inlining_default_hook_auto_var_in_fn_p
83 #endif
84 #ifndef LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING
85 #define LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING \
86 tree_inlining_default_hook_copy_res_decl_for_inlining
87 #endif
88 #ifndef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P
89 #define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \
90 tree_inlining_default_hook_anon_aggr_type_p
91 #endif
93 #define LANG_HOOKS_TREE_INLINING_INITIALIZER { \
94 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES, \
95 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN, \
96 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS, \
97 LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS, \
98 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P, \
99 LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P, \
100 LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING, \
101 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \
104 /* The whole thing. The structure is defined in toplev.h. */
105 #define LANG_HOOKS_INITIALIZER { \
106 LANG_HOOKS_INIT, \
107 LANG_HOOKS_FINISH, \
108 LANG_HOOKS_INIT_OPTIONS, \
109 LANG_HOOKS_DECODE_OPTION, \
110 LANG_HOOKS_POST_OPTIONS, \
111 LANG_HOOKS_TREE_INLINING_INITIALIZER \
114 #endif /* GCC_LANG_HOOKS_H */