[clang][docs] Fix documentation of -O
authorJessica Clarke <jrtc27@jrtc27.com>
Thu, 17 Sep 2020 12:44:01 +0000 (13:44 +0100)
committerJessica Clarke <jrtc27@jrtc27.com>
Thu, 17 Sep 2020 12:44:01 +0000 (13:44 +0100)
D79916 changed the behaviour from -O2 to -O1 but the documentation was
not updated to reflect this.

clang/docs/CommandGuide/clang.rst

index 11169e3..a24e138 100644 (file)
@@ -385,7 +385,7 @@ Code Generation Options
     :option:`-Og` Like :option:`-O1`. In future versions, this option might
     disable different optimizations in order to improve debuggability.
 
-    :option:`-O` Equivalent to :option:`-O2`.
+    :option:`-O` Equivalent to :option:`-O1`.
 
     :option:`-O4` and higher