This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] tile: add no-op fe*() routines for libc internal use
- From: Chris Metcalf <cmetcalf at ezchip dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 26 Dec 2014 18:39:47 -0500
- Subject: [COMMITTED] tile: add no-op fe*() routines for libc internal use
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=fail (sender IP is 12.216.194.146) smtp dot mailfrom=cmetcalf at ezchip dot com;
These avoid having tile generate real calls to the no-op
functions, which then causes linknamespace test failures.
It might make sense to factor all of these out into a common
header that can be shared by tile, microblaze, etc., but for
now just fix the test failures.
---
ChangeLog | 3 +++
sysdeps/tile/math_private.h | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 5a33871ccff9..a02e52668d7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-12-26 Chris Metcalf <cmetcalf@ezchip.com>
+ * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
+ fegetround): Add no-op macros to avoid linknamespace issues.
+
* sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
diff --git a/sysdeps/tile/math_private.h b/sysdeps/tile/math_private.h
index 90dcc3f86695..46b9a9122818 100644
--- a/sysdeps/tile/math_private.h
+++ b/sysdeps/tile/math_private.h
@@ -27,5 +27,9 @@
#define feraiseexcept(excepts) ({ 0; })
#define feclearexcept(exc) ({ 0; })
+#define fegetenv(env) ({ (void) (env); 0; })
+#define fesetenv(env) ({ (void) (env); 0; })
+#define feupdateenv(env) ({ (void) (env); 0; })
+#define fegetround() ({ FE_TONEAREST; })
#endif
--
2.1.2