diff options
author | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 01:25:01 +0000 |
---|---|---|
committer | gkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-16 01:25:01 +0000 |
commit | 5e57d7a8002420515f888c8ac1732e9401cd8290 (patch) | |
tree | 2409137ecdec41f774cd2f423cc4ae796502a936 /gcc/flags.h | |
parent | eeda353fa421790d2db48600043d5a3263e69bda (diff) | |
download | gcc-5e57d7a8002420515f888c8ac1732e9401cd8290.tar.gz |
* flags.h (flag_bounds_check, flag_bounded_pointers): New extern decls.
* toplev.c (flag_bounds_check, flag_bounded_pointers): New flags.
(f_options): Add "bounded-pointers" and "bounds-check" entries.
* c-lang.c (lang_init_options): Set flag_bounds_check as "unspecified".
(lang_init): Set default for flag_bounds_check if still "unspecified".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30035 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index 52914730297..e8a66bfd2a0 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -476,6 +476,21 @@ extern int flag_instrument_function_entry_exit; /* Perform a peephole pass before sched2. */ extern int flag_peephole2; + +/* -fbounded-pointers causes gcc to compile pointers as composite + objects occupying three words: the pointer value, the base address + of the referent object, and the address immediately beyond the end + of the referent object. The base and extent allow us to perform + runtime bounds checking. -fbounded-pointers implies -fcheck-bounds. */ +extern int flag_bounded_pointers; + +/* -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; /* Other basic status info about current function. */ |