This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] test-fpucw-ieee: Don't use _FPU_IEEE if not defined


Not all architectures define this value, and if they don't,
just let the test run the same as test-fpucw, with __fpu_control
set to _FPU_DEFAULT explicitly.
---
 ChangeLog              |    5 +++++
 math/test-fpucw-ieee.c |    7 +++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>

	* math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
	Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.

diff --git a/math/test-fpucw-ieee.c b/math/test-fpucw-ieee.c
index ae5fc73..7596486 100644
--- a/math/test-fpucw-ieee.c
+++ b/math/test-fpucw-ieee.c
@@ -16,9 +16,12 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#define FPU_CONTROL _FPU_IEEE
+#ifdef _FPU_IEEE
+/* Some architectures don't have _FPU_IEEE.  */
+# define FPU_CONTROL _FPU_IEEE
+#endif
 
 #include "test-fpucw.c"
 
 /* Preempt the library's definition of `__fpu_control'.  */
-fpu_control_t __fpu_control = _FPU_IEEE;
+fpu_control_t __fpu_control = FPU_CONTROL;
-- 
1.7.1


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