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]: Add -Wstrict-aliasing


Fergus Henderson wrote:
> 
> On 07-Oct-2002, Nathan Sidwell <nathan@codesourcery.com> wrote:
> > this adds a -Wstrict-aliasing warning, which is included in -Wall.
> 
> I note that if you compile with "-fno-strict-aliasing -Wstrict-aliasing",
> these warnings won't be enabled.  That seems a bit unintuitive, and
> contradicts the documentation.  Also it makes it impossible to enable
oops, I seem to have deleted the sentance I wrote about that.

> the warnings about these situations without also enabling the optimization.
yes, whilst I understand your wish, this check asks the aliasing
machinery 'do these types alias'. Naturally, with no-strict-aliasing,
they always will.

nathan

-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
           The voices in my head told me to say this
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


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