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]
Other format: [Raw text]

[Bug target/8641] [hp-ux 11.00] va_arg(arglist,type) does not work if sizeof(type) = 6


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


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