Discussion:
[SCM] GNU Autoconf source repository branch, master, updated. v2.69-101-g79c4c50
Paul Eggert
2013-06-30 00:49:48 UTC
Permalink
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 Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=79c4c50fc754d742286706b4db5ed8ce2a0de925

The branch, master has been updated
via 79c4c50fc754d742286706b4db5ed8ce2a0de925 (commit)
from 3d9fa1399e13b8a37c9ace6d812521d51995d95f (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 -----------------------------------------------------------------
commit 79c4c50fc754d742286706b4db5ed8ce2a0de925
Author: Paul Eggert <***@cs.ucla.edu>
Date: Sat Jun 29 17:49:27 2013 -0700

doc: don't push 'static inline'

* doc/autoconf.texi (Function Portability): Use plain 'static',
not 'static inline', in example. These days, 'static' is enough;
optimizing compilers can figure out the 'inline' on their own.

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

Summary of changes:
doc/autoconf.texi | 16 +++++++---------
1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index faf6d97..3c559a5 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4641,9 +4641,9 @@ solution involves code like the following.
(sizeof (x) == sizeof (long double) ? isnan_ld (x) \
: sizeof (x) == sizeof (double) ? isnan_d (x) \
: isnan_f (x))
-static inline int isnan_f (float x) @{ return x != x; @}
-static inline int isnan_d (double x) @{ return x != x; @}
-static inline int isnan_ld (long double x) @{ return x != x; @}
+static int isnan_f (float x) @{ return x != x; @}
+static int isnan_d (double x) @{ return x != x; @}
+static int isnan_ld (long double x) @{ return x != x; @}
#endif

#ifndef isinf
@@ -4651,18 +4651,16 @@ static inline int isnan_ld (long double x) @{ return x != x; @}
(sizeof (x) == sizeof (long double) ? isinf_ld (x) \
: sizeof (x) == sizeof (double) ? isinf_d (x) \
: isinf_f (x))
-static inline int isinf_f (float x)
+static int isinf_f (float x)
@{ return !isnan (x) && isnan (x - x); @}
-static inline int isinf_d (double x)
+static int isinf_d (double x)
@{ return !isnan (x) && isnan (x - x); @}
-static inline int isinf_ld (long double x)
+static int isinf_ld (long double x)
@{ return !isnan (x) && isnan (x - x); @}
#endif
@end smallexample

-Use @code{AC_C_INLINE} (@pxref{C Compiler}) so that this code works on
-compilers that lack the @code{inline} keyword. Some optimizing
-compilers mishandle these definitions, but systems with that bug
+Some optimizing compilers mishandle these definitions, but systems with that bug
typically have many other floating point corner-case compliance problems
anyway, so it's probably not worth worrying about.



hooks/post-receive
--
GNU Autoconf source repository
Loading...