This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: i386 is running out target mask bits
On Thu, Apr 12, 2007 at 06:41:06PM +0000, Joseph S. Myers wrote:
> On Thu, 12 Apr 2007, H. J. Lu wrote:
>
> > I am working SSE4.1/4.2 support. I need to add -msse4.1, -msse4.2
> > and -msse4. But i386 is running out target mask bits. I got
> >
> > ./options.h:368:2: error: #error too many target masks
> >
> > Does anyone have suggestions to resolve this? Why not use structure
> > of bitfields instead of int for target_flags?
>
> You'd need to change everything that uses MASK_FOO|MASK_BAR.
I don't mind the size of the change as long as it is the right thing
to do for now and future.
>
> 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.
H.J.