diff options
author | Tobias Burnus <burnus@net-b.de> | 2013-07-21 13:54:27 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2013-07-21 13:54:27 +0200 |
commit | 82a4f54cc5ff37df751528d1a30e9b573d2496ee (patch) | |
tree | eb32a590b892e8caf501e4b6d7803bb72a37b2fc /libgfortran/config.h.in | |
parent | 3b833dcda53c814695ce250f91ae769d20962d75 (diff) |
re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2013-07-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35862
* libgfortran.h (GFC_FPE_DOWNWARD, GFC_FPE_TONEAREST,
GFC_FPE_TOWARDZERO, GFC_FPE_UPWARD): New defines.
2013-07-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35862
* libgfortran.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): New prototypes.
* config/fpu-387.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): New functions.
* config/fpu-aix.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): Ditto.
* config/fpu-generic.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): Ditto.
* config/fpu-glibc.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): Ditto.
* config/fpu-sysv.h (set_fpu_rounding_mode,
get_fpu_rounding_mode): Ditto.
* configure.ac: Check for fp_rnd and fp_rnd_t.
* io/io.h (enum unit_round): Use GFC_FPE_* for the value.
* io/read.c (convert_real): Set FP ronding mode.
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.h.in: Regenerate.
* configure: Regenerate.
2013-07-21 Tobias Burnus <burnus@net-b.de>
PR fortran/35862
* gfortran.dg/round_4.f90: New.
Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
From-SVN: r201093
Diffstat (limited to 'libgfortran/config.h.in')
-rw-r--r-- | libgfortran/config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index 22fc4bab9a7..d7c5ceb864e 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -411,6 +411,12 @@ /* Define to 1 if the system has the type `fp_except_t'. */ #undef HAVE_FP_EXCEPT_T +/* Define to 1 if the system has the type `fp_rnd'. */ +#undef HAVE_FP_RND + +/* Define to 1 if the system has the type `fp_rnd_t'. */ +#undef HAVE_FP_RND_T + /* fp_trap is present */ #undef HAVE_FP_TRAP |