This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Pre-Patch RFC: proposed changes to option-lookup


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
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]