* configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
when compiling with clang.
This commit is contained in:
parent
4a0aaad022
commit
63a45330cb
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
|
||||||
|
when compiling with clang.
|
||||||
|
|
||||||
2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
clang emits calls to abort () under some unknown conditions.
|
clang emits calls to abort () under some unknown conditions.
|
||||||
|
|
|
@ -486,7 +486,11 @@ AC_CACHE_CHECK([if compiling with clang], [grub_cv_cc_target_clang]
|
||||||
|
|
||||||
# on x86 clang doesn't support .code16
|
# on x86 clang doesn't support .code16
|
||||||
# on arm clang doesn't support .arch directive
|
# on arm clang doesn't support .arch directive
|
||||||
if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm ); then
|
# on mips clang doesn't support privilegied instructions, doubleword store/load
|
||||||
|
# and crashes with hand-written assembly
|
||||||
|
if test "x$grub_cv_cc_target_clang" = xyes && ( test "x$target_cpu" = xi386 \
|
||||||
|
|| test "x$target_cpu" = xx86_64 || test "x$target_cpu" = xarm \
|
||||||
|
|| test "x$target_cpu" = xmips || test "x$target_cpu" = xmipsel ); then
|
||||||
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
|
TARGET_CCASFLAGS="$TARGET_CCASFLAGS -no-integrated-as"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue