[commit: ghc] master: Create empty dump files when there was nothing to dump (8cba907)

git at git.haskell.org git at git.haskell.org
Wed Dec 2 20:56:03 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8cba907ad404ba4005558b5a8966390159938172/ghc

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

commit 8cba907ad404ba4005558b5a8966390159938172
Author: Vladimir Trubilov <vtrubiloff at gmail.com>
Date:   Wed Dec 2 20:47:23 2015 +0100

    Create empty dump files when there was nothing to dump
    
    This patch creates empty dump file when GHC was run with
    `-ddump-rule-firings` (or `-ddump-rule-rewrites`) and `-ddump-to-file`
    specified, and there were no rules applied. If dump already exists it
    will be overwritten by empty one.
    
    Test Plan: ./validate
    
    Reviewers: austin, thomie, bgamari
    
    Reviewed By: thomie, bgamari
    
    Subscribers: thomie
    
    Projects: #ghc
    
    Differential Revision: https://phabricator.haskell.org/D1514
    
    GHC Trac Issues: #10320


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

8cba907ad404ba4005558b5a8966390159938172
 compiler/main/DriverPipeline.hs                |  7 +-
 compiler/main/DynFlags.hs                      |  4 +-
 compiler/main/ErrUtils.hs                      | 93 ++++++++++++++++++--------
 testsuite/tests/driver/Makefile                | 39 +++++++++++
 testsuite/tests/driver/T10320-with-rule.hs     |  9 +++
 testsuite/tests/driver/T10320-without-rules.hs |  4 ++
 testsuite/tests/driver/all.T                   | 10 +++
 7 files changed, 135 insertions(+), 31 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 8cba907ad404ba4005558b5a8966390159938172


More information about the ghc-commits mailing list