From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28234 invoked by alias); 21 Feb 2008 02:25:57 -0000 Received: (qmail 28223 invoked by uid 22791); 21 Feb 2008 02:25:56 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Feb 2008 02:25:29 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw1.br.ibm.com (Postfix) with ESMTP id 140B932C08F for ; Wed, 20 Feb 2008 23:02:23 -0300 (BRST) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m1L2PP7x4460742 for ; Wed, 20 Feb 2008 23:25:25 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m1L1PPIx001486 for ; Wed, 20 Feb 2008 23:25:25 -0200 Received: from [9.12.237.117] ([9.12.237.117]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m1L1PLv4001434; Wed, 20 Feb 2008 23:25:22 -0200 Subject: Re: [RFA] Support for calling functions with decimal float ?arguments ?in x86 and x86_64 From: Thiago Jung Bauermann To: Mark Kettenis Cc: gdb-patches@sourceware.org In-Reply-To: <200802202354.m1KNs9PJ028261@brahms.sibelius.xs4all.nl> References: <1202920713.20334.57.camel@localhost.localdomain> <1203529277.9433.28.camel@localhost.localdomain> <200802202354.m1KNs9PJ028261@brahms.sibelius.xs4all.nl> Content-Type: text/plain Date: Thu, 21 Feb 2008 02:25:00 -0000 Message-Id: <1203560718.9433.32.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00346.txt.bz2 On Thu, 2008-02-21 at 00:54 +0100, Mark Kettenis wrote: > > From: "Thiago Jung Bauermann" > > Date: Wed, 20 Feb 2008 14:41:17 -0300 > > > > On Wed, 2008-02-13 at 14:38 -0200, Thiago Jung Bauermann wrote: > > > The attached patch implements the calling convention for decimal > > > floating point in x86 32-bits and x86_64 (arguments and return value). > > > > Ping? I am hoping to get this in before the branch... > > The diff looked ok to me. Only wondered whether there is some > semi-official ABI specification for i386 for this, but even if there > isn't, this diff makes sense. Ben Elliston implemented this in x86 and x86_64. I had a brief e-mail conversation with him about it: However, I couldn't find an ABI spec for DFP in x86. It seems that it's very simple, just throwing all arguments in >bauermann> the stack while respecting word alignment. Conversely, I don't think I did write up an ABI spec for x86. But my recollection is that you are right: we just throw everything onto the stack. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center