aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-04-09 08:07:31 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-04-09 08:07:31 +0000
commit22a65a54cc52c1e2081ef202523cce5505f6d85b (patch)
treec27706ee771d0ae8550beb8fc38fe98f547e8e9a /gcc/tree-cfg.c
parentf76968e6d5ab3ca8bd5b64ba0143197c00f59943 (diff)
downloadgcc-22a65a54cc52c1e2081ef202523cce5505f6d85b.zip
gcc-22a65a54cc52c1e2081ef202523cce5505f6d85b.tar.gz
gcc-22a65a54cc52c1e2081ef202523cce5505f6d85b.tar.bz2
c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC &ARRAY addresses by adjusting their types and...
2009-04-09 Richard Guenther <rguenther@suse.de> * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC &ARRAY addresses by adjusting their types and prepending a conversion. * tree-cfg.c (verify_gimple_assign_single): Verify that addresses are correct. * gcc.dg/vect/vect-54.c: Make constant input data file-scope to prevent constant propagation. * gcc.dg/vect/vect-56.c: Likewise. * gcc.dg/vect/vect-58.c: Likewise. * gcc.dg/vect/vect-60.c: Likewise. * gcc.dg/vect/no-vfa-vect-57.c: Likewise. * gcc.dg/vect/no-vfa-vect-61.c: Likewise. * gcc.dg/tree-prof/stringop-2.c: Adjust expected outcome. From-SVN: r145800
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 07a46df..2255ea1 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3697,11 +3697,8 @@ verify_gimple_assign_single (gimple stmt)
return true;
}
- if (!one_pointer_to_useless_type_conversion_p (lhs_type, TREE_TYPE (op))
- /* FIXME: a longstanding wart, &a == &a[0]. */
- && (TREE_CODE (TREE_TYPE (op)) != ARRAY_TYPE
- || !one_pointer_to_useless_type_conversion_p (lhs_type,
- TREE_TYPE (TREE_TYPE (op)))))
+ if (!one_pointer_to_useless_type_conversion_p (lhs_type,
+ TREE_TYPE (op)))
{
error ("type mismatch in address expression");
debug_generic_stmt (lhs_type);