This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 5/9] Tilera (and Linux asm-generic) support for glibc
- From: Chris Metcalf <cmetcalf at tilera dot com>
- To: libc-alpha at sourceware dot org
- Cc: Arnd Bergmann <arnd at arndb dot de>, Linas Vepstas <linas at codeaurora dot org>, Guan Xuetao <gxt at mprc dot pku dot edu dot cn>, Jonas Bonn <jonas at southpole dot se>, Chen Liqin <liqin dot chen at gmail dot com>
- Date: Thu, 3 Nov 2011 16:01:53 -0400
- Subject: [PATCH 5/9] Tilera (and Linux asm-generic) support for glibc
- References: <201111031955.pA3Jt3sC024069@farm-0002.internal.tilera.com>
2011-11-03 Chris Metcalf <cmetcalf@tilera.com>
* include/fenv.h (feraiseexcept): Allow platforms with no support
for floating-point exceptions to ignore feraiseexcept() calls internally.
diff --git a/include/fenv.h b/include/fenv.h
index 3605f81..c061eb9 100644
--- a/include/fenv.h
+++ b/include/fenv.h
@@ -20,4 +20,10 @@ libm_hidden_proto (feholdexcept)
libm_hidden_proto (feupdateenv)
libm_hidden_proto (fetestexcept)
+/* Allow coding feraiseexcept() without guarding the call with an
+ ifdef of the argument, to suport platforms without FP exceptions. */
+#if FE_ALL_EXCEPT == 0
+# define feraiseexcept(e) ({ 1; })
+#endif
+
#endif