-ddump-to-file should deposit files in target not source directory
One example where things can go wrong if you don't do this is if you're building GHC with dumps: the stage2 dumps will clobber the stage1 dumps.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |