aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-10-05 02:49:16 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-10-05 02:49:16 +0000
commit588d3ade1368851d1f6a239bcc7a76539ae13649 (patch)
tree2f6c9d765b33ae23a613a61116ed9e165f3ee6d9 /gcc/integrate.h
parent25af8512559873d4b6e67d27a07f504a585b6037 (diff)
downloadgcc-588d3ade1368851d1f6a239bcc7a76539ae13649.zip
gcc-588d3ade1368851d1f6a239bcc7a76539ae13649.tar.gz
gcc-588d3ade1368851d1f6a239bcc7a76539ae13649.tar.bz2
Makefile.in (OBJS): Added tree-inline.o.
* Makefile.in (OBJS): Added tree-inline.o. (c-common.o): Depend on tree-inline.h. (tree-inline.o): New target. * c-common.c: Include tree-inline.h. (c_mark_lang_decl): Don't mark saved_tree. (c_common_lang_init): Set lang_anon_aggr_type_p. * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h. (struct c_lang_decl): Moved saved_tree to tree_decl. * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs. * integrate.h (function_attribute_inlinable_p): Declare it. * integrate.c (function_attribute_inlinable_p): Export it. * tree-inline.c: New file. Define variables declared in... * tree-inline.h: New file. Declare functions to be moved to tree-inline.c. Define macros and declare types and hooks for language-specific tree inlining. (flag_inline_trees): Moved definition from cp/decl2.c. * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h. (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h. (struct tree_decl): Moved saved_tree from c_lang_decl and inlined_fns from C++'s lang_decl. From-SVN: r46021
Diffstat (limited to 'gcc/integrate.h')
-rw-r--r--gcc/integrate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/integrate.h b/gcc/integrate.h
index c88e2cd..888a8b4 100644
--- a/gcc/integrate.h
+++ b/gcc/integrate.h
@@ -152,6 +152,11 @@ extern union tree_node *copy_decl_for_inlining PARAMS ((union tree_node *,
union tree_node *,
union tree_node *));
+/* Check whether there's any attribute in a function declaration that
+ makes the function uninlinable. Returns false if it finds any,
+ true otherwise. */
+extern bool function_attribute_inlinable_p PARAMS ((union tree_node *));
+
extern void try_constants PARAMS ((rtx, struct inline_remap *));
/* Return the label indicated. */