From 537b531270c1c41918d3781c151fe38bb8c63c50 Mon Sep 17 00:00:00 2001
From: Uros Bizjak <ubizjak@gmail.com>
Date: Fri, 18 Jul 2014 08:34:20 +0200
Subject: [PATCH] configure.tgt (alpha*): Add -mfp-trap-mode=sui to XCFLAGS.

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

From-SVN: r212778
---
 libatomic/ChangeLog     | 4 ++++
 libatomic/configure.tgt | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/libatomic/ChangeLog b/libatomic/ChangeLog
index 4d75846be14e..921c1205eae2 100644
--- a/libatomic/ChangeLog
+++ b/libatomic/ChangeLog
@@ -1,3 +1,7 @@
+2013-07-18  Uros Bizjak  <ubizjak@gmail.com>
+
+	* configure.tgt (alpha*): Add -mfp-trap-mode=sui to XCFLAGS.
+
 2014-06-17  Kai Tietz  <ktietz@redhat.com>
 
 	* Makefile.am (libatomic_la_LDFLAGS): Add lt_host_flags.
diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt
index c53b8ce95b62..d3e01f903312 100644
--- a/libatomic/configure.tgt
+++ b/libatomic/configure.tgt
@@ -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 ;;
 
-- 
GitLab