This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: aliasing warnings [patch]
- To: Zack Weinberg <zack AT bitmover dot com>
- Subject: Re: aliasing warnings [patch]
- From: David Starner <dvdeug AT x8b4e53cd.dhcp.okstate dot edu>
- Date: Thu, 16 Sep 1999 11:48:36 -0500
- Cc: egcs AT egcs.cygnus dot com
- References: <199909161637.JAA15001@zack.bitmover.com>
- Reply-To: dstarner98 AT aasaa.ofe dot org
On Thu, Sep 16, 1999 at 09:37:29AM -0700, Zack Weinberg wrote:
>
> The appended patch causes warnings to be generated, in
> -fstrict-aliasing mode, when a pointer is cast to a type outside its
> alias set. char * and void * are excepted, as are casts from T to
> union containing T; the latter is warned about anyway with -pedantic.
Is this patch (or another aliasing warning) going to be in GCC 2.95.n
(for some n >= 2)? If not, it seems like everyone's going to have to deal
with this the hard way (either adding -fno-strict-aliasing or finding the
bugs by hand.)
Did gcc have these backward compatibilty problems before 2.7.2? gcc 2.7.2
seems to be the one true compiler for so many people, since later versions
broke so much stuff that seemed to work with gcc 2.7.2.
David Starner - dstarner98@aasaa.ofe.org