[commit: ghc] master: Improve core linter so it catches unsafeCoerce problems (T9122) (76b1e11)

git at git.haskell.org git at git.haskell.org
Sat Mar 7 17:15:29 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/76b1e11943d794da61d342c072a783862a9e2a1a/ghc

>---------------------------------------------------------------

commit 76b1e11943d794da61d342c072a783862a9e2a1a
Author: Alexander Vershilov <alexander.vershilov at gmail.com>
Date:   Sat Mar 7 11:13:12 2015 -0600

    Improve core linter so it catches unsafeCoerce problems (T9122)
    
    Summary:
    This is a draft of the patch that is sent for review.
    
    In this patch required changes in linter were introduced
    and actual check:
    
     - new helper function: primRepSizeB
     - primRep check for floating
     - Add access to dynamic flags in linter.
     - Implement additional lint rules.
    
    Reviewers: austin, goldfire, simonpj
    
    Reviewed By: simonpj
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D637
    
    GHC Trac Issues: #9122


>---------------------------------------------------------------

76b1e11943d794da61d342c072a783862a9e2a1a
 compiler/coreSyn/CoreLint.hs                     |  98 +++++++++++++++++++----
 compiler/iface/TcIface.hs                        |   3 +-
 compiler/types/TyCon.hs                          |   9 +++
 docs/core-spec/CoreLint.ott                      |   8 +-
 docs/core-spec/CoreSyn.ott                       |   2 +
 docs/core-spec/core-spec.mng                     |  12 +++
 docs/core-spec/core-spec.pdf                     | Bin 339243 -> 340768 bytes
 testsuite/tests/callarity/unittest/CallArity1.hs |   2 +-
 8 files changed, 113 insertions(+), 21 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 76b1e11943d794da61d342c072a783862a9e2a1a


More information about the ghc-commits mailing list