Date: Fri, 13 Jun 2003 00:55:41 -0700 From: David Schultz <das@FreeBSD.ORG> To: Tim Robbins <tjr@FreeBSD.ORG> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: CSTD=c99 breaks package creation Message-ID: <20030613075541.GC3769@HAL9000.homeunix.com> In-Reply-To: <20030612141419.A54664@dilbert.robbins.dropbear.id.au> References: <20030610113858.GA99227@rot13.obsecurity.org> <20030612023701.GA33532@rot13.obsecurity.org> <20030612141419.A54664@dilbert.robbins.dropbear.id.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 12, 2003, Tim Robbins wrote: > On Wed, Jun 11, 2003 at 07:37:01PM -0700, Kris Kennaway wrote: > > > It's possible that there's either a bug in gcc or there is C code in > > the system that has a different meaning when interpreted to C99 > > standards. > > I think I may have found the problem, and I think it's in GNU tar. > > GNU tar does this: > > #ifndef __attribute__ > /* This feature is available in gcc versions 2.5 and later. */ > # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ > # define __attribute__(Spec) /* empty */ > # endif > #endif > > machine/_types.h does this: > > typedef int __attribute__((__mode__(__DI__))) __int64_t; > typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; > > If __attribute__ is empty, __int64_t becomes a synonym for int. Bad. Wow! Nice catch...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030613075541.GC3769>