64 bit support of va_ makros

Lagler, Markus lagler@omnisec.ch
Mon Jul 23 05:06:00 GMT 2001


Hi

I experienced trouble using the va_ makros with 64 bit values. As long as
the 64 bit are aligned, e.g. 32 bit, 32 bit and then 64 bit everything seems
to work, but when I try to pass a 32 bit and then a 64 bit value the return
value of the va_arg function is incorrect. The alignment seems to be off.

I'm using gcc cygnus-2.7.2-960126 for PowerPC.

Does anybody know about this problem? Can anybody help me?

I hope this has not been discussed previously, I couldn't find anything in
the archives.

Regards
Markus



More information about the Gcc-help mailing list