[Bug ada/49608] New: Ada option handling kludges
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 1 15:32:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49608
Summary: Ada option handling kludges
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jsm28@gcc.gnu.org
The Ada front end has some option-handling kludges in ada/gcc-interface/misc.c
that should be implemented in a cleaner way:
* gnat_init_options reconstitutes a save_argv array for back_end.adb; it should
pass logical options in some form rather than back_end.adb reparsing textual
options.
* gnat_post_options initializes variables optimize, optimize_size,
flag_compare_debug and flag_stack_check, using #undef on the macro definitions
first, because the Ada code expects to access C variables under those names but
the generic compiler now puts them in global_options. Ada should have its own
names for these settings, not conflicting with the C macros, so the #undef hack
isn't needed.
More information about the Gcc-bugs
mailing list