aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-12-31 00:34:28 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2008-12-31 00:34:28 +0100
commit03375368aeef4d02b5b987cd83175cfcfb925e12 (patch)
treeef224dc8658616e2502002396260db31312b7fa6 /gcc/tree-ssa.c
parente878958850e9cc65d91372d241c5c65637a6d98b (diff)
downloadgcc-03375368aeef4d02b5b987cd83175cfcfb925e12.zip
gcc-03375368aeef4d02b5b987cd83175cfcfb925e12.tar.gz
gcc-03375368aeef4d02b5b987cd83175cfcfb925e12.tar.bz2
re PR middle-end/38505 (Revision 142061 caused ICE on __builtin_memcpy)
PR middle-end/38505 * tree-ssa-ccp.c (may_propagate_address_into_dereference): Return false if ADDR's operand has incomplete type. Revert: 2008-12-15 Jakub Jelinek <jakub@redhat.com> PR middle-end/38505 * tree-ssa.c (useless_type_conversion_p_1): Return false if inner_type is incomplete and outer_type is complete. From-SVN: r142972
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index ce0f1e4..935cad6 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1188,11 +1188,6 @@ useless_type_conversion_p_1 (tree outer_type, tree inner_type)
if (TREE_CODE (inner_type) != TREE_CODE (outer_type))
return false;
- /* Conversion from an incomplete to a complete type is never
- useless. */
- if (!COMPLETE_TYPE_P (inner_type) && COMPLETE_TYPE_P (outer_type))
- return false;
-
/* ??? This seems to be necessary even for aggregates that don't
have TYPE_STRUCTURAL_EQUALITY_P set. */