cvs commit: src/sys/dev/fxp if_fxpreg.h

Stefan Farfeleder stefan at fafoe.dyndns.org
Sun Apr 6 07:06:21 PDT 2003


On Sun, Apr 06, 2003 at 11:26:06PM +1000, Bruce Evans wrote:
> On Sun, 6 Apr 2003, Stefan Farfeleder wrote:
> 
> > On Sun, Apr 06, 2003 at 02:16:07PM +1000, Bruce Evans wrote:
> > > This gives undefined behaviour and thus produces random code if it is
> > > compiled by a C compiler (unless Bool_t happens to be u_int8_t).  From
> > > n869.txt:
> > >
> > >        [#8]  A  bit-field  shall have a type that is a qualified or
> > >        unqualified version of _Bool, signed int, or  unsigned  int.
> > ...
> > FYI, the final standard says
> >
> > 4  A bit-field shall have a type that is a qualified or unqualified version of _Bool, signed
> >    int, unsigned int, or some other implementation-defined type.
> >
> > and moved it from the Semantics to the Constraints section, so a C
> > compiler not supporting u_int8_t has to issue at least a diagnostic
> > before producing random code :)
> 
> :-).  The wording seems a bit fuzzy.  Is there a way for applications to
> determine what the implementation-defined type(s) are?

Unfortunately not.

Stefan


More information about the cvs-src mailing list