diff mbox

[libatomic,alpha] : Add -mfp-trap-mode=sui to compile flags

Message ID CAFULd4ba-kZpn2V0KAU2PqHBjGbUiqGjHymHyeMttp0fkZF0zA@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 18, 2014, 6:38 a.m. UTC
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  <ubizjak@gmail.com>

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

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

Uros.
diff mbox

Patch

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 ;;