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: [RFA:] Fix g++.law/bit-fields2.C for mmix-knuth-mmixware


On Mon, Mar 25, 2002 at 03:05:20PM -0800, Richard Henderson wrote:
> On Mon, Mar 25, 2002 at 06:38:23AM -0500, Hans-Peter Nilsson wrote:
> > 	* g++.old-deja/g++.law/bit-fields2.C: Check against
> >  	sizeof (void *), not sizeof (unsigned int).
> 
> Try
> 
>   typedef int word __attribute__((__mode__(word)));
> 
> and use that instead.

Actually, even that doesn't work, since we'd just exchange
the set of failures for those systems that _do_ define
bitfield_type_matters.

Yer screwed.  You can play games with typedefs and target
specific ifdefs up at the top of the file if you like, but
there is no generic one-size-fits-all answer.


r~


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