From 5b0936da944d0e54e9efd0cac3b295553e31e8f2 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 2 Jul 2014 10:45:08 +0200 Subject: configure.host (ieee_flags): Add -mieee for alpha*. libgfortran/ChangeLog: * configure.host (ieee_flags): Add -mieee for alpha*. * config/fpu-glibc.h (support_fpu_rounding_mode): Correctly handle GFC_FPE_UPWARD, GFC_FPE_DOWNWARD and GFC_FPE_TOWARDZERO. * config/fpu-aix.h (support_fpu_rounding_mode): Ditto. testsuite/ChangeLog: * gfortran.dg/ieee/ieee_1.F90 (dg-additional-options): Remove -O0. * gfortran.dg/ieee/ieee_rounding_1.f90 (dg-additional-options): Add. From-SVN: r212224 --- libgfortran/config/fpu-aix.h | 3 +++ libgfortran/config/fpu-glibc.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'libgfortran/config') diff --git a/libgfortran/config/fpu-aix.h b/libgfortran/config/fpu-aix.h index 6b44ab7..c1079fc 100644 --- a/libgfortran/config/fpu-aix.h +++ b/libgfortran/config/fpu-aix.h @@ -372,18 +372,21 @@ support_fpu_rounding_mode (int mode) return 0; #endif + case GFC_FPE_UPWARD: #ifdef FE_UPWARD return 1; #else return 0; #endif + case GFC_FPE_DOWNWARD: #ifdef FE_DOWNWARD return 1; #else return 0; #endif + case GFC_FPE_TOWARDZERO: #ifdef FE_TOWARDZERO return 1; #else diff --git a/libgfortran/config/fpu-glibc.h b/libgfortran/config/fpu-glibc.h index 695b9d3..7f3c819 100644 --- a/libgfortran/config/fpu-glibc.h +++ b/libgfortran/config/fpu-glibc.h @@ -387,18 +387,21 @@ support_fpu_rounding_mode (int mode) return 0; #endif + case GFC_FPE_UPWARD: #ifdef FE_UPWARD return 1; #else return 0; #endif + case GFC_FPE_DOWNWARD: #ifdef FE_DOWNWARD return 1; #else return 0; #endif + case GFC_FPE_TOWARDZERO: #ifdef FE_TOWARDZERO return 1; #else -- cgit v1.1