diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-27 22:47:47 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-27 22:47:47 +0000 |
commit | a280136ae6cbc3d9e6b814f5a90c5eb5ec18067f (patch) | |
tree | d5a9c18533ff3873d00dd0addf661c1122cbcce5 /gcc/gimplify.c | |
parent | 5c34451e4ee5cafe170fd6f8a844560633d01882 (diff) | |
download | gcc-a280136ae6cbc3d9e6b814f5a90c5eb5ec18067f.tar.gz |
* builtins.c (fold_builtin): Don't generate NOP_EXPR that is going
to be thrown away soon when IGNORE is set.
* tree-ssa-ccp.c (convert_to_gimple_builtin): Add IGNORE argument
indicating when return value shall not be computed.
* gimplify.c (internal_get_tmp_var): Avoid random tree sharing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118091 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 41486f15067..fedc2842229 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -609,7 +609,7 @@ internal_get_tmp_var (tree val, tree *pre_p, tree *post_p, bool is_formal) if (TREE_CODE (TREE_TYPE (t)) == COMPLEX_TYPE) DECL_COMPLEX_GIMPLE_REG_P (t) = 1; - mod = build2 (INIT_EXPR, TREE_TYPE (t), t, val); + mod = build2 (INIT_EXPR, TREE_TYPE (t), t, unshare_expr (val)); if (EXPR_HAS_LOCATION (val)) SET_EXPR_LOCUS (mod, EXPR_LOCUS (val)); |