cvs commit: src/sys/dev/aic7xxx ahc_pci.c ahd_pci.c

Bruce Evans bde at zeta.org.au
Thu Oct 23 23:59:37 PDT 2003


On Thu, 23 Oct 2003, Stefan Farfeleder wrote:

> On Thu, Oct 23, 2003 at 06:42:03AM -0700, Dag-Erling Smorgrav wrote:
> > des         2003/10/23 06:42:03 PDT
> >
> >   FreeBSD src repository
> >
> >   Modified files:
> >     sys/dev/aic7xxx      ahc_pci.c ahd_pci.c
> >   Log:
> >   0x7FFFFFFFFF is >32 bits and needs an explicit LL.
>                                  ^^^^^^^^^^^^^^^^^^^^
> That's not true.  Its type is long long on 32 bit architectures even
> without the LL suffix.

That is correct for C99, but we don't have all of C99 yet.  Perhaps gcc
with certain options warns about it rtto help detect compatibility
problems.  I can't find any options that make it complain now.  ISTR
it complaining about even 0xFFFFFFFF because it is so large that it is
unsigned on 32-bit systems.

For C90 on 32-bit systems, 0x7FFFFFFFFF is constraint error.
0x7FFFFFFFFFLL is a syntax error for C90 on all systems.

Bruce


More information about the cvs-src mailing list