diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-09-30 18:44:28 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-09-30 18:44:28 +0100 |
commit | 51be162e8ebb3b173c7f93c7719a7bc6192cbc42 (patch) | |
tree | ebba6265eb012de6f108537e05798e2c2f24c66f /gcc | |
parent | 92902b1bafff14a118ef08dc323dfdc12b2a63ae (diff) | |
download | gcc-51be162e8ebb3b173c7f93c7719a7bc6192cbc42.zip gcc-51be162e8ebb3b173c7f93c7719a7bc6192cbc42.tar.gz gcc-51be162e8ebb3b173c7f93c7719a7bc6192cbc42.tar.bz2 |
misc.c (optimize, [...]): Undefine as macros and define as variables.
* gcc-interface/misc.c (optimize, optimize_size): Undefine as
macros and define as variables.
(gnat_post_options): Set optimize and optimize_size variables.
From-SVN: r164755
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/misc.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 52be3a9..36389f4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2010-09-30 Joseph Myers <joseph@codesourcery.com> + + * gcc-interface/misc.c (optimize, optimize_size): Undefine as + macros and define as variables. + (gnat_post_options): Set optimize and optimize_size variables. + 2010-09-28 Joel Sherrill <joel.sherrill@oarcorp.com> * g-socket.adb: Move pragma to disable warnings in case diff --git a/gcc/ada/gcc-interface/misc.c b/gcc/ada/gcc-interface/misc.c index 1819977..a991fba 100644 --- a/gcc/ada/gcc-interface/misc.c +++ b/gcc/ada/gcc-interface/misc.c @@ -303,6 +303,13 @@ gnat_init_options (unsigned int decoded_options_count, flag_zero_initialized_in_bss = 0; } +/* Ada code requires variables for these settings rather than elements + of the global_options structure. */ +#undef optimize +#undef optimize_size +int optimize; +int optimize_size; + /* Post-switch processing. */ static bool @@ -334,6 +341,9 @@ gnat_post_options (const char **pfilename ATTRIBUTE_UNUSED) if (write_symbols == DWARF2_DEBUG) use_gnu_debug_info_extensions = gnat_dwarf_extensions > 0; + optimize = global_options.x_optimize; + optimize_size = global_options.x_optimize_size; + return false; } |