This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch master updated. glibc-2.20-436-gcd2c37c


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  cd2c37c979fa19e93ded9e0ed545787271ec0de2 (commit)
      from  e47b8d3bbc9415d5aceaeee3e946c3ab7d985bad (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cd2c37c979fa19e93ded9e0ed545787271ec0de2

commit cd2c37c979fa19e93ded9e0ed545787271ec0de2
Author: Chris Metcalf <cmetcalf@ezchip.com>
Date:   Mon Dec 29 19:48:43 2014 -0500

    tile: prefer inlines to macros in math_private.h.

diff --git a/ChangeLog b/ChangeLog
index c25991f..3aa137c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
 
+	* sysdeps/tile/math_private.h (fetestexcept): Add macro to
+	parallel other exception macros.
+	(fegetenv): Convert from macro to extern inline so that it applies
+	retroactively to inline functions already seen by the compiler.
+	(fesetenv, feupdateenv, fegetround, fesetround): Likewise.
+
 	* posix/Makefile (before-compile): Use $(objpfx) for
 	posix-conf-vars-def.h.
 
diff --git a/sysdeps/tile/math_private.h b/sysdeps/tile/math_private.h
index 46b9a91..a58eafa 100644
--- a/sysdeps/tile/math_private.h
+++ b/sysdeps/tile/math_private.h
@@ -27,9 +27,11 @@
 
 #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; })
+#define fetestexcept(exc)			({ 0; })
+extern inline int fegetenv (fenv_t *__e)	{ return 0; }
+extern inline int fesetenv (const fenv_t *__e)	{ return 0; }
+extern inline int feupdateenv (const fenv_t *__e) { return 0; }
+extern inline int fegetround (void)		{ return FE_TONEAREST; }
+extern inline int fesetround (int __d)		{ return 0; }
 
 #endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |    6 ++++++
 sysdeps/tile/math_private.h |   10 ++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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