[Git][ghc/ghc][master] 2 commits: Document how -O3 is handled by GHC

Marge Bot gitlab at gitlab.haskell.org
Mon Apr 15 10:26:34 UTC 2019



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
b024e289 by Giles Anderson at 2019-04-15T10:20:29Z
Document how -O3 is handled by GHC

    -O2 is the highest value of optimization.
    -O3 will be reverted to -O2.

- - - - -
4b1ef06d by Giles Anderson at 2019-04-15T10:20:29Z
Apply suggestion to docs/users_guide/using-optimisation.rst
- - - - -


1 changed file:

- docs/users_guide/using-optimisation.rst


Changes:

=====================================
docs/users_guide/using-optimisation.rst
=====================================
@@ -88,6 +88,17 @@ So, for example, ``ghc -c Foo.hs``
     runtime or space *worse* if you're unlucky. They are normally turned
     on or off individually.
 
+.. ghc-flag:: -O⟨n⟩
+    :shortdesc: Any -On where n > 2 is the same as -O2.
+    :type: dynamic
+    :reverse: -O0
+    :category: optimization-levels
+
+    .. index::
+       single: optimise; aggressively
+
+    Any -On where n > 2 is the same as -O2.
+
 We don't use a ``-O*`` flag for day-to-day work. We use ``-O`` to get
 respectable speed; e.g., when we want to measure something. When we want
 to go for broke, we tend to use ``-O2`` (and we go for lots of coffee



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/1825f50d1736401724ef644e4d481cc26e8f47e5...4b1ef06d45fb3cd226b5ec4217e975d48b85e645

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/compare/1825f50d1736401724ef644e4d481cc26e8f47e5...4b1ef06d45fb3cd226b5ec4217e975d48b85e645
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190415/1132ba98/attachment.html>


More information about the ghc-commits mailing list