summaryrefslogtreecommitdiff
path: root/libgfortran/config
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-02 08:45:08 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-02 08:45:08 +0000
commit5cb733892809c62650c94011e42d56998837fd69 (patch)
tree5fe3802e1130088354ec6021f7d70b1ba4a17bbc /libgfortran/config
parent947ccd60b0eceddb6bbe41bb06df5f629692fb54 (diff)
downloadgcc-5cb733892809c62650c94011e42d56998837fd69.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/config')
-rw-r--r--libgfortran/config/fpu-aix.h3
-rw-r--r--libgfortran/config/fpu-glibc.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/libgfortran/config/fpu-aix.h b/libgfortran/config/fpu-aix.h
index 6b44ab7c850..c1079fcc1a3 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 695b9d3fbb0..7f3c81984ab 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