Back to wiki

RCS History

/ TOP / supported-platforms.mdwn

Differences for revision 1.3 from 1.2


--- /supported-platforms.mdwn	2007/12/03 06:40:57	1.2
+++ /supported-platforms.mdwn	2008/04/12 13:42:06	1.3
@@ -2,7 +2,36 @@
 
 __NetBSD 4.0 (i386/mips/arm/powerpc)__
 
-should support PCC
+NetBSD 4.0 needs at least this change:
+
+    --- sys/sys/cdefs.h     13 Nov 2006 05:44:37 -0000      1.64
+    +++ sys/sys/cdefs.h     12 Apr 2008 13:30:29 -0000
+    @@ -245,7 +245,7 @@
+     #endif /* _KERNEL */
+     
+     #if !defined(_STANDALONE)&& !defined(_KERNEL)
+    -#ifdef __GNUC__
+    +#if defined(__GNUC__) || defined(__PCC__)
+     #define        __RENAME(x)     ___RENAME(x)
+     #else
+     #ifdef __lint__
+
+and for varargs to work on arm:
+
+    --- sys/arch/arm/include/stdarg.h    11 Dec 2005 12:16:47 -0000      1.9
+    +++ sys/arch/arm/include/stdarg.h    12 Apr 2008 13:36:13 -0000
+    @@ -46,7 +46,7 @@
+     #define        __builtin_va_copy(d, s)         ((d) = (s))
+     #endif
+     
+    -#if __GNUC_PREREQ__(2, 96)
+    +#if (__GNUC_PREREQ__(2, 96) || defined(__PCC__))
+     #define        va_start(ap, last)      __builtin_stdarg_start((ap), (last))
+     #define        va_arg                  __builtin_va_arg
+     #define        va_end                  __builtin_va_end
+
+A similar change may be required for other platforms as well.
+
 
 __NetBSD 3.0 (i386/mips/arm/powerpc)__
 

Powered by rcshistory.cgi 0.3