[commit: ghc] master: Honour -dsuppress-uniques more thoroughly (8d401e5)
git at git.haskell.org
git at git.haskell.org
Fri Feb 17 13:16:31 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8d401e50ce35525dcdc6a21fcf952c3cbf3a72d4/ghc
>---------------------------------------------------------------
commit 8d401e50ce35525dcdc6a21fcf952c3cbf3a72d4
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Fri Feb 17 13:14:00 2017 +0000
Honour -dsuppress-uniques more thoroughly
I found that tests
parser/should_compile/DumpRenamedAst
and friends were printing uniques, which makes the test fragile.
But -dsuppress-uniques made no difference! It turned out that
pprName wasn't properly consulting Opt_SuppressUniques.
This patch fixes the problem, and updates those three tests to
use -dsuppress-uniques
>---------------------------------------------------------------
8d401e50ce35525dcdc6a21fcf952c3cbf3a72d4
compiler/basicTypes/Name.hs | 16 +++++---
compiler/basicTypes/Unique.hs | 13 ++++--
compiler/cmm/CLabel.hs | 24 +++++------
compiler/llvmGen/Llvm/PpLlvm.hs | 2 +-
compiler/nativeGen/PPC/Ppr.hs | 12 +++---
compiler/nativeGen/Reg.hs | 10 ++---
compiler/nativeGen/SPARC/Ppr.hs | 12 +++---
compiler/nativeGen/X86/Ppr.hs | 12 +++---
.../parser/should_compile/DumpParsedAst.stderr | 2 +-
.../parser/should_compile/DumpRenamedAst.stderr | 46 +++++++++++-----------
.../should_compile/DumpTypecheckedAst.stderr | 26 ++++++------
testsuite/tests/parser/should_compile/all.T | 6 +--
12 files changed, 96 insertions(+), 85 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 8d401e50ce35525dcdc6a21fcf952c3cbf3a72d4
More information about the ghc-commits
mailing list