From 3922bea3f5457e181df1eccf75fa82785ca3ff2c Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 17 Feb 2010 22:51:51 +0000 Subject: 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 --- gcc/cp/cp-gimplify.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/cp/cp-gimplify.c') 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; -- cgit v1.2.1