This is the mail archive of the gcc@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]

Re: aliasing warnings [patch]


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

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