[flang-commits] [clang] [flang] [llvm] [flang][flang-rt] Add -ffpe-trap= to set the initial FP exception halting mode (PR #208828)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Wed Jul 22 07:33:04 PDT 2026
================
@@ -34,6 +34,17 @@ page](https://llvm.org/releases/).
## Non-comprehensive list of changes in this release
## New Compiler Flags
+- The `-ffpe-trap=` flag is now supported. It sets the initial floating-point
+ exception halting mode for the main program to a comma-separated list of
+ `invalid`, `zero`, `overflow`, `underflow`, and `inexact` (plus the
+ non-standard, gfortran-compatible extension `denormal`). Use `none` or an
----------------
tarunprabhu wrote:
The text says that the initial floating-point exception mode is set to a comma-separated list. I feel that the text in the option documentation was clearer. Perhaps something like the following suggestion instead. I also think that there is no need for the gfortran extension to be parenthetical.
```suggestion
- The `-ffpe-trap=` flag is now supported. The value provided to this option
is a comma-separated list of the exceptions to halt on:
`invalid`, `zero`, `overflow`, `underflow`, and `inexact`, plus the
non-standard, gfortran-compatible extension `denormal`. Use `none` or an
```
https://github.com/llvm/llvm-project/pull/208828
More information about the flang-commits
mailing list