Re: [uClinux-dev] Kernel 2.6 size increase

From: David S. Miller (davem@redhat.com)
Date: Wed Jul 23 2003 - 15:11:54 EST


On Wed, 23 Jul 2003 21:32:46 +0200
Christoph Hellwig <hch@lst.de> wrote:

> Could you retry with the following ripped
> from include/linux/compiler.h:
>
> #if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
> #define inline __inline__ __attribute__((always_inline))
> #define __inline__ __inline__ __attribute__((always_inline))
> #define __inline __inline__ __attribute__((always_inline))
> #endif

Careful, some platforms won't work with this.

I know that ppc64's switch_to() for example must be inlined or else
the kernel stops working. It's either the above defines or adding
-finline-limit=100000 to the GCC command line to force it to be
inlined.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:50 EST