Re: -Wstrict-aliasing=2 does not warn about all problems

2005-07-28 Thread Ian Lance Taylor
James E Wilson <[EMAIL PROTECTED]> writes: > Ian Lance Taylor wrote: > > -Wstrict-aliasing=2. It warns about more possible problems than > > -Wstrict-aliasing, but it does not warn about all possible problems. > > This is the important point that I was trying to get across, though I > do see tha

Re: -Wstrict-aliasing=2 does not warn about all problems

2005-07-28 Thread James E Wilson
Ian Lance Taylor wrote: -Wstrict-aliasing=2. It warns about more possible problems than -Wstrict-aliasing, but it does not warn about all possible problems. This is the important point that I was trying to get across, though I do see that using "all" can be misconstrued here. How about somet

-Wstrict-aliasing=2 does not warn about all problems

2005-07-27 Thread Ian Lance Taylor
Hi Jim, the documentation for -Wstrict-aliasing=2 says: It warns about all code which might break the strict aliasing rules that the compiler is using for optimization. This warning catches all cases, but it will also give a warning for some ambiguous cases that are safe. However