This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the EGCS project.
Re: va_list: i960
- To: Richard Henderson <rth@cygnus.com>
- Subject: Re: va_list: i960
- From: Jim Wilson <wilson@cygnus.com>
- Date: Wed, 28 Jul 1999 11:01:30 -0700
- cc: gcc-patches@gcc.gnu.org
Yes, though using a struct type has the same properties without
having the annoying promote-to-pointer semantics in parameter lists.
Structs don't have all of the necessary properties. Structs can be copied
via assignment. E.g.
va_list foo;
va_list bar;
foo = bar;
This works if va_list is a struct, but does not work if va_list is an array.
Jim