Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Apr 2000 21:11:58 -0400 (EDT)
From:      Mike Heffner <mheffner@mailandnews.com>
To:        mirko.viviani@rccr.cremona.it
Cc:        obrien@FreeBSD.org, current@FreeBSD.org
Subject:   RE: 4.0 possible compiler bug ?
Message-ID:  <XFMail.20000408211158.mheffner@mailandnews.com>
In-Reply-To: <200004082017.WAA05269@rccr1.rccr.cremona.it>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <spock@techfour.net>    *
 * 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20000408211158.mheffner>