]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Update to newest gnulib.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Dec 2016 15:02:21 +0000 (16:02 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Dec 2016 15:02:21 +0000 (16:02 +0100)
gnulib
gnulib-local/lib/diffseq.h.diff
gnulib-local/lib/fnmatch_loop.c.diff
gnulib-local/lib/obstack.h.diff
gnulib-local/modules/fnmatch.diff

diff --git a/gnulib b/gnulib
index 68b6adebef05670a312fb92b05e7bd089d2ed43a..83d3c7ff38488105ab667b37671086c3d739c30c 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 68b6adebef05670a312fb92b05e7bd089d2ed43a
+Subproject commit 83d3c7ff38488105ab667b37671086c3d739c30c
index ef0d4607adafb015fe32ee8b3951581719ed2948..ebd3b19538ac6e0d0968d25e41d079c3ce650bca 100644 (file)
@@ -2,7 +2,7 @@ diff --git a/diffseq.h b/diffseq.h
 index 1974c36..02ef9f2 100644
 --- a/diffseq.h
 +++ b/diffseq.h
-@@ -186,7 +186,7 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
+@@ -207,7 +207,7 @@ diag (OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
    for (c = 1;; ++c)
      {
        OFFSET d;                 /* Active diagonal. */
index 1683a1433be042a415283485a4c6c92b27addf9d..85c299f3da593e9c901bbf6e8cc60bb64b4ff06d 100644 (file)
@@ -5,7 +5,7 @@
     struct patternlist
     {
       struct patternlist *next;
-      CHAR str[1];
+      CHAR str[FLEXIBLE_ARRAY_MEMBER];
     } *list = NULL;
     struct patternlist **lastp = &list;
     size_t pattern_len = STRLEN (pattern);
@@ -27,7 +27,7 @@
     {
       struct patternlist *next;
 +     int malloced;
-      CHAR str[1];
+      CHAR str[FLEXIBLE_ARRAY_MEMBER];
     } *list = NULL;
     struct patternlist **lastp = &list;
     size_t pattern_len = STRLEN (pattern);
@@ -69,7 +69,7 @@
 ***************
 *** 1075,1085 ****
               plensize = plen * sizeof (CHAR);                                  \
-              newpsize = offsetof (struct patternlist, str) + plensize;         \
+              newpsize = FLEXSIZEOF (struct patternlist, str, plensize);        \
               if ((size_t) -1 / sizeof (CHAR) < plen                            \
 !                 || newpsize < offsetof (struct patternlist, str)              \
 !                 || ALLOCA_LIMIT <= newpsize)                                  \
@@ -81,7 +81,7 @@
               lastp = &newp->next
 --- 1081,1101 ----
               plensize = plen * sizeof (CHAR);                                  \
-              newpsize = offsetof (struct patternlist, str) + plensize;         \
+              newpsize = FLEXSIZEOF (struct patternlist, str, plensize);        \
               if ((size_t) -1 / sizeof (CHAR) < plen                            \
 !                 || newpsize < offsetof (struct patternlist, str))             \
 !               goto failed;                                                    \
index c4d2013f7d2527e560f6a5c1b94b6d8ca89fe4fa..d8fe28709dd9f53aa1b0507355e2b8352e0598e1 100644 (file)
@@ -1,22 +1,22 @@
 *** obstack.h.orig     2014-04-07 15:57:16.908837962 +0900
 --- obstack.h  2014-04-07 15:58:22.208411479 +0900
 ***************
-*** 201,210 ****
+*** 221,230 ****
      more memory.  This can be set to a user defined function which
      should either abort gracefully or use longjump - but shouldn't
      return.  The default action is to print a message and abort.  */
-! extern void (*obstack_alloc_failed_handler) (void);
+! extern __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void);
   
   /* Exit value used when 'print_and_abort' is used.  */
 ! extern int obstack_exit_failure;
   
   /* Pointer to beginning of object being allocated or to be allocated next.
      Note that this might not be the final address of the object
---- 201,210 ----
+--- 221,230 ----
      more memory.  This can be set to a user defined function which
      should either abort gracefully or use longjump - but shouldn't
      return.  The default action is to print a message and abort.  */
-! extern DLL_VARIABLE void (*obstack_alloc_failed_handler) (void);
+! extern DLL_VARIABLE __attribute_noreturn__ void (*obstack_alloc_failed_handler) (void);
   
   /* Exit value used when 'print_and_abort' is used.  */
 ! extern DLL_VARIABLE int obstack_exit_failure;
index 74ac97a2af33161feeec480c677811086cf8fccf..bcce9de10c02859c189aa53a8da097b3380887c1 100644 (file)
@@ -6,14 +6,14 @@
   extensions
   snippet/arg-nonnull
 ! alloca          [test -n "$FNMATCH_H"]
+  flexmember      [test -n "$FNMATCH_H"]
   stdbool         [test -n "$FNMATCH_H"]
   wchar           [test -n "$FNMATCH_H"]
-  wctype-h        [test -n "$FNMATCH_H"]
 --- 11,17 ----
   Depends-on:
   extensions
   snippet/arg-nonnull
 ! alloca-opt      [test -n "$FNMATCH_H"]
+  flexmember      [test -n "$FNMATCH_H"]
   stdbool         [test -n "$FNMATCH_H"]
   wchar           [test -n "$FNMATCH_H"]
-  wctype-h        [test -n "$FNMATCH_H"]