This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug ports/10094] use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel
- From: "joseph at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Apr 2009 11:21:15 -0000
- Subject: [Bug ports/10094] use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel
- References: <20090423214459.10094.aurelien@aurel32.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From joseph at codesourcery dot com 2009-04-24 11:21 -------
Subject: Re: use of FPU_SETCW or FPU_GETCW causes illegal
instruction on armel
On Fri, 24 Apr 2009, aurelien at aurel32 dot net wrote:
> ------- Additional Comments From aurelien at aurel32 dot net 2009-04-24 09:44 -------
> > That said, making the contents compile-time conditional
> > like the MIPS version would be reasonable; I don't think it can sensibly
> > be made run-time conditional.
>
> I agree. The patch I just attached, inspired by the mips version should to
> the trick.
I think you need to condition on _LIBC not being defined as well, or
you'll break the runtime VFP detection in the fenv.h functions (which use
fpu_control.h). I'd be surprised if glibc even built for soft-float with
that patch applied, since fesetenv.c uses _FPU_IEEE which the patch would
make undefined in the soft-float case.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10094
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.