summaryrefslogtreecommitdiff
path: root/gcc/cp/cp-gimplify.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-17 22:51:51 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-02-17 22:51:51 +0000
commit3922bea3f5457e181df1eccf75fa82785ca3ff2c (patch)
tree2e7d21f1a571171af5e129b32829cd1f539a3818 /gcc/cp/cp-gimplify.c
parent253cc498054d02f859162e04e753e185713a1c5d (diff)
downloadgcc-3922bea3f5457e181df1eccf75fa82785ca3ff2c.tar.gz
PR c++/43075
* call.c (build_over_call): Don't create zero-sized assignments. * cp-gimplify.c (cp_genericize_r): Don't remove them here. * cp-objcp-common.c (cp_expr_size): Remove. * cp-tree.h: Remove prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156842 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-gimplify.c')
-rw-r--r--gcc/cp/cp-gimplify.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c
index df09b60c6dd..533d2d18384 100644
--- a/gcc/cp/cp-gimplify.c
+++ b/gcc/cp/cp-gimplify.c
@@ -884,15 +884,6 @@ cp_genericize_r (tree *stmt_p, int *walk_subtrees, void *data)
*walk_subtrees = 0;
}
- else if (TREE_CODE (stmt) == MODIFY_EXPR
- && (integer_zerop (cp_expr_size (TREE_OPERAND (stmt, 0)))
- || integer_zerop (cp_expr_size (TREE_OPERAND (stmt, 1)))))
- {
- *stmt_p = build2 (COMPOUND_EXPR, TREE_TYPE (stmt),
- TREE_OPERAND (stmt, 0),
- TREE_OPERAND (stmt, 1));
- }
-
pointer_set_insert (p_set, *stmt_p);
return NULL;