Re: [9fans] Thumb compiler oddity

David Boddie <[email protected]> Wed, 11 Oct 2023 22:30:20 +0200
Newsgroups gmane.os.inferno.general,gmane.os.plan9.general
Message-ID <3416193.Hdc4utJmKf@aurora>
On Mon Oct 02 09:07:41 2023, Richard Miller wrote:

> > In the meantime, I turned off "registerization" for files that could
> > potentially have similar code.
> 
> If you want a more targeted workaround without a performance cost,
> in the example you posted you can force the compiler to reload the
> register by replacing
> 
>         return y;
> 
> with
> 
>         return *(&y); 

Thanks for the workaround. The FDLIBM readme file suggests hacking on the
__HI, __LO, __HIp and __LOp macros, so I'll see what I can come up with.

David

-- 
You received this message because you are subscribed to the Google Groups "inferno-os" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inferno-os+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion on the web, visit https://groups.google.com/d/msgid/inferno-os/3416193.Hdc4utJmKf%40aurora.