Re: using gcc built-ins for bitops?

From: Arjan van de Ven
Date: Thu Jun 24 2004 - 07:22:39 EST


On Thu, Jun 24, 2004 at 01:51:46PM +0200, Gabriel Paubert wrote:
> > --- linux-2.6.7/include/linux/compiler-gcc3.h~ 2004-06-24 09:26:04.123455290 +0200
> > +++ linux-2.6.7/include/linux/compiler-gcc3.h 2004-06-24 09:26:04.123455290 +0200
> > @@ -19,6 +19,11 @@
> > # define __attribute_used__ __attribute__((__unused__))
> > #endif
> >
> > +#if __GNUC_MINOR__ >= 4
>
> Please do no test only on minor. People have been arguing
> whether the next major release of GCC should be called 3.5
> or 4.0 since tree-ssa has been merged.

this header is only uses for the gcc major == 3. The header for ==4 and
later has the define unconditional, and the file for major ==2 doesn't have
it at all.

Attachment: pgp00000.pgp
Description: PGP signature