https://github.com/s-watanabe314 updated 
https://github.com/llvm/llvm-project/pull/180138

>From 4b07f8d9746fca370c728c47cde55a8651fe9381 Mon Sep 17 00:00:00 2001
From: s-watanabe314 <[email protected]>
Date: Fri, 6 Feb 2026 14:06:20 +0900
Subject: [PATCH 1/2] [flang][docs] Update the `-Ofast` description in
 `FlangDriver.md`

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`.
---
 flang/docs/FlangDriver.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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`

>From 4b8a33f99f7000b5155cb5dbca605121386d2131 Mon Sep 17 00:00:00 2001
From: s-watanabe314 <[email protected]>
Date: Tue, 10 Feb 2026 09:44:55 +0900
Subject: [PATCH 2/2] Update the help text

---
 clang/include/clang/Options/Options.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Options/Options.td 
b/clang/include/clang/Options/Options.td
index 5ecb516c2cf68..21c126950c5e0 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">;

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to