On 08-Apr-2000 [EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> *
* Fredericksburg, VA ICQ# 882073 *
* Sent at: 08-Apr-2000 -- 20:57:23 EST *
* http://my.ispchannel.com/~mheffner *
****************************************/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message