]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
authorRichard Guenther <rguenther@suse.de>
Fri, 10 Sep 2010 13:44:07 +0000 (13:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Sep 2010 13:44:07 +0000 (13:44 +0000)
commit8c4353b7c50bc8855a0abdd9d9514477de715a33
tree95b9637b447d189f3b6b054784820287a5fe2aa4
parenta7c764a96ca48293b863196a073eb119453e1a3b
tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.

2010-09-10  Richard Guenther  <rguenther@suse.de>

* tree.c (type_hash_eq): For ARRAY_TYPEs also compare
TYPE_SIZE.
(build_index_type): Implement in terms of build_range_type.
(build_range_type): Do not allow NULL_TREE type, improve
hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
if we didn't hash.
* c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
create a distinct copy of the type.

From-SVN: r164174
gcc/ChangeLog
gcc/c-decl.c
gcc/tree.c