[Bug target/8641] [hp-ux 11.00] va_arg(arglist,type) does not work if sizeof(type) = 6
dave@hiauly1.hia.nrc.ca
gcc-bugzilla@gcc.gnu.org
Mon Jun 16 20:36:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8641
------- Additional Comments From dave@hiauly1.hia.nrc.ca 2003-06-16 20:36 -------
Subject: Re: [hp-ux 11.00] va_arg(arglist,type) does not wor
> does this problem look familiar to you by any chance? Thanks,
Yes, although I haven't looked at this particular PR. I believe
that this is fixed in 3.3 and later. All versions of gcc for the
32-bit port prior to 3.3 passed small 5-7 byte structures incorrectly.
They were left justified, rather than right justified as specified in
the ABI. This is the cause of the reported truncation. This only
shows up in code that has to inter-operate with code compiled with
the HP compiler and when using va_arg.
Dave
More information about the Gcc-bugs
mailing list