[Top][All Lists]

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

Re: gl_STDARG_H on AIX 5.3 with IBM v8 C compiler

From: Bruno Haible
Subject: Re: gl_STDARG_H on AIX 5.3 with IBM v8 C compiler
Date: Fri, 2 Feb 2007 04:21:26 +0100
User-agent: KMail/1.5.4


Thanks for the report. Can you please elucidate three unclear points?

1) You showed this:
> I'm not really sure what the xlc compiler is doing with va_copy(). In
> <stdarg.h>, we have:
>   88: #ifdef _ISOC99_SOURCE
>   89: #define va_copy(__list1,__list2) ((void)(__list1 = __list2))
>   90: #endif

But where is the definition as __builtin_va_copy coming from?

>   $ xlc -qlanglvl=extc99 -E a.c
>   #line 62 "/usr/include/va_list.h"
>   typedef char *va_list;
>   #line 2 "a.c"
>   __builtin_va_copy(a,b)

2) If the configuration shows that va_copy is not available, but then
it is available as a macro, there must be some compiler or preprocessor
option that turns it on after autoconfiguration has run? Which is it?
Can you look at the CFLAGS and CPPFLAGS defined in the Makefile?

3) You get warnings because there are 2 definitions of va_copy. But either
expands into a simple assignment. How come you then get this link error?

>   $ nm -BCpg gllib/libgnu.a|grep va_copy 
>            - U .va_copy


reply via email to

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