Hello!

-mfp-trap-mode=sui is needed in addition to -mieee to compile fenv.c
for older alphas to generate inexact exceptions.

2013-07-18  Uros Bizjak  <ubiz...@gmail.com>

    * configure.tgt (alpha*): Add -mfp-trap-mode=sui to XCFLAGS.

Tested on alpha-linux-gnu, committed to mainline SVN.

Uros.

Index: configure.tgt
===================================================================
--- configure.tgt       (revision 212748)
+++ configure.tgt       (working copy)
@@ -27,7 +27,11 @@
 # work out any special compilation flags as necessary.

 case "${target_cpu}" in
-  alpha*)              ARCH=alpha ;;
+  alpha*)
+       # fenv.c needs this option to generate inexact exceptions.
+       XCFLAGS="${XCFLAGS} -mfp-trap-mode=sui"
+       ARCH=alpha
+       ;;
   rs6000 | powerpc*)   ARCH=powerpc ;;
   sh*)                 ARCH=sh ;;

Reply via email to