Re: [arm-gnu] _FPU_EXTENDED and _FPU_DOUBLE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] _FPU_EXTENDED and _FPU_DOUBLE
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: Re: [arm-gnu] _FPU_EXTENDED and _FPU_DOUBLE
- From: Meng Sun <meng.sun@xxxxxxxxx>
- Date: Wed, 03 Dec 2008 11:08:59 +0200
Hi,
still this problem. I find a solution:
#ifdef _FPU_IEEE
# ifndef *_FPU_EXTENDED* /* e.g., *ARM* processor under Linux */
# define *_FPU_EXTENDED* 0
# endif
#endif
#ifndef _FPU_DOUBLE
# define _FPU_DOUBLE 0
#endif
Is that a good option?
Cheers,
Meng Sun 写道:
> Hi all,
>
> There are following errors when I compile scilab-5.0.3:
>
> src/c/setPrecisionFPU.c: In function 'setFPUToDouble':
> src/c/setPrecisionFPU.c:44: error: '_FPU_EXTENDED' undeclared (first use
> in this function)
> src/c/setPrecisionFPU.c:44: error: (Each undeclared identifier is
> reported only once
> src/c/setPrecisionFPU.c:44: error: for each function it appears in.)
> src/c/setPrecisionFPU.c:44: error: '_FPU_DOUBLE' undeclared (first use
> in this function)
> src/c/setPrecisionFPU.c: In function 'setFPUToExtended':
> src/c/setPrecisionFPU.c:55: error: '_FPU_DOUBLE' undeclared (first use
> in this function)
> src/c/setPrecisionFPU.c:55: error: '_FPU_EXTENDED' undeclared (first use
> in this function)
> make[2]: *** [libscicore_la-setPrecisionFPU.lo] Error 1
>
> There should be _FPU_EXTENDED and _FPU_DOUBLE defined under toolchain's
> include directory called fpu_control.h.
>
> So Is that possibly a bug? I am using CodeSourcery 2008-q3-72 for ARM.
>
> Cheers,
>
>