diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-06-01 20:49:18 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-06-01 20:49:18 +0000 |
commit | e6a54b01852b536ce67c8a6639adc455f36f3891 (patch) | |
tree | 83d3f1184dd0b41ae0e5c786c8add2d6cfd17d07 /gcc/gimplify.c | |
parent | 418dd5cefef6cd8d80de3997a0590503d653bc04 (diff) | |
download | gcc-e6a54b01852b536ce67c8a6639adc455f36f3891.zip gcc-e6a54b01852b536ce67c8a6639adc455f36f3891.tar.gz gcc-e6a54b01852b536ce67c8a6639adc455f36f3891.tar.bz2 |
gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
* gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
* cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
the LHS of a no-return call if its type has variable size.
* tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
* tree-cfg.c (verify_gimple_call): Accept these no-return calls.
From-SVN: r223997
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 2720d02..58a60bf 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -4341,7 +4341,8 @@ gimplify_modify_expr_rhs (tree *expr_p, tree *from_p, tree *to_p, /* It's OK to use the target directly if it's being initialized. */ use_target = true; - else if (variably_modified_type_p (TREE_TYPE (*to_p), NULL_TREE)) + else if (TREE_CODE (TYPE_SIZE_UNIT (TREE_TYPE (*to_p))) + != INTEGER_CST) /* Always use the target and thus RSO for variable-sized types. GIMPLE cannot deal with a variable-sized assignment embedded in a call statement. */ |