aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-02-07 15:36:44 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-02-07 15:36:44 +0000
commit328654cc923fb727e7a1a3b67d3738b1e30af711 (patch)
treea8bd80acafbee89a8f05d4a9fe4a1c34e3452fcf /gcc/gimplify.c
parent774b9d213ac7f52fd74f3aca414775356fb6770c (diff)
downloadgcc-328654cc923fb727e7a1a3b67d3738b1e30af711.zip
gcc-328654cc923fb727e7a1a3b67d3738b1e30af711.tar.gz
gcc-328654cc923fb727e7a1a3b67d3738b1e30af711.tar.bz2
re PR c++/26140 (ice on valid C++ code)
2006-02-07 Richard Guenther <rguenther@suse.de> PR c++/26140 Revert 2006-01-30 Richard Guenther <rguenther@suse.de> PR c++/23372 * gimplify.c (gimplify_target_expr): Handle easy cases without creating a temporary. Revert 2006-01-30 Richard Guenther <rguenther@suse.de> PR c++/23372 * gcc.dg/pr23372-1.C: New testcase. * g++.dg/tree-ssa/pr26140.C: New testcase. From-SVN: r110699
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index f64b1cb..8f95127 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -4056,15 +4056,6 @@ gimplify_target_expr (tree *expr_p, tree *pre_p, tree *post_p)
if (init)
{
- /* Try to avoid the temporary if possible. */
- if (TREE_CODE (init) == INDIRECT_REF
- && !TREE_SIDE_EFFECTS (init)
- && !TARGET_EXPR_CLEANUP (targ))
- {
- *expr_p = init;
- return GS_OK;
- }
-
/* TARGET_EXPR temps aren't part of the enclosing block, so add it
to the temps list. */
gimple_add_tmp_var (temp);