[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: |
Peter O'Gorman |
Subject: |
Re: AIX 5.1 xlc va_copy (stdarg patch) |
Date: |
Wed, 27 Feb 2008 01:32:04 -0600 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Wed, Feb 27, 2008 at 05:03:01AM +0100, Bruno Haible wrote:
> Instead, how about generating the stdarg.h replacement only for
> defined _AIX && !defined __GNUC__
> and letting it look like this:
>
> #ifndef _GL_STDARG_H
> #include "/usr/include/stdarg.h"
> #ifndef va_copy
> #define va_copy(a,b) ((a) = (b))
> #endif
> #endif
>
> It should be safe to assume that for non-GNU compilers on AIX the <stdarg.h>
> is in /usr/include.
I am not sure that I agree.
Since this problem will only exist on compilers and systems without
va_copy, __va_copy and #include_next, I think it is probably a safe
bet to hardcode ///usr/include/stdarg.h on all such systems.
The only system that we have that does not have #include_next with
the native compiler is aix4.3.3 with xlc. Even there #include_next is
available with -qlanglvl=extc89, or simply invoking the compiler with
cc rather than xlc.
This patch hardcodes ///usr/include/stdarg.h if the system does not
have #include_next, va_copy or __va_copy.
Peter
gnulib_stdarg.patch
Description: Text document
- AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch), Paul Eggert, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch), Bruno Haible, 2008/02/26
- Re: AIX 5.1 xlc va_copy (stdarg patch),
Peter O'Gorman <=
- Re: AIX 5.1 xlc va_copy (stdarg patch), Bruno Haible, 2008/02/27
- Re: AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/27
- Re: AIX 5.1 xlc va_copy (stdarg patch), Peter O'Gorman, 2008/02/27