This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36369] [4.3/4.4 Regression] may_alias broken with previous uses of non attributed type in some cases
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2008 14:17:12 -0000
- Subject: [Bug middle-end/36369] [4.3/4.4 Regression] may_alias broken with previous uses of non attributed type in some cases
- References: <bug-36369-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from rguenth at gcc dot gnu dot org 2008-06-11 14:17 -------
The warning happens also with the pointer being ref-all as the alias warning
code asks for the alias set of the pointed-to type. Thus it probably makes
sense to give that alias-set zero as well (or rather special-case the alias
check, as tree-ssa-alias.c:may_alias_p does).
I have a patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36369