[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX 5.1 xlc va_copy (stdarg patch)

From: Bruno Haible
Subject: Re: AIX 5.1 xlc va_copy (stdarg patch)
Date: Wed, 27 Feb 2008 12:35:56 +0100
User-agent: KMail/1.5.4

Peter O'Gorman wrote:
> The only system that we have that does not have #include_next with
> the native compiler is aix4.3.3 with xlc.

How do you know? Have you tested cc on HP-UX, the Compaq compiler on OSF/1,
Sun cc on Linux, and whatever?

> This patch hardcodes ///usr/include/stdarg.h if the system does not
> have #include_next, va_copy or __va_copy.

This is too risky. This approach is very likely to break platforms other
than AIX.

We have an <stdarg.h> replacement that works well everywhere except your
particular version of AIX 5.1. The particular problem, as you said in
your first mail, is that <stddef.h> or <stdarg.h> on this system does
a "#undef va_copy". (You said <stddef.h>, but your patch looks like you
meant <stdarg.h>?) On the AIX 5.1 I have access to, /usr/include/stddef.h
and /usr/include/stdarg.h don't mention va_copy, i.e. don't undef them
either. So I must conclude that it is a very particular bug in a very
particular version of AIX. It does not merit to destabilize all other
platforms, from HP-UX to mingw.

Please restrict the effects of your patch to AIX without GNU C. This is
what you are able to test.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]