[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: CVS commit: pcc/arch/arm
From: Gregory McGarry <greg () bitlynx ! com>
Date: 2008-03-06 5:25:15
Message-ID: B8390777-3A45-4A9F-853C-1508EA383E77 () bitlynx ! com
[Download RAW message or body]
I've had to do quite a bit of surgery on powerpc, arm and mips header
files in NetBSD to get stdargs working. Some patches for NetBSD are
available on the pcc website.
On 05/03/2008, at 2:31 AM, Havard Eidnes wrote:
>> cc.o: In function `error':
>> : undefined reference to `__builtin_next_arg'
>
> It seems I was too quick. The __builtin_next_arg comes from
> arm's stdarg.h header, and it seems that this diff is required:
>
> great-white# pwd
> /usr/src/sys/arch/arm/include
> great-white# pkgdiff stdarg.h
> $NetBSD$
>
> --- stdarg.h.orig 2005-12-11 13:16:47.000000000 +0100
> +++ stdarg.h
> @@ -46,7 +46,7 @@ typedef _BSD_VA_LIST_ va_list;
> #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
> great-white#
>
> So much for the "should work with 4.0 unmodified" as stated on
>
> http://pcc.ludd.ltu.se/supported-platforms/
>
> (I had to do similar surgery to sys/cdefs.h for the __RENAME
> operation).
>
> OK, time for another try.
>
> - Håvard
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic