aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-02-06 15:30:06 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-02-06 15:30:06 +0000
commit3e12b42be93c14a599df9c96e58ba66cd864bf77 (patch)
tree4d375844ea14bdf771954d9e232206931c69405e /libgo
parent3ca8e91f0e4452f618dbdc82090ecf47d1bd984c (diff)
downloadgcc-3e12b42be93c14a599df9c96e58ba66cd864bf77.zip
gcc-3e12b42be93c14a599df9c96e58ba66cd864bf77.tar.gz
gcc-3e12b42be93c14a599df9c96e58ba66cd864bf77.tar.bz2
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 Reviewed-on: https://go-review.googlesource.com/92175 From-SVN: r257415
Diffstat (limited to 'libgo')
0 files changed, 0 insertions, 0 deletions