From 69365e54df4e8748a0412a5526495669fea631a4 Mon Sep 17 00:00:00 2001 From: gkm Date: Sat, 16 Oct 1999 01:27:32 +0000 Subject: [PATCH] * lex.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@30038 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/lex.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7cedc4a..8163828 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-10-15 Greg McGary + + * 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 * class.c (finish_struct_1): Force alignment of non-bitfields to diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index b65c033..474e305 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -452,11 +452,17 @@ lang_init_options () /* Default exceptions on. */ flag_exceptions = 1; + /* Mark as "unspecified". */ + flag_bounds_check = -1; } void 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 # */ /* With luck, we discover the real source file's name from that and put it in input_filename. */ -- 2.7.4