[PATCH] Fix PR50999, serialize frontend specific flags (-fexceptions)

Joseph S. Myers joseph@codesourcery.com
Tue Nov 8 00:30:00 GMT 2011


On Mon, 7 Nov 2011, Richard Guenther wrote:

> Just looking for a more general solution (but I note that Ada lacks
> some conversion to the new cl_decoded_options facility anyways ...)

Full conversion may be hard because of things done in Ada code not C/C++, 
but it is indeed the case that it would be better to pass something closer 
to decoded options to the Ada code than the present reconstruction in 
gnat_init_options, and the kludges involving

#undef optimize
#undef optimize_size
#undef flag_compare_debug
#undef flag_stack_check

should definitely be replaced by naming the Ada versions of those 
variables differently from the C macros (gnat_optimize, for example) so 
there is no need for the #undef or for gnat_post_options to refer to 
global_options.x_* when setting the Ada versions.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list