Put more info with flag description
In the user manual, consider flag -fcase-folding
.
- It appears in this table where we learn that it is implied by
-O
. - But if you click on the flag name to get more detail here, we no longer see that it's implied by -O. We just see that it defaults "on" which suggests it might be on with -O0.
The source material, in using-optimisation.rst
looks like this
.. ghc-flag:: -fcase-folding :shortdesc: Enable constant folding in case expressions. Implied by :ghc-flag:
-O`.
:type: dynamic
:reverse: -fno-case-folding
:category:
:default: on
Allow constant folding in case expressions that scrutinise some primops:
`
I think that in the "more details" page we should definitely display the "implied by -O" part, and the "reverse flag". Could we do that?
I'm not sure about the "default". It's bizarre to be implied by -O but by-default on!
Trac metadata
Trac field | Value |
---|---|
Version | 8.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |