Makes sense to me.
On Sat, Jul 16, 2011 at 09:23:41PM -0400, Ted Unangst wrote: > We have disabled the -fstrict-overflow option by default. > > Index: gcc-local.1 > =================================================================== > RCS file: /home/tedu/cvs/src/share/man/man1/gcc-local.1,v > retrieving revision 1.23 > diff -u -p -r1.23 gcc-local.1 > --- gcc-local.1 2 Jun 2011 21:39:10 -0000 1.23 > +++ gcc-local.1 17 Jul 2011 01:22:11 -0000 > @@ -80,6 +80,15 @@ as this option causes issues on some leg > is very unsafe with code that plays tricks with casts, bypassing the > already weak type system of C. > .It > +The > +.Fl O2 > +option does not include > +.Fl fstrict-overflow , > +as this option causes issues on some legacy code. > +.Fl fstrict-overflow > +can cause surprising optimizations to occur, possibly deleting security > +critical overflow checks. > +.It > The option > .Fl fno-builtin-<function> > was backported from