[GHC] #16131: -ddump-cmm doesn't work when compiling cmm files

#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

#16131: -ddump-cmm doesn't work when compiling cmm files -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: new => patch Comment: https://gitlab.haskell.org/ghc/ghc/merge_requests/76 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16131#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16131: -ddump-cmm doesn't work when compiling cmm files -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16131#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16131: -ddump-cmm doesn't work when compiling cmm files
-------------------------------------+-------------------------------------
Reporter: osa1 | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ömer Sinan Ağacan
participants (1)
-
GHC