aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDominique d'Humieres <dominiq@gcc.gnu.org>2019-02-02 22:44:34 +0100
committerDominique d'Humieres <dominiq@gcc.gnu.org>2019-02-02 22:44:34 +0100
commit1bdfc7aab0be819a3ab8cf2a2b4162ab203d94d5 (patch)
treef9b984070b05ec71a5823e9d08b93bba74b30f34 /gcc
parent5197d79937c3dcf57e1a3be4e624947220d4c8f8 (diff)
downloadgcc-1bdfc7aab0be819a3ab8cf2a2b4162ab203d94d5.zip
gcc-1bdfc7aab0be819a3ab8cf2a2b4162ab203d94d5.tar.gz
gcc-1bdfc7aab0be819a3ab8cf2a2b4162ab203d94d5.tar.bz2
re PR fortran/81344 (Can't disable -ffpe-trap (or not documented))
2019-02-02 Dominique d'Humieres <dominiq@gcc.gnu.org> PR fortran/81344 * invoke.texi: Document the behavior of repeated -ffpe-trap and -ffpe-summary. From-SVN: r268480
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/invoke.texi9
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 622af1e..6f0e9e6 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2019-02-02 Dominique d'Humieres <dominiq@gcc.gnu.org>
+
+ PR fortran/81344
+ * invoke.texi: Document the behavior of repeated -ffpe-trap
+ and -ffpe-summary.
+
2019-02-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/88298
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi
index deaf8eb..0e0c2bc 100644
--- a/gcc/fortran/invoke.texi
+++ b/gcc/fortran/invoke.texi
@@ -1203,6 +1203,12 @@ The first three exceptions (@samp{invalid}, @samp{zero}, and
has provisions for dealing with these exceptions, enabling traps for
these three exceptions is probably a good idea.
+If the option is used more than once in the command line, the lists will
+be joined: '@code{ffpe-trap=}@var{list1} @code{ffpe-trap=}@var{list2}'
+is equivalent to @code{ffpe-trap=}@var{list1,list2}.
+
+Note that once enabled an exception cannot be disabled (no negative form).
+
Many, if not most, floating point operations incur loss of precision
due to rounding, and hence the @code{ffpe-trap=inexact} is likely to
be uninteresting in practice.
@@ -1218,6 +1224,9 @@ of the following exceptions: @samp{invalid}, @samp{zero}, @samp{overflow},
@samp{underflow}, @samp{inexact} and @samp{denormal}. (See
@option{-ffpe-trap} for a description of the exceptions.)
+If the option is used more than once in the command line, only the
+last one will be used.
+
By default, a summary for all exceptions but @samp{inexact} is shown.
@item -fno-backtrace