aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-12-01 13:58:52 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-12-01 13:58:52 +0000
commit5e471ea65b2d7ee38c8ec991fe8b1ded8766acc2 (patch)
tree22ef034e385c243309503680ac6ccdcaafcc7e75 /gcc/opts.c
parente1208a579981b33f86535e7d1fb42ea843d04737 (diff)
downloadgcc-5e471ea65b2d7ee38c8ec991fe8b1ded8766acc2.zip
gcc-5e471ea65b2d7ee38c8ec991fe8b1ded8766acc2.tar.gz
gcc-5e471ea65b2d7ee38c8ec991fe8b1ded8766acc2.tar.bz2
common.opt (flag_stack_check): New Variable entry.
* 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. From-SVN: r167331
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 8174d15..281aab6 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