mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 05:20:25 +08:00
libgo: Build math package with -ffp-contract=off on non-x86.
http://golang.org/issue/7074 shows that not using -ffp-contract=off produces the wrong result for math.Log2(1) on arm64. From-SVN: r208505
This commit is contained in:
parent
6c107fab45
commit
33a9145bb7
2
libgo/configure
vendored
2
libgo/configure
vendored
@ -14985,6 +14985,8 @@ $as_echo "$libgo_cv_c_fancymath" >&6; }
|
||||
MATH_FLAG=
|
||||
if test "$libgo_cv_c_fancymath" = yes; then
|
||||
MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
|
||||
else
|
||||
MATH_FLAG="-ffp-contract=off"
|
||||
fi
|
||||
|
||||
|
||||
|
@ -620,6 +620,8 @@ CFLAGS=$CFLAGS_hold])
|
||||
MATH_FLAG=
|
||||
if test "$libgo_cv_c_fancymath" = yes; then
|
||||
MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
|
||||
else
|
||||
MATH_FLAG="-ffp-contract=off"
|
||||
fi
|
||||
AC_SUBST(MATH_FLAG)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user