aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-strlen.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-02-05 15:28:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-02-05 15:28:59 +0000
commit354bbdb6bac8630e8f3e14d85ce9451eca8cf2a8 (patch)
treeb35c958fa28f08c28032e35dd056af7d988acc37 /gcc/tree-ssa-strlen.c
parent5f25b464a8e3935b9b1bd47e6b652e79d4824102 (diff)
downloadgcc-354bbdb6bac8630e8f3e14d85ce9451eca8cf2a8.zip
gcc-354bbdb6bac8630e8f3e14d85ce9451eca8cf2a8.tar.gz
gcc-354bbdb6bac8630e8f3e14d85ce9451eca8cf2a8.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/91915 From-SVN: r257390
Diffstat (limited to 'gcc/tree-ssa-strlen.c')
0 files changed, 0 insertions, 0 deletions