OSDN Git Service

Fix some sh4 specific entries
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 25 Apr 2008 16:50:50 +0000 (16:50 -0000)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 25 Apr 2008 16:50:50 +0000 (16:50 -0000)
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
extra/Configs/Config.in
test/math/Makefile

index f0abb10..152bff8 100644 (file)
@@ -194,6 +194,7 @@ config TARGET_SUBARCH
        string
        default "e500" if CONFIG_E500
        default "classic" if CONFIG_CLASSIC
+       default "sh4" if CONFIG_SH4
        default ""
 
 source "extra/Configs/Config.in.arch"
index 7ad92b1..9e20026 100644 (file)
@@ -10,6 +10,11 @@ include ../Test.mak
 
 DODIFF_rint     := 1
 
+# NOTE: For basic-test we must disable the floating point optimization.
+#       Only for sh architecture because in the other architecture are disabled.
+ifeq ($(TARGET_ARCH),sh)
+CFLAGS_basic-test := -mieee
+endif
 EXTRA_CFLAGS    := -DNO_LONG_DOUBLE -fno-builtin
 EXTRA_LDFLAGS   := -lm