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

login
register
mail settings
Submitter Uros Bizjak
Date July 18, 2014, 6:38 a.m.
Message ID <CAFULd4ba-kZpn2V0KAU2PqHBjGbUiqGjHymHyeMttp0fkZF0zA@mail.gmail.com>
Download mbox | patch
Permalink /patch/371347/
State New
Headers show

Comments

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

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