Uninitialized variables & Bounds runtime checking

Ian Lance Taylor iant@google.com
Wed Oct 6 13:21:00 GMT 2010


Miguel Angel <miguelangel@ajo.es> writes:

>    I've been searching about possible *run-time* checks that can be
> used with GCC, and
> after a little bit of investigation I discovered about -fbounds-check,
> but no others...

There is -fmudflap.

>   -fbounds-check only apply to Fortran compiles or they work on C/C++ too?

The -fbounds-check option is not supported by the C/C++ frontends.

>    does exist some kind of flag for testing on unitialized variables
> (during runtime), in my case
> some problems arise when somebody leaves an unintialized C++ class attribute.

Not to my knowledge.

Ian



More information about the Gcc-help mailing list