Albert,

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


Bruno



Reply via email to