gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. abde9f31440e86


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. abde9f31440e862d4fd51605d8fade099b602cb5
Date: Fri, 30 Mar 2012 11:28:41 +0000

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 "gawk".

The branch, gawk-4.0-stable has been updated
       via  abde9f31440e862d4fd51605d8fade099b602cb5 (commit)
      from  19a22c41661c3b032c9cdcfd6913373526c025c8 (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://git.sv.gnu.org/cgit/gawk.git/commit/?id=abde9f31440e862d4fd51605d8fade099b602cb5

commit abde9f31440e862d4fd51605d8fade099b602cb5
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Mar 30 14:28:10 2012 +0300

    Move _Noreturn handlng into a separate macro.

diff --git a/ChangeLog b/ChangeLog
index bc2c677..aad4311 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-30         Arnold D. Robbins     <address@hidden>
+
+       * configure.ac (GAWK_AC_NORETURN): Do as macro instead of inline.
+
 2012-03-29         Arnold D. Robbins     <address@hidden>
 
        * dfa.h, dfa.c: Sync with grep. Major cleanups and some changes
diff --git a/Makefile.in b/Makefile.in
index c8208d9..e03744e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -73,10 +73,11 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
-       $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \
-       $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
+       $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/stdint_h.m4 \
+       $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \
+       $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
diff --git a/aclocal.m4 b/aclocal.m4
index 742da61..2af369c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -964,6 +964,7 @@ m4_include([m4/lib-prefix.m4])
 m4_include([m4/libsigsegv.m4])
 m4_include([m4/longlong.m4])
 m4_include([m4/nls.m4])
+m4_include([m4/noreturn.m4])
 m4_include([m4/po.m4])
 m4_include([m4/progtest.m4])
 m4_include([m4/readline.m4])
diff --git a/awklib/Makefile.in b/awklib/Makefile.in
index 01511c3..5c1fc27 100644
--- a/awklib/Makefile.in
+++ b/awklib/Makefile.in
@@ -68,10 +68,11 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
-       $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \
-       $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
+       $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/stdint_h.m4 \
+       $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \
+       $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/configure.ac b/configure.ac
index 8fe1d23..2906810 100644
--- a/configure.ac
+++ b/configure.ac
@@ -237,43 +237,8 @@ dnl            AC_MSG_ERROR([Cannot find a type to use in 
place of socklen_t])
 ])
 TYPE_SOCKLEN_T
 
-dnl Date: Sun, 26 Feb 2012 11:31:50 -0800
-dnl From: Paul Eggert <address@hidden>
-dnl To: address@hidden
-dnl CC: address@hidden
-dnl Subject: Re: avoid gcc 4.6.2 'may be used before set' warnings in dfa.c
-dnl 
-dnl On 02/26/2012 01:18 AM, address@hidden wrote:
-dnl > It looks like I can just use the code as it is now in grep. I have asked
-dnl > for compile failures and haven't gotten any.
-dnl 
-dnl Sure, but the gnulib support for this is better
-dnl than what's in the dfa code.  It could be that
-dnl your correspondents aren't using the less-common hosts
-dnl or compiler warning options that gnulib is ported to.
-dnl 
-dnl In the long run stdnoreturn.h or _Noreturn is the way to go,
-dnl since they're part of the C standard.
-dnl 
-dnl If you'd rather not create a separate file, how about if
-dnl we change the dfa code to use _Noreturn instead of
-dnl <stdnoreturn.h> and noreturn, and you can put the
-dnl following into your configure.ac so that config.h
-dnl defines _Noreturn the same way gnulib does:
-
-AH_VERBATIM([_Noreturn],
-[/* The _Noreturn keyword of C11.  */
-#ifndef _Noreturn
-# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
-      || 0x5110 <= __SUNPRO_C)
-#  define _Noreturn __attribute__ ((__noreturn__))
-# elif defined _MSC_VER && 1200 <= _MSC_VER
-#  define _Noreturn __declspec (noreturn)
-# else
-#  define _Noreturn
-# endif
-#endif
-])
+dnl Check for C11 _Noreturn
+GAWK_AC_NORETURN
 
 dnl checks for functions
 AC_FUNC_VPRINTF
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 2d3dbae..7c8d9db 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -69,10 +69,11 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
-       $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \
-       $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
+       $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/stdint_h.m4 \
+       $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \
+       $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/m4/ChangeLog b/m4/ChangeLog
index d684afe..9e6800a 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-30         Arnold D. Robbins     <address@hidden>
+
+       * noreturn.m4: New file.
+
 2012-03-28         Arnold D. Robbins     <address@hidden>
 
        * 4.0.1: Release tar ball made.
diff --git a/m4/noreturn.m4 b/m4/noreturn.m4
new file mode 100644
index 0000000..7fa7d37
--- /dev/null
+++ b/m4/noreturn.m4
@@ -0,0 +1,38 @@
+dnl Date: Sun, 26 Feb 2012 11:31:50 -0800
+dnl From: Paul Eggert <address@hidden>
+dnl To: address@hidden
+dnl CC: address@hidden
+dnl Subject: Re: avoid gcc 4.6.2 'may be used before set' warnings in dfa.c
+dnl 
+dnl On 02/26/2012 01:18 AM, address@hidden wrote:
+dnl > It looks like I can just use the code as it is now in grep. I have asked
+dnl > for compile failures and haven't gotten any.
+dnl 
+dnl Sure, but the gnulib support for this is better
+dnl than what's in the dfa code.  It could be that
+dnl your correspondents aren't using the less-common hosts
+dnl or compiler warning options that gnulib is ported to.
+dnl 
+dnl In the long run stdnoreturn.h or _Noreturn is the way to go,
+dnl since they're part of the C standard.
+dnl 
+dnl If you'd rather not create a separate file, how about if
+dnl we change the dfa code to use _Noreturn instead of
+dnl <stdnoreturn.h> and noreturn, and you can put the
+dnl following into your configure.ac so that config.h
+dnl defines _Noreturn the same way gnulib does:
+
+AC_DEFUN([GAWK_AC_NORETURN],[
+AH_VERBATIM([_Noreturn],
+[/* The _Noreturn keyword of C11.  */
+#ifndef _Noreturn
+# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
+      || 0x5110 <= __SUNPRO_C)
+#  define _Noreturn __attribute__ ((__noreturn__))
+# elif defined _MSC_VER && 1200 <= _MSC_VER
+#  define _Noreturn __declspec (noreturn)
+# else
+#  define _Noreturn
+# endif
+#endif
+])])
diff --git a/test/Makefile.in b/test/Makefile.in
index 364d61d..068100c 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -68,10 +68,11 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \
        $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
        $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \
        $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \
-       $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \
-       $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \
-       $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \
-       $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac
+       $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \
+       $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \
+       $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/stdint_h.m4 \
+       $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \
+       $(top_srcdir)/configure.ac
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
        $(ACLOCAL_M4)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

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

Summary of changes:
 ChangeLog          |    4 ++++
 Makefile.in        |    9 +++++----
 aclocal.m4         |    1 +
 awklib/Makefile.in |    9 +++++----
 configure.ac       |   39 ++-------------------------------------
 doc/Makefile.in    |    9 +++++----
 m4/ChangeLog       |    4 ++++
 m4/noreturn.m4     |   38 ++++++++++++++++++++++++++++++++++++++
 test/Makefile.in   |    9 +++++----
 9 files changed, 69 insertions(+), 53 deletions(-)
 create mode 100644 m4/noreturn.m4


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]