On Thu, 12 Apr 2007, H. J. Lu wrote:

> > You can specify Var together with Mask in .opt files; that allows you to 
> > create a second variable for flag bits as a smaller patch for now.
> > 
> 
> How will it work with
> 
>    /* Turn on SSSE3 builtins for -msse4.1.  */
>   if (TARGET_SSE4_1)
>     target_flags |= MASK_SSSE3;
>  
> One will need to know which variable the mask is used for.

Yes.  You could make opt*.awk generate macros such as TARGET_ENABLE_SSSE3 
that would do the appropriate bit-masking operations on the right 
variables automatically.  If existing code were made to use such macros 
incrementally, this would also allow a much smaller patch to be used for 
any subsequent change to use bit-fields.

-- 
Joseph S. Myers
[EMAIL PROTECTED]

Reply via email to