Commit d205c8fd by Steven Bosscher Committed by Steven Bosscher

tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS regardless of…

tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS regardless of DECL_LANG_SPECIFIC being present or not.

	* 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.

From-SVN: r84237
parent 41e622a8
2004-07-07 Steven Bosscher <stevenb@suse.de>
* 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.
2004-07-07 Andrew Pinski <apinski@apple.com> 2004-07-07 Andrew Pinski <apinski@apple.com>
* configure: Regenerate with the right autoconf. * configure: Regenerate with the right autoconf.
......
...@@ -1773,6 +1773,7 @@ optimize_inline_calls (tree fn) ...@@ -1773,6 +1773,7 @@ optimize_inline_calls (tree fn)
{ {
inline_data id; inline_data id;
tree prev_fn; tree prev_fn;
tree ifn;
/* There is no point in performing inlining if errors have already /* There is no point in performing inlining if errors have already
occurred -- and we might crash if we try to inline invalid occurred -- and we might crash if we try to inline invalid
...@@ -1811,15 +1812,11 @@ optimize_inline_calls (tree fn) ...@@ -1811,15 +1812,11 @@ optimize_inline_calls (tree fn)
/* Clean up. */ /* Clean up. */
htab_delete (id.tree_pruner); htab_delete (id.tree_pruner);
if (DECL_LANG_SPECIFIC (fn)) ifn = make_tree_vec (VARRAY_ACTIVE_SIZE (id.inlined_fns));
{ if (VARRAY_ACTIVE_SIZE (id.inlined_fns))
tree ifn = make_tree_vec (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));
if (VARRAY_ACTIVE_SIZE (id.inlined_fns)) DECL_INLINED_FNS (fn) = ifn;
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 #ifdef ENABLE_CHECKING
{ {
......
...@@ -1860,12 +1860,6 @@ extern GTY (()) unsigned binfo_lang_slots; ...@@ -1860,12 +1860,6 @@ extern GTY (()) unsigned binfo_lang_slots;
this identifies which built-in operation it is. */ this identifies which built-in operation it is. */
#define DECL_FUNCTION_CODE(NODE) (FUNCTION_DECL_CHECK (NODE)->decl.u1.f) #define DECL_FUNCTION_CODE(NODE) (FUNCTION_DECL_CHECK (NODE)->decl.u1.f)
/* In a FUNCTION_DECL for which DECL_BUILT_IN does not hold, this is
the approximate number of statements in this function. There is
no need for this number to be exact; it is only used in various
heuristics regarding optimization. */
#define DECL_NUM_STMTS(NODE) (FUNCTION_DECL_CHECK (NODE)->decl.u1.i)
/* The DECL_VINDEX is used for FUNCTION_DECLS in two different ways. /* The DECL_VINDEX is used for FUNCTION_DECLS in two different ways.
Before the struct containing the FUNCTION_DECL is laid out, Before the struct containing the FUNCTION_DECL is laid out,
DECL_VINDEX may point to a FUNCTION_DECL in a base class which DECL_VINDEX may point to a FUNCTION_DECL in a base class which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment