This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C PATCH]: Additional alias warning
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 9 Jun 2005 11:00:37 +0000 (UTC)
- Subject: Re: [C PATCH]: Additional alias warning
- References: <42A7F59C.6070407@codesourcery.com>
On Thu, 9 Jun 2005, Nathan Sidwell wrote:
> Hi,
> a customer complained that -Wstrict-aliasing did not warn about
> (T *)&obj->member
> when T and obj->member are in different alias sets.
>
> That does seem like a sensible thing to warn about, and the attached patch
> augments the existing code. I reorded the checks to early out when the
> warning is not requested.
>
> booted & tested on i686-pc-linux-gnu, ok?
OK. Yet another case where we don't want but could is bug 18426.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)