How to disable `-flocal-float-out`?

Trying to use -fno-local-float-out results in “ghc-9.4.8: unrecognised flag: -fno-local-float-out”. And sure enough it doesn’t seem to exist if I run ghc --show-options | grep -e '-fno-local-float-out'. The documentation references fno-local-float-out in 5.3. Optimisation (code improvement) — Glasgow Haskell Compiler 9.12.1 User's Guide , what gives?

For context, I’m working on my own haskell-like language and I’d want to benchmark it against ghc, and I want to disable statically discoverable rearrangement optimizations which I don’t have yet to get a better apples-to-apples comparison of the runtime.

sorry, seems I just needed to update my ghc version. I saw reference to a paper from 96 and somehow assumed this flag was present for long time, but it actually wasn’t. My mistake

Great to see you’ve figured it out. It would be nice if compiler flags also listed in which version they were introduced to avoid this kind of confusion.

Edit: some options do have a since: field, it would be nice if that was done more consistently.

That sounds interesting. Please do post something about it here in the future!