diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-01-08 20:56:12 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-01-08 20:56:12 (GMT) |
commit | 7faa297ea6144a08e3e2284d3065d502c2598a87 (patch) | |
tree | 3649e5e6a599f8ef27f9af0a78dd85fbcd0fdb58 /config | |
parent | 19efec650d421d9f5c3d8baad6cedb54e935e8d5 (diff) | |
download | hdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.zip hdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.tar.gz hdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.tar.bz2 |
[svn-r9783] Purpose: Bug fix
Description: For HP-UX 11.00, the compiler generates 'floating exception'
when converting 'long double' to most of integer types.
Solution: Define a macro for all other systems except HP-UX 11.00. Hard set
this macro to 'no' in config/hpux11.00 to skip this test for HP-UX 11.00.
Platforms tested: modi4, kelgia, fuss
Diffstat (limited to 'config')
-rw-r--r-- | config/hpux11.00 | 6 | ||||
-rw-r--r-- | config/irix5.x | 3 | ||||
-rw-r--r-- | config/irix6.x | 5 |
3 files changed, 11 insertions, 3 deletions
diff --git a/config/hpux11.00 b/config/hpux11.00 index 581daf9..0979b42 100644 --- a/config/hpux11.00 +++ b/config/hpux11.00 @@ -96,3 +96,9 @@ case "X-$CXX" in PROFILE_CPPFLAGS= ;; esac + +# Set flag to avoid conversion from 'long double' to integers because of +# HP-UX's compiler problems. For HP-UX 11.00, the compiler has 'floating exception' +# when converting 'long double' to all integers except 'unsigned long long'. +# Other HP-UX systems are unknown yet. (1/8/05 - SLU) +hdf5_cv_sw_ldouble_to_integer_works=${hdf5_cv_sw_ldouble_to_integer_works='no'} diff --git a/config/irix5.x b/config/irix5.x index 77b35c8..810b221 100644 --- a/config/irix5.x +++ b/config/irix5.x @@ -53,7 +53,7 @@ esac # value conversion are broken by the compilers (as of 4/27/04 - QAK) hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_works='no'} -# Set flag to avoid conversion between 'long double' and integers because of +# Set flags to avoid conversion between 'long double' and integers because of # SGI's compiler problems. For both IRIX64 6.5 and IRIX 6.5, the compilers # have the following problems, # long double -> signed char : incorrect rounding @@ -67,3 +67,4 @@ hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_work # unsigned long or long long -> long double : correct value but incorrect bit pattern # (1/5/05 - SLU) hdf5_cv_sw_ldouble_to_int_works=${hdf5_cv_sw_ldouble_to_int_works='no'} +hdf5_cv_sw_integer_to_ldouble_works=${hdf5_cv_sw_integer_to_ldouble_works='no'} diff --git a/config/irix6.x b/config/irix6.x index 293f2c8..7a50f78 100644 --- a/config/irix6.x +++ b/config/irix6.x @@ -146,7 +146,7 @@ fi # value conversion are broken by the compilers (as of 4/27/04 - QAK) hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_works='no'} -# Set flag to avoid conversion between 'long double' and integers because of +# Set flags to avoid conversion between 'long double' and integers because of # SGI's compiler problems. For both IRIX64 6.5 and IRIX 6.5, the compilers # have the following problems, # long double -> signed char : incorrect rounding @@ -159,4 +159,5 @@ hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_work # long or long long -> long double : correct value but incorrect bit pattern # unsigned long or long long -> long double : correct value but incorrect bit pattern # (1/5/05 - SLU) -hdf5_cv_sw_ldouble_to_int_works=${hdf5_cv_sw_ldouble_to_int_works='no'} +hdf5_cv_sw_ldouble_to_integer_works=${hdf5_cv_sw_ldouble_to_integer_works='no'} +hdf5_cv_sw_integer_to_ldouble_works=${hdf5_cv_sw_integer_to_ldouble_works='no'} |