Re: [PATCH] abuse of macros in swab.h

From: Andi Kleen (ak@suse.de)
Date: Tue Sep 19 2000 - 19:15:03 EST


On Wed, Sep 20, 2000 at 01:58:32AM +0200, Martin Dalecki wrote:
> Andrea Arcangeli wrote:
> >
> > On Wed, Sep 20, 2000 at 01:22:50AM +0200, Andi Kleen wrote:
> > > Better would be to use statement blocks like
> > > #define bla(x) ({ __u32 tmp__ = (x); ....; tmp__; })
> >
> > Agreed.
>
> Not agreed. In this case older version of GCC will have
> almost exactly the same provlems as with functions.

If they had they wouldn't be able to compile the linux kernel
anyways (e.g. read asm-i386/uaccess.h)

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:22 EST