[Bug c++/36369] [4.3/4.4 Regression] may_alias broken with previous uses of non attributed type in some cases

2008-05-29 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-29 13:48 --- For my testcase with the C front-end: ;; *y = *(const long_a *) x-a (insn 7 6 8 t.cc:12 (set (reg:SI 61) (mem:SI (reg/v/f:SI 59 [ x ]) [0 S4 A32])) -1 (nil)) While with the C++ front-end: ;; *y = *(const

[Bug c++/36369] [4.3/4.4 Regression] may_alias broken with previous uses of non attributed type in some cases

2008-05-29 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-05-29 13:54 --- Quick hack that fixes this: --- gcc/alias.c.jj 2008-05-18 22:14:23.0 +0200 +++ gcc/alias.c 2008-05-29 15:47:30.0 +0200 @@ -605,6 +605,8 @@ get_alias_set (tree t) /* Variant qualifiers don't