[flang-commits] [clang] [flang] [llvm] [flang][flang-rt] Add -ffpe-trap= to set the initial FP exception halting mode (PR #208828)

Vineet Kumar via flang-commits flang-commits at lists.llvm.org
Tue Jul 28 08:58:42 PDT 2026


================
@@ -348,31 +348,31 @@ approximation from the target triple; the runtime is the definitive authority on
 which exceptions can be trapped.
 
 The table below summarizes the halting behavior for different system
-configurations. In it, ``halts`` = the exception is trapped, ``ignored`` = no
-run-time effect, "Standard" = ``invalid``, ``zero``, ``overflow``,
-``underflow``, ``inexact`` exceptions, and "Others" = any non-x86 architecture
-(AArch64, PowerPC, RISC-V, ...):
-
-+--------+-----------+----------+----------+-------------------+
-| Arch   | C library | Standard | denormal | Warning           |
-+========+===========+==========+==========+===================+
-| x86    | glibc     | halts    | halts    | none              |
-+--------+-----------+----------+----------+-------------------+
-| Others | glibc     | halts    | ignored  | ``denormal`` only |
-+--------+-----------+----------+----------+-------------------+
-| x86    | non-glibc | ignored  | ignored  | none (silent)     |
-+--------+-----------+----------+----------+-------------------+
-| Others | non-glibc | ignored  | ignored  | always            |
-+--------+-----------+----------+----------+-------------------+
+configurations, where "glibc" means a glibc-based C library (in practice Linux)
+and "Standard" is the ``invalid``, ``zero``, ``overflow``, ``underflow``, and
+``inexact`` exceptions. In the Standard and Denormal columns, ``halts`` = the
+exception is trapped, ``ignores`` = the request is silently ignored at run time,
+and ``warns`` = the compiler warns and the request is ignored at run time.
+
++---------+-------+----------+----------+
+| Arch    | glibc | Standard | Denormal |
++=========+=======+==========+==========+
+| x86     | yes   | halts    | halts    |
----------------
vntkmr wrote:

It's actually a great idea! Makes things much clearer. Done.
I checked the HTML, I am also attaching a screenshot of the latest version for future reference.
<img width="1403" height="1084" alt="Screenshot 2026-07-28 at 11 54 22" src="https://github.com/user-attachments/assets/2465413e-eb0e-47d8-8363-3770dcdb6210" />


https://github.com/llvm/llvm-project/pull/208828


More information about the flang-commits mailing list