Author: Shunsuke Watanabe Date: 2026-02-12T08:50:03+09:00 New Revision: dc2fc9e10bd6d8d93d91f18a60e6cd7d24ffadb9
URL: https://github.com/llvm/llvm-project/commit/dc2fc9e10bd6d8d93d91f18a60e6cd7d24ffadb9 DIFF: https://github.com/llvm/llvm-project/commit/dc2fc9e10bd6d8d93d91f18a60e6cd7d24ffadb9.diff LOG: [flang][docs] Update the `-Ofast` description in `FlangDriver.md` (#180138) After #170505, `-fno-protect-parens` is now required for flang to behave the same as `-Ofast`. This patch adds that information to the description of `-Ofast` in `FlangDriver.md`. Added: Modified: clang/include/clang/Options/Options.td flang/docs/FlangDriver.md Removed: ################################################################################ diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td index 653c103983853..5b876db25c544 100644 --- a/clang/include/clang/Options/Options.td +++ b/clang/include/clang/Options/Options.td @@ -849,7 +849,7 @@ def O_flag : Flag<["-"], "O">, Visibility<[ClangOption, CC1Option, FC1Option]>, def Ofast : Joined<["-"], "Ofast">, Group<O_Group>, Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>, HelpTextForVariants<[FlangOption, FC1Option], - "Deprecated; use '-O3 -ffast-math -fstack-arrays' for the same behavior," + "Deprecated; use '-O3 -ffast-math -fstack-arrays -fno-protect-parens' for the same behavior," " or '-O3 -fstack-arrays' to enable only conforming optimizations">, HelpText<"Deprecated; use '-O3 -ffast-math' for the same behavior," " or '-O3' to enable only conforming optimizations">; diff --git a/flang/docs/FlangDriver.md b/flang/docs/FlangDriver.md index 9953f2252218b..63f2ce3e67570 100644 --- a/flang/docs/FlangDriver.md +++ b/flang/docs/FlangDriver.md @@ -559,7 +559,7 @@ See the documentation for more details. ## Ofast and Fast Math -`-Ofast` in Flang means `-O3 -ffast-math -fstack-arrays`. +`-Ofast` in Flang means `-O3 -ffast-math -fstack-arrays -fno-protect-parens`. `-ffast-math` means the following: - `-fno-honor-infinities` _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
