Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Oct 2003 16:59:19 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Stefan Farfeleder <stefan@fafoe.narf.at>
Cc:        Dag-Erling Smorgrav <des@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/dev/aic7xxx ahc_pci.c ahd_pci.c
Message-ID:  <20031024163602.A8908@gamplex.bde.org>
In-Reply-To: <20031023182837.GA609@wombat.fafoe.narf.at>
References:  <200310231342.h9NDg3EG049272@repoman.freebsd.org> <20031023182837.GA609@wombat.fafoe.narf.at>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031024163602.A8908>