patch for problem with va-ppc.h included with egcs and gcc-2.95.2

Franz Sirl Franz.Sirl-kernel at lauterbach.com
Thu Dec 2 02:33:30 EST 1999


At 00:28 01.12.99 , Jason Kim wrote:
>Also, in the ANSI C (9x) documentation (``n843''), taking the address of a
>va_list is NOT listed as one of the things that will produce an undefined
>result. Actually, on page 7.15 (pg246 as seen by acroread), footnote item 198
>specifically states ``It is permitted to create a pointer to a va_list and
>pass that pointer to another function,.. in which case the original list may
>make further use of the original list after the other function returns.''

Well, I see this is also in ISO C9x, but unless the standard restricts the 
possible types for va_list (I can't find anything about that), you have 
still to be aware that any callee gets a reference to the va_list if 
va_list is an array and so the usual array handling rules apply, or?

Franz.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list