]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Allow clang compilation for thumb with -mthumb-interwork.
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 22 Feb 2015 16:45:30 +0000 (17:45 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 23 Feb 2015 21:29:33 +0000 (22:29 +0100)
clang already uses -mthumb-interwork behaviour even thout it doesn't
support the option.

configure.ac

index 35f430a0ae75f2e1828bfbba78726797d1fd50b5..8f9ab81335718fc7d16a573e93403432bb8ce55f 100644 (file)
@@ -1029,20 +1029,9 @@ if test "x$target_cpu" = xarm; then
   ])
   if test "x$grub_cv_cc_mthumb_interwork" = xyes; then
     TARGET_CFLAGS="$TARGET_CFLAGS -mthumb-interwork"
+  # Clang defaults to thumb interworking
   elif test "x$grub_cv_cc_target_clang" = xno ; then
     AC_MSG_ERROR([your compiler doesn't support -mthumb-interwork])
-  else
-    CFLAGS="$TARGET_CFLAGS"
-    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
-#if defined (__thumb__) && !defined (__thumb2__)
-#error thumb without interworking
-#endif
-]])],
-                     [no_interwork_ok=yes],
-                     [no_interwork_ok=no])
-    if test x$no_interwork_ok = xno ; then
-       AC_MSG_ERROR([attempt to compile to thumb with no thumb interwork])
-    fi
   fi
 fi