This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc, floating point and linux kernel module
- To: christophe barbe <christophe dot barbe at inup dot com>
- Subject: Re: gcc, floating point and linux kernel module
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 05 Jan 2001 21:06:21 -0800
- CC: gcc-patches at gcc dot gnu dot org
- References: <20010105101132.A9136@pc8.inup.com> <20010105101323.B9136@pc8.inup.com> <20010105111151.A9655@pc8.inup.com>
christophe barbe <christophe.barbe@inup.com> writes:
> I'm compiling a kernel module for the linux 2.2.18 on a PPC target (MPC750) with the following gcc :
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> The resulting object uses FPU opcode to do optimization for 64 bits
> variables. I've add at the end of this mail the command line to
> compile one of the object included in the module which uses FPU, the
> guilty part of the code and the generated asm.
>
> It's a bad thing to use FPU in the kernel mode (under linux), so my
> question is is there a way to turn of FPU usage ?
Use the -msoft-float option to GCC, that tells it not to use the FPU
under any circumstances.
--
- Geoffrey Keating <geoffk@geoffk.org>