Skip to content

Commit

Permalink
configure.ac: don't use -msoft-float for arm64
Browse files Browse the repository at this point in the history
aarch64 toolchains do not support the -msoft-float option added by
commit 3661261. Insted, for arm64 use -march=armv8-a+nofp+nosimd.

Reported-by: Ryan Harkin <[email protected]>
  • Loading branch information
Leif Lindholm committed Jan 28, 2015
1 parent 9883307 commit 2da4171
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,11 @@ fi
# that floats are a good fit to run instead of what's written in the code.
# Given that floating point unit is disabled (if present to begin with)
# when GRUB is running which may result in various hard crashes.
TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float"
if test "x$target_cpu" = xarm64; then
TARGET_CFLAGS="$TARGET_CFLAGS -march=armv8-a+nofp+nosimd"
else
TARGET_CFLAGS="$TARGET_CFLAGS -msoft-float"
fi

# By default, GCC 4.4 generates .eh_frame sections containing unwind
# information in some cases where it previously did not. GRUB doesn't need
Expand Down

0 comments on commit 2da4171

Please sign in to comment.