This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: Warn about pointer wraparound with -Wstrict-overflow
- From: Ian Lance Taylor <iant at google dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 08 Apr 2008 11:49:43 -0700
- Subject: Re: PATCH RFC: Warn about pointer wraparound with -Wstrict-overflow
- References: <m31w5hz9mc.fsf@google.com> <47FBBD7E.2040607@codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
> * I think Richard's right that this is a new feature for 4.2, which
> means we would have to bend the rules to put it in. But, the patch
> seems very safe by its construction, since flag_strict_overflow is
> usually false. So, I think it should be in 4.2. Jakub, Joseph, what
> say you?
Note that flag_strict_overflow defaults to true when using -O2.
Ian