James Carlson <[EMAIL PROTECTED]> wrote:
> Joerg Schilling writes:
> > Hi,
> >
> > I just discovered sys/ccompile.h and it's content...
> >
> > It seems to support GCCs __attribute__ feature in case
> > that __GNUC__ is defined, but it also checks for
> > __ATTRIBUTE_IMPLEMENTED and then uses __sun_attr__().
> >
> > Is there a Sun C-Compiler that supports this?
>
> I think you might be misreading the code. __sun_attr__ is just a
> macro in that file that expands to nothing when using a Sun C
> compiler, or to the right __attribute__ thing by way of token pasting
> if you're using gcc.
So why does __sun_attr__ exists at all?
> It's an internal implementation detail of that header file. Source
> code in ON should be using __NORETURN, __PURE, and so on.
Does this always expand to nothing in case that you use a Sun C compiler?
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]