diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2011-05-20 15:55:45 +0300 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2011-05-20 15:55:45 +0300 |
commit | 57b4d355a187943b042ca3e9a86bccf74c0e0d84 (patch) | |
tree | 7735a57324efcc39f0b3ab6c3034917ad7641e3b /gcc/fortran/options.c | |
parent | 0ea80a160332d4676919e31a7bdff1d8d7100af0 (diff) | |
download | gcc-57b4d355a187943b042ca3e9a86bccf74c0e0d84.zip gcc-57b4d355a187943b042ca3e9a86bccf74c0e0d84.tar.gz gcc-57b4d355a187943b042ca3e9a86bccf74c0e0d84.tar.bz2 |
Clarify FP exception documentation and messages
From-SVN: r173944
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r-- | gcc/fortran/options.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 920b95f..4c59bd5 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -492,12 +492,14 @@ static void gfc_handle_fpe_trap_option (const char *arg) { int result, pos = 0, n; + /* precision is a backwards compatibility alias for inexact. */ static const char * const exception[] = { "invalid", "denormal", "zero", "overflow", "underflow", - "precision", NULL }; + "inexact", "precision", NULL }; static const int opt_exception[] = { GFC_FPE_INVALID, GFC_FPE_DENORMAL, GFC_FPE_ZERO, GFC_FPE_OVERFLOW, - GFC_FPE_UNDERFLOW, GFC_FPE_PRECISION, + GFC_FPE_UNDERFLOW, GFC_FPE_INEXACT, + GFC_FPE_INEXACT, 0 }; while (*arg) |