public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4: always_inline for gcc3
@ 2003-08-26  8:24 J.A. Magallon
  2003-08-26 12:15 ` Marcelo Tosatti
  0 siblings, 1 reply; 6+ messages in thread
From: J.A. Magallon @ 2003-08-26  8:24 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: Marcelo Tosatti

Hi.

Resending for 2.4.23-pre ;)

--- 25/include/linux/compiler.h~gcc3-inline-fix	2003-03-06
03:02:43.000000000 -0800
+++ 25-akpm/include/linux/compiler.h	2003-03-06 03:11:42.000000000 -0800
@@ -1,6 +1,13 @@
 #ifndef __LINUX_COMPILER_H
 #define __LINUX_COMPILER_H
 
+#if __GNUC__ >= 3
+#define inline		__inline__ __attribute__((always_inline))
+#define inline__	__inline__ __attribute__((always_inline))
+#define __inline	__inline__ __attribute__((always_inline))
+#define __inline__	__inline__ __attribute__((always_inline))
+#endif
+
 /* Somewhere in the middle of the GCC 2.96 development cycle, we implemented
    a mechanism by which the user can annotate likely branch directions and
    expect the blocks to be reordered appropriately.  Define __builtin_expect


-- 
J.A. Magallon <jamagallon@able.es>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.22-jam1m (gcc 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk))

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

end of thread, other threads:[~2003-08-27 16:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-26  8:24 [PATCH] 2.4: always_inline for gcc3 J.A. Magallon
2003-08-26 12:15 ` Marcelo Tosatti
2003-08-26 16:24   ` J.A. Magallon
2003-08-26 17:00     ` J.A. Magallon
2003-08-27 14:37     ` Alan Cox
2003-08-27 16:14       ` J.A. Magallon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox