On Wed, 30 Oct 2013, David Malcolm wrote:
> My idea is to introduce a GCC_OPTION macro, and replace the above with:
>
> static bool
> gate_vrp (void)
> {
> return GCC_OPTION (flag_tree_vrp) != 0;
> }
That's only slightly shorter than the full expansion using global_options;
I'd prefer using the full expansion.
(Of course the ideal is to use explicit options pointers instead of
global_options. For example, if such a pointer were associated with the
current function, it might make function-specific options handling a bit
less fragile.)
--
Joseph S. Myers
[email protected]