This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: va_arg *, and why not.


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]