re PR middle-end/33816 (gimplification before build_array_type re-set alias set of...
commit36784d0e879801c081910ea958839797f5f9bb48
authorRichard Guenther <rguenther@suse.de>
Fri, 19 Oct 2007 15:36:05 +0000 (19 15:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 19 Oct 2007 15:36:05 +0000 (19 15:36 +0000)
tree9af82af05ff6db994ce02d04b87bc63d05a986ad
parent77aadb572826ca8b23ea61ab6ce186f9af1cbe08
re PR middle-end/33816 (gimplification before build_array_type re-set alias set of arrays to zero)

2007-10-19  Richard Guenther  <rguenther@suse.de>

PR middle-end/33816
PR middle-end/32921
* stor-layout.c (layout_type): Assert that aggregates do not
have their alias sets set.
* alias.c (get_alias_set): Return alias set zero for incomplete
types, return the alias set of the element for incomplete array
types, but do not remember these.

* gfortran.dg/pr32921.f: New testcase.

From-SVN: r129491
gcc/ChangeLog
gcc/alias.c
gcc/stor-layout.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr32921.f [new file with mode: 0644]