[commit: ghc] master: Make XNegativeLiterals treat -0.0 as negative 0 (0279b74)
git at git.haskell.org
git at git.haskell.org
Tue May 9 02:27:09 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0279b745c29213c479b61f864ca5d3d2ae76ac77/ghc
>---------------------------------------------------------------
commit 0279b745c29213c479b61f864ca5d3d2ae76ac77
Author: Nolan <nolane16 at gmail.com>
Date: Mon May 8 17:46:22 2017 -0400
Make XNegativeLiterals treat -0.0 as negative 0
Reviewers: austin, goldfire, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie, mpickering
GHC Trac Issues: #13211
Differential Revision: https://phabricator.haskell.org/D3543
>---------------------------------------------------------------
0279b745c29213c479b61f864ca5d3d2ae76ac77
compiler/basicTypes/BasicTypes.hs | 62 +++++++++++++++++++---
compiler/deSugar/Check.hs | 20 ++++---
compiler/deSugar/DsExpr.hs | 4 +-
compiler/deSugar/DsMeta.hs | 7 +--
compiler/deSugar/Match.hs | 8 +--
compiler/deSugar/MatchLit.hs | 21 ++++----
compiler/hsSyn/Convert.hs | 11 ++--
compiler/hsSyn/HsLit.hs | 32 ++++++-----
compiler/hsSyn/HsUtils.hs | 10 ++--
compiler/parser/Lexer.x | 29 ++++++----
compiler/parser/Parser.y | 28 +++++-----
compiler/rename/RnExpr.hs | 7 ++-
compiler/rename/RnPat.hs | 60 ++++++++++++++++-----
compiler/typecheck/Inst.hs | 6 +--
compiler/typecheck/TcGenDeriv.hs | 9 ++--
compiler/typecheck/TcHsSyn.hs | 12 ++---
.../ghc-api/annotations-literals/literals.stdout | 12 ++---
.../tests/ghc-api/annotations-literals/parsed.hs | 4 +-
testsuite/tests/parser/should_run/NegativeZero.hs | 25 +++++++++
.../should_run/NegativeZero.stdout} | 1 +
testsuite/tests/parser/should_run/all.T | 1 +
testsuite/tests/perf/compiler/all.T | 6 ++-
22 files changed, 253 insertions(+), 122 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 0279b745c29213c479b61f864ca5d3d2ae76ac77
More information about the ghc-commits
mailing list