]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Don't impose march=loongson2f on loongson platform. (It
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 19 Aug 2011 20:49:48 +0000 (22:49 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 19 Aug 2011 20:49:48 +0000 (22:49 +0200)
can still be specified in TARGET_CFLAGS)

ChangeLog
configure.ac

index fdc89b5a2d1308b0542850d486a144de619dd221..c2f501c00d86d701ab83c74e3c26f369e03ce16f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Don't impose march=loongson2f on loongson platform. (It
+       can still be specified in TARGET_CFLAGS)
+
 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
index 224c9c9de2e23b4316f7b2e399d3202f9eb51f37..9cfbd2340c5f9f2c7b5661c46a21a493e2c8eb0a 100644 (file)
@@ -412,23 +412,6 @@ if test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
   TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
 fi
 
-if test "${target_cpu}-${platform}" = mipsel-loongson; then
-  AC_CACHE_CHECK([whether -march=loongson2f works], [grub_cv_cc_march_loongson2f], [
-    SAVE_CFLAGS="$CFLAGS"
-    CFLAGS="$CFLAGS -march=loongson2f"
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
-        [grub_cv_cc_march_loongson2f=yes],
-        [grub_cv_cc_march_loongson2f=no])
-    CFLAGS="$SAVE_CFLAGS"
-  ])
-
-  if test "x$grub_cv_cc_march_loongson2f" = xyes; then
-    TARGET_CFLAGS="$TARGET_CFLAGS -march=loongson2f"
-  else
-    TARGET_CFLAGS="$TARGET_CFLAGS -march=mips3"
-  fi
-fi
-
 grub_apple_target_cc
 if test x$grub_cv_apple_target_cc = xyes ; then
   TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"