Commit 9329983a by Greg McGary Committed by Greg McGary

lex.c (lang_init_options): Set flag_bounds_check as "unspecified".

* lex.c (lang_init_options): Set flag_bounds_check as "unspecified".
(lang_init): Set default for flag_bounds_check if still "unspecified".

From-SVN: r30038
parent 02f06e64
1999-10-15 Greg McGary <gkm@gnu.org>
* lex.c (lang_init_options): Set flag_bounds_check as "unspecified".
(lang_init): Set default for flag_bounds_check if still "unspecified".
1999-10-13 Andrew Haley <aph@cygnus.com> 1999-10-13 Andrew Haley <aph@cygnus.com>
* class.c (finish_struct_1): Force alignment of non-bitfields to * class.c (finish_struct_1): Force alignment of non-bitfields to
......
...@@ -452,11 +452,17 @@ lang_init_options () ...@@ -452,11 +452,17 @@ lang_init_options ()
/* Default exceptions on. */ /* Default exceptions on. */
flag_exceptions = 1; flag_exceptions = 1;
/* Mark as "unspecified". */
flag_bounds_check = -1;
} }
void void
lang_init () lang_init ()
{ {
/* If still "unspecified", make it match -fbounded-pointers. */
if (flag_bounds_check < 0)
flag_bounds_check = flag_bounded_pointers;
/* the beginning of the file is a new line; check for # */ /* the beginning of the file is a new line; check for # */
/* With luck, we discover the real source file's name from that /* With luck, we discover the real source file's name from that
and put it in input_filename. */ and put it in input_filename. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment