aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-10-19 11:25:55 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-10-19 11:25:55 +0000
commit1a8076fc5ed412f28e469fecb567dd223070b19d (patch)
treeff0365f8e88da673e0d9256f770f8b1d474f827b /gcc/tree.c
parent213ce6f2c0708ec60e77e0b91cbb5b51b824775c (diff)
downloadgcc-1a8076fc5ed412f28e469fecb567dd223070b19d.zip
gcc-1a8076fc5ed412f28e469fecb567dd223070b19d.tar.gz
gcc-1a8076fc5ed412f28e469fecb567dd223070b19d.tar.bz2
re PR tree-optimization/32921 (Revision 126326 causes 12% slowdown)
2007-10-19 Richard Guenther <rguenther@suse.de> PR middle-end/32921 * tree.c (build_array_type): Do not re-layout unbound array types. * gfortran.dg/pr32921.f: New testcase. From-SVN: r129484
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 88ec29e..3cfa55d 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5665,7 +5665,7 @@ build_array_type (tree elt_type, tree index_type)
hashcode = iterative_hash_object (TYPE_HASH (index_type), hashcode);
t = type_hash_canon (hashcode, t);
- if (!COMPLETE_TYPE_P (t))
+ if (!COMPLETE_OR_UNBOUND_ARRAY_TYPE_P (t))
layout_type (t);
if (TYPE_CANONICAL (t) == t)