| To: | linux-mips mailing list <linux-mips@oss.sgi.com> |
|---|---|
| Subject: | FPU inexact flag always set for dynamic programs |
| From: | Kjeld Borch Egevang <kjelde@mips.com> |
| Date: | Thu, 14 Mar 2002 14:52:15 +0100 (CET) |
| Sender: | owner-linux-mips@oss.sgi.com |
Hi all.
I've discovered that the inexact bit is always set at startup for a
program. My test program fenvtest.c:
#include <fenv.h>
#include <stdio.h>
int main()
{
int retval;
retval = fetestexcept(FE_ALL_EXCEPT);
printf("%d\n", retval);
return 0;
}
And when I run:
cc -o fenvtest fenvtest.c -lm
./fenvtest
I get:
4
and:
cc -o fenvtest fenvtest.c -lm -static
./fenvtest
I get:
0
Is there something in /lib/ld.so.1 that invalidates the FP csr?
/Kjeld
--
_ _ ____ ___ Mailto:kjelde@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 44 86 55 85
| \/ ||| ____) Lautrupvang 4 B Switch: +45 44 86 55 55
TECHNOLOGIES DK-2750 Ballerup Fax...: +45 44 86 55 56
Denmark http://www.mips.com/
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | More on serial console problem, Andre . Messerschmidt |
|---|---|
| Next by Date: | Re: FPU inexact flag always set for dynamic programs, Zhang Fuxin |
| Previous by Thread: | More on serial console problem, Andre . Messerschmidt |
| Next by Thread: | Re: FPU inexact flag always set for dynamic programs, Zhang Fuxin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |