diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-05 19:26:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-02-05 19:26:29 +0000 |
commit | 60d25b800adf1c70231eceeca1cd3a70d009c5a9 (patch) | |
tree | 493f43b146bde311fbec921e562439cac4c81958 /gcc/go/gofrontend/expressions.h | |
parent | 354bbdb6bac8630e8f3e14d85ce9451eca8cf2a8 (diff) | |
download | gcc-60d25b800adf1c70231eceeca1cd3a70d009c5a9.zip gcc-60d25b800adf1c70231eceeca1cd3a70d009c5a9.tar.gz gcc-60d25b800adf1c70231eceeca1cd3a70d009c5a9.tar.bz2 |
compiler: rollback "avoid negative zero in float constants"
It uses functions that are not available in MPFR 2.4.2, which is the
current version supported by GCC.
Original change description:
compiler: avoid negative zero in float constants
Check for negative numbers with very small magnitudes that will round
to negative zero, and force them to positive zero instead.
This implements the spec clarification in https://golang.org/cl/14727.
The test is in https://golang.org/cl/91895.
Fixes golang/go#12621
Updates golang/go#12621
Reviewed-on: https://go-review.googlesource.com/92055
From-SVN: r257393
Diffstat (limited to 'gcc/go/gofrontend/expressions.h')
-rw-r--r-- | gcc/go/gofrontend/expressions.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/expressions.h b/gcc/go/gofrontend/expressions.h index 3acaeb2..d16a284 100644 --- a/gcc/go/gofrontend/expressions.h +++ b/gcc/go/gofrontend/expressions.h @@ -4220,9 +4220,6 @@ class Numeric_constant bool check_complex_type(Complex_type*, bool, Location); - static bool - is_float_zero(const mpfr_t, int bits); - // The kinds of constants. enum Classification { |