From ab3728ee2629f19f7fbcbc950cc4d3a8f7d94740 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Wed, 1 Dec 2010 13:58:52 +0000 Subject: * common.opt (flag_stack_check): New Variable entry. (fcompare-debug-second): Use Var. * flags.h (flag_compare_debug, flag_stack_check): Remove. * opts.c (flag_compare_debug): Remove. (common_handle_option): Don't handle OPT_fcompare_debug_second. Set opts->x_flag_stack_check for OPT_fstack_check_. * toplev.c (flag_stack_check): Remove. ada: * gcc-interface/misc.c (flag_compare_debug, flag_stack_check): Undefine as macros then define as variables. (gnat_post_options): Set variables from global_options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167331 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/opts.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index 8174d156f77..281aab65752 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -35,11 +35,6 @@ along with GCC; see the file COPYING3. If not see #include "insn-attr.h" /* For INSN_SCHEDULING and DELAY_SLOTS. */ #include "target.h" -/* Run the second compilation of -fcompare-debug. Not defined using - Var in common.opt because this is used in Ada code and so must be - an actual variable not a macro. */ -int flag_compare_debug; - /* Parse the -femit-struct-debug-detailed option value and set the flag variables. */ @@ -1447,10 +1442,6 @@ common_handle_option (struct gcc_options *opts, /* Deferred. */ break; - case OPT_fcompare_debug_second: - flag_compare_debug = value; - break; - case OPT_fdbg_cnt_: case OPT_fdbg_cnt_list: /* Deferred. */ @@ -1602,15 +1593,15 @@ common_handle_option (struct gcc_options *opts, case OPT_fstack_check_: if (!strcmp (arg, "no")) - flag_stack_check = NO_STACK_CHECK; + opts->x_flag_stack_check = NO_STACK_CHECK; else if (!strcmp (arg, "generic")) /* This is the old stack checking method. */ - flag_stack_check = STACK_CHECK_BUILTIN + opts->x_flag_stack_check = STACK_CHECK_BUILTIN ? FULL_BUILTIN_STACK_CHECK : GENERIC_STACK_CHECK; else if (!strcmp (arg, "specific")) /* This is the new stack checking method. */ - flag_stack_check = STACK_CHECK_BUILTIN + opts->x_flag_stack_check = STACK_CHECK_BUILTIN ? FULL_BUILTIN_STACK_CHECK : STACK_CHECK_STATIC_BUILTIN ? STATIC_BUILTIN_STACK_CHECK -- cgit v1.2.1