Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  9 Apr 2000 11:31:03 +0200
From:      Mirko Viviani <mirko.viviani@rccr.cremona.it>
To:        Mike Heffner <spock@techfour.net>
Cc:        current@FreeBSD.org
Subject:   Re: 4.0 possible compiler bug ?
Message-ID:  <200004090931.LAA02968@rccr.cremona.it>
In-Reply-To: <XFMail.20000408211158.mheffner@mailandnews.com>
References:  <XFMail.20000408211158.mheffner@mailandnews.com>

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

[-- Attachment #1 --]
On Sat, 08 Apr 2000, Mike Heffner  wrote:

> | 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.

Always better... :(

> 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.

Exactly how to do that ?

> 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.

If we'are not able to fix it I'm forced to change OS... I need GNUstep.

I have tested the prg with NEXTSTEP cc 2.5.8 that uses the same behaviour
for these things, it does not crash and return a pointer for the struct on  
the stack.

CC differences:

argframe: NS 8 bytes, FBSD 16 bytes
struct on the stack: NS up to 4 bytes, FBSD up to 8 bytes.

If it helps someone here is the asm generated by cc on NS.

[An attachment was originally included here]
---
Bye,
     Mirko  <mirko.viviani@rccr.cremona.it>   (NeXTmail, MIME)
                    <mirko@yourbox.net>

[-- Attachment #2 --]
help

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