PATCH for bounds-checking flags.
Greg McGary
gkm@eng.ascend.com
Sun Oct 31 23:33:00 GMT 1999
Jeffrey A Law <law@cygnus.com> writes:
> > +/* -fcheck-bounds causes gcc to generate array bounds checks.
> > + For C, C++: defaults to value of flag_bounded_pointers.
> > + For ObjC: defaults to off.
> > + For Java: defaults to on.
> > + For Fortran: defaults to off.
> > + For CHILL: defaults to off. */
> > +extern int flag_bounds_check;
> I'd ping the Java folks before turning it on. Even if it's part of the
> language, they may want to give the implementation a little time to mature
> before they turn it on by default.
I'm only preserving existing behavior. Java already has it "on" by
default. Alexandre Petit-Bianco already sent me a message that Java
changes were OK.
> Otherwise it looks fine. Consider it approved once you fix up the minor
> issues above.
Thanks!
More information about the Gcc-patches
mailing list