aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-11-26 06:24:54 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-11-26 06:24:54 +0000
commit3c8da8a5e064ffaea9f97a118844f0ace157ab81 (patch)
tree9f3970e56f7699f3fe29ddd7cc3e98c94ed238ca /gcc/tree-inline.c
parent573b3837c6c60c904934b16dea1c9679005b68f6 (diff)
downloadgcc-3c8da8a5e064ffaea9f97a118844f0ace157ab81.zip
gcc-3c8da8a5e064ffaea9f97a118844f0ace157ab81.tar.gz
gcc-3c8da8a5e064ffaea9f97a118844f0ace157ab81.tar.bz2
tree-ssa-live.c (remove_unused_scope_block_p): Drop declarations and blocks only after inlining.
* 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. From-SVN: r130424
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index cb161db..e7fba91 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))