summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 22:03:43 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 22:03:43 +0000
commit8c2d8047939a72c2766989802904aba08a3b380a (patch)
treead46e21568bae02ac2dd247af4e225655ffa12cd /gcc/tree-inline.c
parent6b858cc5690bbd98005c163fb287e343888d610e (diff)
downloadgcc-8c2d8047939a72c2766989802904aba08a3b380a.tar.gz
* tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
regardless of DECL_LANG_SPECIFIC being present or not. * tree.h (DECL_NUM_STMTS): Purge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84237 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 2172f33203b..7387076d677 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1773,6 +1773,7 @@ optimize_inline_calls (tree fn)
{
inline_data id;
tree prev_fn;
+ tree ifn;
/* There is no point in performing inlining if errors have already
occurred -- and we might crash if we try to inline invalid
@@ -1811,15 +1812,11 @@ optimize_inline_calls (tree fn)
/* Clean up. */
htab_delete (id.tree_pruner);
- if (DECL_LANG_SPECIFIC (fn))
- {
- tree ifn = make_tree_vec (VARRAY_ACTIVE_SIZE (id.inlined_fns));
-
- if (VARRAY_ACTIVE_SIZE (id.inlined_fns))
- memcpy (&TREE_VEC_ELT (ifn, 0), &VARRAY_TREE (id.inlined_fns, 0),
- VARRAY_ACTIVE_SIZE (id.inlined_fns) * sizeof (tree));
- DECL_INLINED_FNS (fn) = ifn;
- }
+ ifn = make_tree_vec (VARRAY_ACTIVE_SIZE (id.inlined_fns));
+ if (VARRAY_ACTIVE_SIZE (id.inlined_fns))
+ memcpy (&TREE_VEC_ELT (ifn, 0), &VARRAY_TREE (id.inlined_fns, 0),
+ VARRAY_ACTIVE_SIZE (id.inlined_fns) * sizeof (tree));
+ DECL_INLINED_FNS (fn) = ifn;
#ifdef ENABLE_CHECKING
{