From owner-freebsd-current Sat Apr 8 18:12:35 2000 Delivered-To: freebsd-current@freebsd.org Received: from MailAndNews.com (MailAndNews.com [199.29.68.160]) by hub.freebsd.org (Postfix) with ESMTP id 7370337B55B; Sat, 8 Apr 2000 18:12:32 -0700 (PDT) (envelope-from mheffner@mailandnews.com) Received: from muriel.penguinpowered.com [208.138.199.76] (mheffner@mailandnews.com); Sat, 8 Apr 2000 21:12:30 -0400 X-WM-Posted-At: MailAndNews.com; Sat, 8 Apr 00 21:12:30 -0400 Content-Length: 1104 Message-ID: X-Mailer: XFMail 1.4.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200004082017.WAA05269@rccr1.rccr.cremona.it> Date: Sat, 08 Apr 2000 21:11:58 -0400 (EDT) Reply-To: Mike Heffner From: Mike Heffner To: mirko.viviani@rccr.cremona.it Subject: RE: 4.0 possible compiler bug ? Cc: obrien@FreeBSD.org, current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 08-Apr-2000 mirko.viviani@rccr.cremona.it wrote: | Ciao! | | I'm testing the __builtin_apply() to make a patch to GNUstep, but I'm | getting | in troubles. | Since you're on the subject, there are also two other bugs with __builtin_apply() in FBSD that I know of. 1) you can't pass float values, they become written over on the stack and therefore don't get passed correctly 2) In conjunction with __builtin_return(), you cannot nest calls with __builtin_apply() or the return from the second called function with give you a floating point error. The easy hack to fix 2 is to remove FP_X_INV from the floating point mask -- but this is not the right way to do it. 1 can be fixed by passing a pointer of a float. I tried investigating into it a while back, but didn't have any luck. I know that 2 isn't a problem in 3-stable. /**************************************** * Mike Heffner * * Fredericksburg, VA ICQ# 882073 * * Sent at: 08-Apr-2000 -- 20:57:23 EST * * http://my.ispchannel.com/~mheffner * ****************************************/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message