1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-25 20:50:31 +02:00

Ask for IEEE floating point behavior on Alpha and SH.

* configure.in (CPPFLAGS): Add `-mieee' or `-ieee' on Alpha and SH.

* libguile/numbers.c (guile_ieee_init): Make sure `-mieee' was passed
  when using GCC on Alpha.

* NEWS: Update.
This commit is contained in:
Ludovic Courtès 2009-05-11 22:11:25 +02:00
parent e9c9fd3d99
commit cabfe198fd
3 changed files with 42 additions and 0 deletions

View file

@ -637,6 +637,13 @@ guile_ieee_init (void)
#if defined (HAVE_ISNAN)
#if defined __GNUC__ && defined __alpha__ && !defined _IEEE_FP
/* On Alpha GCC must be passed `-mieee' to provide proper NaN handling.
See http://lists.gnu.org/archive/html/bug-gnulib/2009-05/msg00010.html
for more details. */
# error NaN handling will not work when compiling without -mieee
#endif
#ifdef NAN
/* C99 NAN, when available */
guile_NaN = NAN;