Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jan 2011 11:47:55 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/arm/include _types.h src/sys/i386/include _types.h src/sys/mips/include _types.h src/sys/powerpc/include _types.h src/sys/sys cdefs.h
Message-ID:  <201101081148.p08BmAeZ096662@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tijl        2011-01-08 11:47:55 UTC

  FreeBSD src repository

  Modified files:
    sys/arm/include      _types.h 
    sys/i386/include     _types.h 
    sys/mips/include     _types.h 
    sys/powerpc/include  _types.h 
    sys/sys              cdefs.h 
  Log:
  SVN rev 217146 on 2011-01-08 11:47:55Z by tijl
  
  On 32 bit architectures define (u)int64_t as (unsigned) long long instead
  of (unsigned) int __attribute__((__mode__(__DI__))). This aligns better
  with macros such as (U)INT64_C, (U)INT64_MAX, etc. which assume (u)int64_t
  has type (unsigned) long long.
  
  The mode attribute was used because long long wasn't standardised until
  C99. Nowadays compilers should support long long and use of the mode
  attribute is discouraged according to GCC Internals documentation.
  
  The type definition has to be marked with __extension__ to support
  compilation with "-std=c89 -pedantic".
  
  Discussed with: bde
  Approved by:    kib (mentor)
  
  Revision  Changes    Path
  1.10      +6 -6      src/sys/arm/include/_types.h
  1.16      +6 -11     src/sys/i386/include/_types.h
  1.3       +6 -11     src/sys/mips/include/_types.h
  1.9       +8 -17     src/sys/powerpc/include/_types.h
  1.113     +0 -2      src/sys/sys/cdefs.h



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