This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, libatomic, alpha]: Add -mfp-trap-mode=sui to compile flags
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 18 Jul 2014 08:38:37 +0200
- Subject: [PATCH, libatomic, alpha]: Add -mfp-trap-mode=sui to compile flags
- Authentication-results: sourceware.org; auth=none
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 ;;