This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Today's source cannot build on NetBSD
- To: Richard Earnshaw <rearnsha at arm dot com>
- Subject: Re: Today's source cannot build on NetBSD
- From: Jason R Thorpe <thorpej at zembu dot com>
- Date: Tue, 5 Dec 2000 10:26:58 -0800
- Cc: Krister Walfridsson <cato at df dot lth dot se>,"Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-bugs at gcc dot gnu dot org
- Organization: Zembu Labs, Inc.
- References: <Pine.LNX.4.05-df.10001072311090.12637-100000@bartlet.df.lth.se> <200012051759.RAA02310@cam-mail2.cambridge.arm.com>
- Reply-To: thorpej at zembu dot com
On Tue, Dec 05, 2000 at 05:59:55PM +0000, Richard Earnshaw wrote:
> Good heavens, has this really been broken all year? [actually, the message
> was so old, my initial reply bounced because the list name has changed ;-]
I noticed this quite some time ago, but it didn't occur to me to mention
it here. Anyway, I have fixed some of the NetBSD header files to work
with newer versions of GCC (basically, the ansi.h files of the ports that
I was playing with GCC on...)
----------------------------
revision 1.10
date: 2000/05/03 21:54:06; author: thorpej; state: Exp; lines: +6 -1
Make varargs and stdarg work with GCC 2.96 and later.
----------------------------
It basically does:
#if __GNUC_PREREQ__(2, 96)
#define _BSD_VA_LIST_ __builtin_va_list /* GCC built-in type */
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif
Anyway, if you do end up hacking fixincludes to fix this, make sure the
rule can notice when it's been fixed already.
--
-- Jason R. Thorpe <thorpej@zembu.com>