[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [pcc] pcc-0.9.9: Solaris 10 on AMD64
From:       Adam Hoka <adam.hoka () gmail ! com>
Date:       2009-05-15 8:45:32
Message-ID: 4A0D2BAC.3040206 () gmail ! com
[Download RAW message or body]

On 05/14/09 03:29, Nelson H. F. Beebe wrote:
> Here are some notes made in porting pcc-0.9.9 to Sun Solaris 10 on
> AMD64 (aka EM64T aka x86_64):
>
> Build successful, and hello-world test works.
>
> Compilation of features-1.2.1
>
> 	http://www.math.utah.edu/pub/features
>
> fails with undefined types from system header files, and I have yet to
> find a workaround.

It also needs sys/va_impl.h to be patched, because the header is poorly 
written. See the attached diff.


["pcc_solaris_va_impl_h.diff" (text/x-patch)]

--- /usr/include/sys/va_impl.h	Fri Jan 21 23:19:50 2005
+++ pcc/lib/pcc/i386-pc-solaris2.10/0.9.9/include/sys/va_impl.h	Tue Feb  3 10:46:45 2009
@@ -129,8 +129,8 @@
 #define	__va_copy(to, from)	__va_void(((to) = (from)))
 #define	__va_end(list)		__va_void(0)
 
-#elif defined(__GNUC__)	&& ((__GNUC__ == 2 && __GNUC_MINOR >= 96) || \
-	(__GNUC__ >= 3))		/* ------------------------ protocol */
+#elif (defined(__GNUC__)	&& ((__GNUC__ == 2 && __GNUC_MINOR >= 96) || \
+	(__GNUC__ >= 3))) || defined(__PCC__)		/* ------------------------ protocol */
 
 #define	__va_start(list, name)	__builtin_stdarg_start(list, name)
 #define	__va_arg(list, type)	__builtin_va_arg(list, type)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic