[flang-commits] [flang] [flang][docs] Update the `-Ofast` description in `FlangDriver.md` (PR #180138)

Shunsuke Watanabe via flang-commits flang-commits at lists.llvm.org
Fri Feb 6 00:10:40 PST 2026


https://github.com/s-watanabe314 created https://github.com/llvm/llvm-project/pull/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`.

>From 4b07f8d9746fca370c728c47cde55a8651fe9381 Mon Sep 17 00:00:00 2001
From: s-watanabe314 <watanabe.shu-06 at fujitsu.com>
Date: Fri, 6 Feb 2026 14:06:20 +0900
Subject: [PATCH] [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`



More information about the flang-commits mailing list