From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7180 invoked by alias); 16 Jun 2003 20:36:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 7163 invoked by alias); 16 Jun 2003 20:36:18 -0000 Date: Mon, 16 Jun 2003 20:36:00 -0000 Message-ID: <20030616203618.7162.qmail@sources.redhat.com> From: "dave@hiauly1.hia.nrc.ca" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20021119085616.8641.fl@abas.de> References: <20021119085616.8641.fl@abas.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/8641] [hp-ux 11.00] va_arg(arglist,type) does not work if sizeof(type) = 6 X-Bugzilla-Reason: CC X-SW-Source: 2003-06/txt/msg01839.txt.bz2 List-Id: 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