aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2022-08-31 19:15:20 +0200
committerFrancois-Xavier Coudert <fxcoudert@gmail.com>2022-09-19 13:03:28 +0200
commit4637a1d293c978816ad622ba33e3a32a78640edd (patch)
treef7ab4b7bcfe646712d86ef182fa888f5783c65ff /libgcc
parent0b5b8ac5cb7fe92dd17ae8bd7de84640daa59e84 (diff)
downloadgcc-4637a1d293c978816ad622ba33e3a32a78640edd.zip
gcc-4637a1d293c978816ad622ba33e3a32a78640edd.tar.gz
gcc-4637a1d293c978816ad622ba33e3a32a78640edd.tar.bz2
Fortran: F2018 rounding modes changes
Add the new IEEE_AWAY rounding mode. It is unsupported on all known targets, but could be supported by glibc and AIX as part of the C2x proposal. Testing for now is minimal. Add the optional RADIX argument to IEEE_SET_ROUNDING_MODE and IEEE_GET_ROUNDING_MODE. It is unused for now, because we do not support radices other than 2. 2022-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> gcc/fortran/ * libgfortran.h: Declare GFC_FPE_AWAY. gcc/testsuite/ * gfortran.dg/ieee/rounding_2.f90: New test. libgfortran/ * ieee/ieee_arithmetic.F90: Add RADIX argument to IEEE_SET_ROUNDING_MODE and IEEE_GET_ROUNDING_MODE. * config/fpu-387.h: Add IEEE_AWAY mode. * config/fpu-aarch64.h: Add IEEE_AWAY mode. * config/fpu-aix.h: Add IEEE_AWAY mode. * config/fpu-generic.h: Add IEEE_AWAY mode. * config/fpu-glibc.h: Add IEEE_AWAY mode. * config/fpu-sysv.h: Add IEEE_AWAY mode.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions