[commit: ghc] wip/erikd/rts: Enable new warning for bad CPP #if usage (8bc809b)

git at git.haskell.org git at git.haskell.org
Sat Mar 4 06:16:47 UTC 2017


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

On branch  : wip/erikd/rts
Link       : http://ghc.haskell.org/trac/ghc/changeset/8bc809b7d3bc416d63eba96013553498c95ecc6f/ghc

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

commit 8bc809b7d3bc416d63eba96013553498c95ecc6f
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Sun Oct 23 08:30:19 2016 +1100

    Enable new warning for bad CPP #if usage
    
    The C code in the RTS now gets built with `-Wundef` and the Haskell code
    (stages 1 and 2 only) with `-Wcpp-undef`. We now get warnings whereever
    `#if` is used on undefined identifiers.


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

8bc809b7d3bc416d63eba96013553498c95ecc6f
 compiler/utils/Util.hs         |  2 +-
 ghc/GHCi/UI.hs                 |  2 +-
 includes/CodeGen.Platform.hs   | 51 ++++++++++++++++++++++--------------------
 includes/Stg.h                 |  6 ++---
 includes/rts/OSThreads.h       |  4 ++--
 includes/stg/MachRegs.h        | 14 ++++++------
 includes/stg/SMP.h             | 37 ++++++++++++++++--------------
 libraries/ghci/GHCi/ObjLink.hs |  2 +-
 mk/warnings.mk                 |  4 ++--
 rts/LinkerInternals.h          |  3 ++-
 rts/OldARMAtomic.c             |  2 +-
 rts/RtsUtils.c                 |  4 ++--
 rts/Schedule.c                 | 16 ++++++-------
 rts/Threads.c                  |  2 +-
 rts/ghc.mk                     |  3 +++
 rts/posix/GetTime.c            |  2 +-
 rts/posix/OSMem.c              |  8 +++----
 rts/sm/CNF.c                   |  2 +-
 rts/sm/GCUtils.c               |  2 +-
 rts/sm/GCUtils.h               |  2 +-
 rts/sm/MBlock.c                |  2 +-
 21 files changed, 90 insertions(+), 80 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 8bc809b7d3bc416d63eba96013553498c95ecc6f


More information about the ghc-commits mailing list