# HG changeset patch # User John W. Eaton # Date 1251761388 14400 # Node ID 264fb552097384f6a862ca2100763ca3e52d48b2 # Parent b18a50c56144884e069a08d35fcc478976d554d4 abort if floating point format is not recognized as IEEE diff -r b18a50c56144 -r 264fb5520973 liboctave/ChangeLog --- a/liboctave/ChangeLog Mon Aug 31 23:24:07 2009 +0200 +++ b/liboctave/ChangeLog Mon Aug 31 19:29:48 2009 -0400 @@ -1,3 +1,8 @@ +2009-08-31 John W. Eaton + + * liboctave/lo-ieee.cc (octave_ieee_init): Abort if floating point + format is not recognized as IEEE. + 2009-08-27 John W. Eaton * str-vec.cc, str-vec.h (string_vector::string_vector (const diff -r b18a50c56144 -r 264fb5520973 liboctave/lo-ieee.cc --- a/liboctave/lo-ieee.cc Mon Aug 31 23:24:07 2009 +0200 +++ b/liboctave/lo-ieee.cc Mon Aug 31 19:29:48 2009 -0400 @@ -157,13 +157,12 @@ case oct_mach_info::flt_fmt_cray: case oct_mach_info::flt_fmt_vax_d: case oct_mach_info::flt_fmt_vax_g: - break; - default: // If the format is unknown, then you will probably not have a // useful system, but we will just issue a warning and go on... - (*current_liboctave_warning_handler) - ("lo_ieee_init: unrecognized floating point format!"); + (*current_liboctave_error_handler) + ("lo_ieee_init: floating point format is not IEEE! Maybe DLAMCH is miscompiled, or you are using some strange system without IEEE floating point math?"); + abort (); } }