From owner-freebsd-current Fri Dec 20 21:19:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E821037B401; Fri, 20 Dec 2002 21:19:47 -0800 (PST) Received: from smtp04.iprimus.com.au (smtp04.iprimus.com.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AD7143EDC; Fri, 20 Dec 2002 21:19:46 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp02.iprimus.net.au (210.50.76.70) by smtp04.iprimus.com.au (6.7.010) id 3DF583C30016E5C5; Sat, 21 Dec 2002 16:19:45 +1100 Received: from dilbert.robbins.dropbear.id.au ([210.50.81.103]) by smtp02.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Sat, 21 Dec 2002 16:19:44 +1100 Received: from dilbert.robbins.dropbear.id.au (p5it6q029bpdh3el@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id gBL5K8Cv017345; Sat, 21 Dec 2002 16:20:09 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id gBL5K1uC017344; Sat, 21 Dec 2002 16:20:01 +1100 (EST) (envelope-from tim) Date: Sat, 21 Dec 2002 16:20:01 +1100 From: Tim Robbins To: Juli Mallett Cc: Joe Marcus Clarke , current@FreeBSD.ORG Subject: Re: WEIRD! div() broken on -CURRENT? Message-ID: <20021221162001.A17127@dilbert.robbins.dropbear.id.au> References: <1040437478.29101.23.camel@shumai.marcuscom.com> <20021221145741.A14018@dilbert.robbins.dropbear.id.au> <20021220204325.A76249@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021220204325.A76249@FreeBSD.org>; from jmallett@FreeBSD.ORG on Fri, Dec 20, 2002 at 08:43:25PM -0800 X-OriginalArrivalTime: 21 Dec 2002 05:19:45.0124 (UTC) FILETIME=[92D99A40:01C2A8B0] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 20, 2002 at 08:43:25PM -0800, Juli Mallett wrote: > * De: Tim Robbins [ Data: 2002-12-20 ] > [ Subjecte: Re: WEIRD! div() broken on -CURRENT? ] > > On Fri, Dec 20, 2002 at 09:24:39PM -0500, Joe Marcus Clarke wrote: > > > I'm doing something wrong, right? I mean, this can't be right. I've > > > verified this now on a P4 running: > > [...] > > > > I can reproduce it here. It looks like gcc is using a strange calling > > convention that the i386 div.S does not understand (MI div.c seems to, though). > > TenDRA and GCC3 use a different struct return format than we used to > use (see http://gcc.gnu.org/ml/gcc-patches/2002-01/msg01783.html) and > we never had a flag day for the old format, and there's no UPDATING or > whatnot notes about this AFAIK. This means at least div has to change > to use the new calling convention. [...] I've imported the versions of div.S and ldiv.S from NetBSD HEAD which work properly with the new calling convention. Thanks for mentioning (on IRC) that the pcc struct return convention had something to do with it. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message