haskell / haskell/cabal

"late" profiling detail should NOT fall back to `-fprof-auto-top`.

Open
#8,845 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

I think it is potentially very confusing and unexpected that the `late` profiling option (inplemented in #8528) falls back to `-fprof-auto-top` if your compiler version is too old. If you are specifying late detail you are not expecting the profiling option to affect the runtime characteristics of your program, because the cost centres should be inserted after profiling.

I think it makes more sense to only place cost centres if your compiler supports the requested mode.

In general, I find it a bit surprising that options are silently ignored if they are not supported, for example, if your compiler doesn't support `parMake` then the `-j` option is ignored without warning.

cc @AndreasPK

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.