diff options
author | Richard Guenther <rguenther@suse.de> | 2007-10-19 11:25:55 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-10-19 11:25:55 +0000 |
commit | 1a8076fc5ed412f28e469fecb567dd223070b19d (patch) | |
tree | ff0365f8e88da673e0d9256f770f8b1d474f827b /gcc/tree.c | |
parent | 213ce6f2c0708ec60e77e0b91cbb5b51b824775c (diff) | |
download | gcc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |