Hi Ian, > This patch to the Go frontend checks for negative numbers with very > small magnitudes that will round to negative zero, and forces 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. This fixes golang.org/issue/12621. > Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed > to mainline.
unfortunately, this broke bootstrap with mpfr 2.4.2, which is still the minimum version documented in install.texi: /vol/gcc/src/hg/trunk/local/gcc/go/gofrontend/expressions.cc: In static member function 'static bool Numeric_constant::is_float_zero(const __mpfr_struct*, int)': /vol/gcc/src/hg/trunk/local/gcc/go/gofrontend/expressions.cc:16222:14: error: 'mpfr_get_flt' was not declared in this scope return mpfr_get_flt(val, GMP_RNDN) == 0; ^~~~~~~~~~~~ /vol/gcc/src/hg/trunk/local/gcc/go/gofrontend/expressions.cc:16222:14: note: suggested alternative: 'mpfr_get_ld' return mpfr_get_flt(val, GMP_RNDN) == 0; ^~~~~~~~~~~~ mpfr_get_ld Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University