This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C PATCH]: Additional alias warning


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]