Enable new warning for fragile/incorrect 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. Test Plan: Validate on Linux and Windows Reviewers: austin, angerman, simonmar, bgamari, Phyx Reviewed By: bgamari Subscribers: thomie, snowleopard Differential Revision: https://phabricator.haskell.org/D3278
Showing
- compiler/utils/Util.hs 1 addition, 1 deletioncompiler/utils/Util.hs
- ghc/GHCi/UI.hs 1 addition, 1 deletionghc/GHCi/UI.hs
- includes/CodeGen.Platform.hs 28 additions, 24 deletionsincludes/CodeGen.Platform.hs
- includes/Stg.h 3 additions, 3 deletionsincludes/Stg.h
- includes/rts/OSThreads.h 2 additions, 2 deletionsincludes/rts/OSThreads.h
- includes/stg/HaskellMachRegs.h 28 additions, 8 deletionsincludes/stg/HaskellMachRegs.h
- includes/stg/MachRegs.h 7 additions, 7 deletionsincludes/stg/MachRegs.h
- includes/stg/RtsMachRegs.h 28 additions, 8 deletionsincludes/stg/RtsMachRegs.h
- includes/stg/SMP.h 20 additions, 17 deletionsincludes/stg/SMP.h
- libraries/ghci/GHCi/ObjLink.hs 1 addition, 1 deletionlibraries/ghci/GHCi/ObjLink.hs
- mk/warnings.mk 2 additions, 2 deletionsmk/warnings.mk
- rts/LinkerInternals.h 2 additions, 1 deletionrts/LinkerInternals.h
- rts/OldARMAtomic.c 1 addition, 1 deletionrts/OldARMAtomic.c
- rts/PrimOps.cmm 2 additions, 2 deletionsrts/PrimOps.cmm
- rts/RtsUtils.c 2 additions, 2 deletionsrts/RtsUtils.c
- rts/Schedule.c 8 additions, 8 deletionsrts/Schedule.c
- rts/Threads.c 1 addition, 1 deletionrts/Threads.c
- rts/ghc.mk 4 additions, 1 deletionrts/ghc.mk
- rts/linker/MachO.c 6 additions, 4 deletionsrts/linker/MachO.c
- rts/posix/GetTime.c 1 addition, 1 deletionrts/posix/GetTime.c
Loading
Please register or sign in to comment