PATCH RFC: Warn about pointer wraparound with -Wstrict-overflow

Ian Lance Taylor iant@google.com
Tue Apr 8 19:01:00 GMT 2008


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



More information about the Gcc-patches mailing list