OSDN Git Service

* Makefile.in (OBJS): Added tree-inline.o.
[pf3gnuchains/gcc-fork.git] / gcc / tree-inline.c
1 /* Control and data flow functions for trees.
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 "tree-inline.h"
26
27 /* Definitions of language hooks.  */
28
29 treeopt_walk_subtrees_type *lang_walk_subtrees;
30 treeopt_cannot_inline_tree_fn_type *lang_cannot_inline_tree_fn;
31 treeopt_disregard_inline_limits_type *lang_disregard_inline_limits;
32 treeopt_add_pending_fn_decls_type *lang_add_pending_fn_decls;
33 treeopt_tree_chain_matters_p_type *lang_tree_chain_matters_p;
34 treeopt_auto_var_in_fn_p_type *lang_auto_var_in_fn_p;
35 treeopt_copy_res_decl_for_inlining_type *lang_copy_res_decl_for_inlining;
36 treeopt_anon_aggr_type_p *lang_anon_aggr_type_p;
37
38 /* 0 if we should not perform inlining.
39    1 if we should expand functions calls inline at the tree level.  
40    2 if we should consider *all* functions to be inline 
41    candidates.  */
42
43 int flag_inline_trees = 0;