From 328654cc923fb727e7a1a3b67d3738b1e30af711 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 7 Feb 2006 15:36:44 +0000 Subject: re PR c++/26140 (ice on valid C++ code) 2006-02-07 Richard Guenther PR c++/26140 Revert 2006-01-30 Richard Guenther PR c++/23372 * gimplify.c (gimplify_target_expr): Handle easy cases without creating a temporary. Revert 2006-01-30 Richard Guenther PR c++/23372 * gcc.dg/pr23372-1.C: New testcase. * g++.dg/tree-ssa/pr26140.C: New testcase. From-SVN: r110699 --- gcc/gimplify.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/gimplify.c') 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); -- cgit v1.1