public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] __func__ -> __FUNCTION__
@ 2002-08-13  6:17 Andrew Morton
  2002-08-13  6:49 ` H. Peter Anvin
  2002-08-13  8:20 ` Christoph Hellwig
  0 siblings, 2 replies; 11+ messages in thread
From: Andrew Morton @ 2002-08-13  6:17 UTC (permalink / raw)
  To: lkml


It is a requirement of the SPARC port that Linux be compilable
by egcs-1.1.2, aka gcc-2.91.66.

That compiler does not support __func__.

--- linux-2.5.31/include/linux/kernel.h	Wed Jul 24 14:31:31 2002
+++ 25/include/linux/kernel.h	Mon Aug 12 23:09:31 2002
@@ -13,6 +13,8 @@
 #include <linux/types.h>
 #include <linux/compiler.h>
 
+#define __func__ __FUNCTION__	/* For old gcc's */
+
 /* Optimization barrier */
 /* The "volatile" is due to gcc bugs */
 #define barrier() __asm__ __volatile__("": : :"memory")

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

end of thread, other threads:[~2002-08-14 21:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-13  6:17 [patch] __func__ -> __FUNCTION__ Andrew Morton
2002-08-13  6:49 ` H. Peter Anvin
2002-08-13  8:13   ` Andrew Morton
2002-08-13  7:59     ` Muli Ben-Yehuda
2002-08-13  8:09       ` H. Peter Anvin
2002-08-13  8:10         ` Muli Ben-Yehuda
2002-08-13  8:19           ` H. Peter Anvin
2002-08-13  8:19             ` Muli Ben-Yehuda
2002-08-14 21:16     ` Maksim (Max) Krasnyanskiy
2002-08-13  8:20 ` Christoph Hellwig
2002-08-13  8:49   ` Andrew Morton

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