On Thu, Apr 12, 2007 at 06:58:29PM +0000, Joseph S. Myers wrote: > 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.
Are there any documents/examples for a second variable for flag bits? H.J.