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: Patch for PR21969 (large vector causes ICE)


> Steve Ellcey <sje@cup.hp.com> wrote:
> 
> > +   /* nunits is stored in precision field which is "unsigned int : 9",
> > +      256 is the largest value that can be stored.  */
> > +   if (nunits > 256)
> > +     {
> > +       error ("number of components of the vector greater than 256");
> > +       return NULL_TREE;
> > +     }
> > +
> 
> Can we keep this in sync with the bitfield, using a macro?
> -- 
> Giovanni Bajo

I considered that, but I did not see any examples of using a macro for
the size of a integer bitfield anywhere in GCC and I didn't want to be
the first.

Steve Ellcey
sje@cup.hp.com


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