From: NIIBE Y. <gn...@ch...> - 2000-11-11 06:17:32
|
Philipp Rumpf writes: > On Sat, Nov 11, 2000 at 11:34:48AM +0900, NIIBE Yutaka wrote: > > With new GCC, we have the flag -m4-nofpu, I will introduce this flag > > for SH-4 kernel to avoid using FPU for division. > > That is definitely the right thing to do Currently, -m4-nofpu doesn't works well. We need following patch for GCC. --- gcc-sh-linux-20001002/gcc/config/sh/linux.h~ Tue Nov 7 18:12:20 2000 +++ gcc-sh-linux-20001002/gcc/config/sh/linux.h Sat Nov 11 14:57:43 2000 @@ -43,9 +43,9 @@ #define CPP_SPEC \ "%{mb:-D__BIG_ENDIAN__} \ %{!mb:-D__LITTLE_ENDIAN__} \ - %{m3e:-D__SH3E__} \ %{m4:-D__SH4__} \ - %{!m3e:%{!m4:-D__SH3__ -D__sh3__}} \ + %{!m4:%{m4-nofpu:-D__SH4__ -D__SH4_NOFPU__}} \ + %{!m4:%{!m4-nofpu:-D__SH3__ -D__sh3__}} \ %{fPIC:-D__PIC__ -D__pic__} \ %{fpic:-D__PIC__ -D__pic__} \ %{posix:-D_POSIX_SOURCE} \ @@ -59,11 +59,11 @@ #undef CC1_SPEC #define CC1_SPEC \ - "-musermode %{!mb:-ml} %{!m3e:%{!m4:-m3}}" + "-musermode %{!mb:-ml} %{!m4:%{!m4-nofpu:-m3}}" #undef CC1PLUS_SPEC #define CC1PLUS_SPEC \ - "-musermode %{!mb:-ml} %{!m3e:%{!m4:-m3}}" + "-musermode %{!mb:-ml} %{!m4:%{!m4-nofpu:-m3}}" #undef LINK_SPEC #define LINK_SPEC \ -- |