summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-10-11 20:16:01 (GMT)
committerGitHub <noreply@github.com>2023-10-11 20:16:01 (GMT)
commit85c176247d2c434d9db535999a285daa13aa50b5 (patch)
treef2b7f2864585b3dd019d6f9adbe941d532eacc74 /config
parent6f56d06f6af371b8b8c58079d8200647df249ee2 (diff)
downloadhdf5-85c176247d2c434d9db535999a285daa13aa50b5.zip
hdf5-85c176247d2c434d9db535999a285daa13aa50b5.tar.gz
hdf5-85c176247d2c434d9db535999a285daa13aa50b5.tar.bz2
Address nagfor exceptions stoppage. (#3658)
* added cmake ieee flag for nagfor * generalized determining the nag compiler * fixing some misc. NAG warnings
Diffstat (limited to 'config')
-rw-r--r--config/cmake/HDFFortranCompilerFlags.cmake5
-rw-r--r--config/linux-gnulibc14
2 files changed, 7 insertions, 2 deletions
diff --git a/config/cmake/HDFFortranCompilerFlags.cmake b/config/cmake/HDFFortranCompilerFlags.cmake
index 86d0431..e08df05 100644
--- a/config/cmake/HDFFortranCompilerFlags.cmake
+++ b/config/cmake/HDFFortranCompilerFlags.cmake
@@ -52,6 +52,11 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_Fortran_COMPILER_VERS
endif ()
endif ()
+if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG")
+ message (STATUS "... Select IEEE floating-point mode full")
+ list (APPEND HDF5_CMAKE_Fortran_FLAGS "-ieee=full")
+endif ()
+
if (NOT MSVC AND NOT MINGW)
# General flags
if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 95d7d64..9a7dbdb 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -92,7 +92,7 @@ else
fc_version_info=`$FC -V | grep Absoft`
;;
# The NAG compiler
- nagfor*|nagftn*)
+ *nagfor*|*nagftn*)
RM='rm -f'
tmpfile=/tmp/cmpver.$$
$FC -V >& $tmpfile
@@ -163,7 +163,7 @@ case $FC_BASENAME in
# NOTE: The default is -ieee=stop, which will cause problems
# when the H5T module performs floating-point type
# introspection
- H5_FCFLAGS="$H5_FCFLAGS -ieee=full"
+ AM_FCFLAGS="$AM_FCFLAGS -ieee=full"
FSEARCH_DIRS=""
# Production