Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2007 21:42:18 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "Sean C. Farley" <sean-freebsd@farley.org>
Cc:        Alexander Leidinger <Alexander@leidinger.net>, arch@freebsd.org
Subject:   Re: HEADS DOWN
Message-ID:  <20070513212509.Y70611@besplex.bde.org>
In-Reply-To: <20070512170535.A7595@thor.farley.org>
References:  <20070504213312.GA33163@nagual.pp.ru> <20070504174657.D1343@thor.farley.org> <20070505213202.GA49925@nagual.pp.ru> <20070505163707.J6670@thor.farley.org> <20070505221125.GA50439@nagual.pp.ru> <20070506091835.A43775@besplex.bde.org> <20070508162458.G6015@baba.farley.org> <20070508222521.GA59534@nagual.pp.ru> <20070509200000.B56490@besplex.bde.org> <20070510184447.H4969@baba.farley.org> <20070511083502.GJ54713@elvis.mu.org> <20070511181141.P9004@baba.farley.org> <20070512170748.msq4hriby804skcg@webmail.leidinger.net> <20070512170535.A7595@thor.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 May 2007, Sean C. Farley wrote:

> On Sat, 12 May 2007, Alexander Leidinger wrote:
>
>> Quoting "Sean C. Farley" <sean-freebsd@farley.org> (from Fri, 11 May 2007 
>> 18:21:09 -0500 (CDT)):
>> 
>>> It seems that __attribute__((pure)) is not supported by the Intel
>>> compiler.  Would my strlen() be of any use when libc is compiled with
>>> it?
>> 
>> That's one reason we have cdefs.h, so you can use appropriate macros
>> instead of using __attribute__((foo)) directly.
>
> Actually, what I meant was that strlen() has the pure attribute via
> __pure, and cdefs.h shows that the Intel compiler is not able to make
> use of it.

cdefs.h really shouldn't have __pure.  __pure was __pure2 in
FreeBSD-1/gcc-1.  __pure2 exists because the the syntax for it is
incompatible with the syntax for the FreeBSD-1 __pure, not because it
is purer than gcc's pure = the FreeBSD_current __pure.  The syntax is
incompatible because gcc-1 didn't have __attribute__(()).  gcc-1 and
most of gcc-2 also didn't have `pure' to cause confusion with FreeBSD's
__pure*.

Bruce



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