This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: va_arg *, and why not.
- To: ghazi at caip dot rutgers dot edu
- Subject: Re: va_arg *, and why not.
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 17 Jul 2000 08:27:24 -0700
- Cc: gdr at codesourcery dot com, gcc-bugs at gcc dot gnu dot org, geoffk at cygnus dot com
- Organization: CodeSourcery, LLC
- References: <200007171414.KAA05378@caip.rutgers.edu>
>>>>> "Kaveh" == Kaveh R Ghazi <ghazi@caip.rutgers.edu> writes:
Kaveh> FYI, system.h already defines a backup va_copy. I don't
Kaveh> know if it's *correct*, but it does exist. You may wish to
Kaveh> verify it DTRT.
I believe it is not. It looks like that code was written using the
recommendation from the glibc manual, which assumes that in the
absence of va_copy that simple assignment will work. A better attempt
is to use `memcpy', I think.
However, I can't actually test "fixing" this in any good way, so I'm
just going to leave it be unless we end up needing this again.
Thanks for the information.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com