aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
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/ada
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/ada')
-rw-r--r--gcc/ada/ChangeLog6
-rw-r--r--gcc/ada/gcc-interface/misc.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 03f2d68..c747696 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-01 Joseph Myers <joseph@codesourcery.com>
+
+ * 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.
+
2010-11-27 Eric Botcazou <ebotcazou@adacore.com>
PR ada/46574
diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c
index ed66f8b9..360ebab 100644
--- a/gcc/ada/gcc-interface/misc.c
+++ b/gcc/ada/gcc-interface/misc.c
@@ -221,8 +221,12 @@ gnat_init_options (unsigned int decoded_options_count,
of the global_options structure. */
#undef optimize
#undef optimize_size
+#undef flag_compare_debug
+#undef flag_stack_check
int optimize;
int optimize_size;
+int flag_compare_debug;
+enum stack_check_type flag_stack_check = NO_STACK_CHECK;
/* Post-switch processing. */
@@ -252,6 +256,8 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED)
optimize = global_options.x_optimize;
optimize_size = global_options.x_optimize_size;
+ flag_compare_debug = global_options.x_flag_compare_debug;
+ flag_stack_check = global_options.x_flag_stack_check;
return false;
}