[GHC] #16131: -ddump-cmm doesn't work when compiling cmm files
GHC
ghc-devs at haskell.org
Sat Jan 5 05:08:22 UTC 2019
#16131: -ddump-cmm doesn't work when compiling cmm files
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.3
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
I want to see Cmm generated for `StgMiscClosures.cmm` so I tried adding
`-ddump-cmm` to the command the build system runs to build it, which
doesn't work:
{{{
$ "inplace/bin/ghc-stage1" -static -O0 -H64m -Wall -Iincludes
-Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-
ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS
-DFS_NAMESPACE=rts -this-unit-id rts -dcmm-lint -i -irts -irts/dist/build
-Irts/dist/build -irts/dist/build/./autogen -Irts/dist/build/./autogen -O2
-Wcpp-undef -Wnoncanonical-monad-instances -c rts/StgMiscClosures.cmm -o
rts/dist/build/StgMiscClosures.o -fforce-recomp -ddump-cmm
}}}
Why do I need cmm dumps of cmm files?
- When building Cmm even the parser does code generation, so the Cmm after
parsing is quite different than the input and contains useful information.
- I want all macros to be expanded, running CPP manually is painful.
- I currently can't see output of Cmm optimisations when building Cmm
files.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16131>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list