Skip to content

Commit f1f643c

Browse files
author
Andy Kaylor
committed
User manual updates
1 parent bf1e013 commit f1f643c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

clang/docs/UsersManual.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,8 +1452,6 @@ floating point semantic models: precise (the default), strict, and fast.
14521452
"fenv_access", "off", "on", "off"
14531453
"rounding_mode", "tonearest", "dynamic", "tonearest"
14541454
"contract", "on", "off", "fast"
1455-
"denormal_fp_math", "IEEE", "IEEE", "target-dependent"
1456-
"denormal_fp32_math", "IEEE","IEEE", "target-dependent"
14571455
"support_math_errno", "on", "on", "off"
14581456
"no_honor_nans", "off", "off", "on"
14591457
"no_honor_infinities", "off", "off", "on"
@@ -1462,6 +1460,14 @@ floating point semantic models: precise (the default), strict, and fast.
14621460
"allow_approximate_fns", "off", "off", "on"
14631461
"allow_reassociation", "off", "off", "on"
14641462

1463+
The ``-fp-model`` option does not modify the "fdenormal-fp-math" or
1464+
"fdenormal-fp-math-f32" settings, but it does have an impact on whether
1465+
"crtfastmath.o" is linked. Because linking "crtfastmath.o" has a global
1466+
effect on the program, and because the global denormal handling can be
1467+
changed in other ways, the state of "fdenormal-fp-math" handling cannot
1468+
be assumed in any function based on fp-model. See :ref:`crtfastmath.o`
1469+
for more details.
1470+
14651471
.. option:: -ffast-math
14661472

14671473
Enable fast-math mode. This option lets the
@@ -1537,7 +1543,6 @@ floating point semantic models: precise (the default), strict, and fast.
15371543
Also, this option resets following options to their target-dependent defaults.
15381544

15391545
* ``-f[no-]math-errno``
1540-
* ``-fdenormal-fp-math=<value>``
15411546

15421547
There is ambiguity about how ``-ffp-contract``, ``-ffast-math``,
15431548
and ``-fno-fast-math`` behave when combined. To keep the value of
@@ -1560,8 +1565,7 @@ floating point semantic models: precise (the default), strict, and fast.
15601565
``-ffp-contract`` setting is determined by the default value of
15611566
``-ffp-contract``.
15621567

1563-
Note: ``-fno-fast-math`` implies ``-fdenormal-fp-math=ieee``.
1564-
``-fno-fast-math`` causes ``crtfastmath.o`` to not be linked with code
1568+
Note: ``-fno-fast-math`` causes ``crtfastmath.o`` to not be linked with code
15651569
unless ``-mdaz-ftz`` is present.
15661570

15671571
.. option:: -fdenormal-fp-math=<value>
@@ -1694,7 +1698,6 @@ floating point semantic models: precise (the default), strict, and fast.
16941698
* ``-fsigned-zeros``
16951699
* ``-ftrapping-math``
16961700
* ``-ffp-contract=on``
1697-
* ``-fdenormal-fp-math=ieee``
16981701

16991702
There is ambiguity about how ``-ffp-contract``,
17001703
``-funsafe-math-optimizations``, and ``-fno-unsafe-math-optimizations``

0 commit comments

Comments
 (0)