diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-26 06:24:54 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-26 06:24:54 +0000 |
commit | 7f481d3edaef50d86fac145324177ab124283196 (patch) | |
tree | 9f3970e56f7699f3fe29ddd7cc3e98c94ed238ca /gcc/tree-inline.c | |
parent | e0f40ead16de7b33aecee5fcdebca730298b5fdc (diff) | |
download | gcc-7f481d3edaef50d86fac145324177ab124283196.tar.gz |
* tree-ssa-live.c (remove_unused_scope_block_p): Drop
declarations and blocks only after inlining. Check that
non-empty blocks are not dropped.
* tree-inline.c (expand_call_inline): Check that functions are
not inlined too late.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130424 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index cb161db8398..e7fba9129eb 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2652,6 +2652,8 @@ expand_call_inline (basic_block bb, tree stmt, tree *tp, void *data) id->src_cfun = DECL_STRUCT_FUNCTION (fn); id->call_expr = t; + gcc_assert (!id->src_cfun->after_inlining); + initialize_inlined_parameters (id, t, fn, bb); if (DECL_INITIAL (fn)) |