This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]