+2006-08-04 Jan Hubicka <jh@suse.cz>
+
+ PR tree-optimization/24888
+ * tree-inline.c (expand_call_inline): Do not re-record variables.
+ (declare_inline_vars): Add variable to unexpanded_var_list.
+
2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Roger Sayle <roger@eyesopen.com>
/* Update callgraph if needed. */
cgraph_remove_node (cg_edge->callee);
- /* Declare the 'auto' variables added with this inlined body. */
- record_vars (BLOCK_VARS (id->block));
id->block = NULL_TREE;
successfully_inlined = TRUE;
{
tree t;
for (t = vars; t; t = TREE_CHAIN (t))
- DECL_SEEN_IN_BIND_EXPR_P (t) = 1;
+ {
+ DECL_SEEN_IN_BIND_EXPR_P (t) = 1;
+ gcc_assert (!TREE_STATIC (t) && !TREE_ASM_WRITTEN (t));
+ cfun->unexpanded_var_list =
+ tree_cons (NULL_TREE, t,
+ cfun->unexpanded_var_list);
+ }
if (block)
BLOCK_VARS (block) = chainon (BLOCK_VARS (block), vars);