From eb429e06e58399fde96c4b57d5fc749606db6091 Mon Sep 17 00:00:00 2001 From: burnus Date: Sun, 21 Jul 2013 11:54:27 +0000 Subject: 2013-07-21 Tobias Burnus PR fortran/35862 * libgfortran.h (GFC_FPE_DOWNWARD, GFC_FPE_TONEAREST, GFC_FPE_TOWARDZERO, GFC_FPE_UPWARD): New defines. 2013-07-21 Tobias Burnus 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 PR fortran/35862 * gfortran.dg/round_4.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201093 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/libgfortran.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libgfortran/libgfortran.h') diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index f22da21c4c6..6e5df5b1054 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -743,9 +743,16 @@ internal_proto(gf_strerror); extern void set_fpu (void); internal_proto(set_fpu); + extern int get_fpu_except_flags (void); internal_proto(get_fpu_except_flags); +extern void set_fpu_rounding_mode (int round); +internal_proto(set_fpu_rounding_mode); + +extern int get_fpu_rounding_mode (void); +internal_proto(get_fpu_rounding_mode); + /* memory.c */ extern void *xmalloc (size_t) __attribute__ ((malloc)); -- cgit v1.2.1