[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
+ empty list to disable halting. In the absence of this option, the program runs
+ with traps disabled (equivalent to passing `none`). If `-ffpe-trap=` occurs
+ more than once, only the last one takes effect. Processor dependent (Fortran
+ 2023, 17.6) initial halting control is implemented for x86 and glibc-based
+ (Linux) targets only; on other targets a warning is emitted and the option is
----------------
tarunprabhu wrote:
If this only works with glibc on Linux, then Linux should not be parenthetical.
```suggestion
Linux targets only; on other targets a warning is emitted and the option is
```
https://github.com/llvm/llvm-project/pull/208828
More information about the flang-commits
mailing list