All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix compilation on gcc 3.4
@ 2004-01-14  8:37 Andi Kleen
  2004-01-14  8:47 ` Jakub Jelinek
  2004-01-14  8:49 ` Andrew Morton
  0 siblings, 2 replies; 6+ messages in thread
From: Andi Kleen @ 2004-01-14  8:37 UTC (permalink / raw)
  To: akpm; +Cc: jh, linux-kernel


The upcomming gcc 3.4 has a new inlining algorithm which sometimes
fails to inline some "dumb" inlines in the kernel. This sometimes leads
to undefined symbols while linking.

To make the kernel compile again this patch drops the always inline
for gcc 3.4.  The new algorithm should be good enough to do the right
thing on its own. 

-Andi

diff -u linux-34/include/linux/compiler-gcc3.h-o linux-34/include/linux/compiler-gcc3.h
--- linux-34/include/linux/compiler-gcc3.h-o	2003-09-28 10:53:23.000000000 +0200
+++ linux-34/include/linux/compiler-gcc3.h	2004-01-13 22:36:22.000000000 +0100
@@ -3,7 +3,9 @@
 /* These definitions are for GCC v3.x.  */
 #include <linux/compiler-gcc.h>
 
-#if __GNUC_MINOR__ >= 1
+/* gcc 3.4 has a new inlining algorithm and always_inline seems to 
+   do more harm than good now. */
+#if __GNUC_MINOR__ >= 1 && __GNUC_MINOR__ < 4
 # define inline		__inline__ __attribute__((always_inline))
 # define __inline__	__inline__ __attribute__((always_inline))
 # define __inline	__inline__ __attribute__((always_inline))




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-01-14 10:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-14  8:37 [PATCH] Fix compilation on gcc 3.4 Andi Kleen
2004-01-14  8:47 ` Jakub Jelinek
2004-01-14  8:58   ` Andi Kleen
2004-01-14 10:53     ` Jan Hubicka
2004-01-14  8:49 ` Andrew Morton
2004-01-14  9:04   ` Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.