diff options
author | Jan Hubicka <jh@suse.cz> | 2006-10-28 00:47:47 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2006-10-27 22:47:47 +0000 |
commit | 2e929cf3b29165076c9ed3d83aed1f4d641cab36 (patch) | |
tree | d5a9c18533ff3873d00dd0addf661c1122cbcce5 /gcc/builtins.c | |
parent | cfe1b18f45699de86d625e28ccb4725a46eaae4e (diff) | |
download | gcc-2e929cf3b29165076c9ed3d83aed1f4d641cab36.zip gcc-2e929cf3b29165076c9ed3d83aed1f4d641cab36.tar.gz gcc-2e929cf3b29165076c9ed3d83aed1f4d641cab36.tar.bz2 |
builtins.c (fold_builtin): Don't generate NOP_EXPR that is going to be thrown away soon when IGNORE is set.
* 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.
From-SVN: r118091
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 694185d..fec89cc 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -9273,7 +9273,7 @@ tree fold_builtin (tree fndecl, tree arglist, bool ignore) { tree exp = fold_builtin_1 (fndecl, arglist, ignore); - if (exp) + if (exp && !ignore) { exp = build1 (NOP_EXPR, TREE_TYPE (exp), exp); TREE_NO_WARNING (exp) = 1; |