From: Akim Demaille Date: Wed, 10 Jun 2009 08:40:55 +0000 (+0200) Subject: gnulib: update. X-Git-Tag: v2.4.1a~45 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/94505fb7e2f6a043d83db4bcd0d64ca675bce71e gnulib: update. * gnulib: Update to latest. * lib/.cvsignore, lib/.gitignore, m4/.cvsignore, * m4/.gitignore: Regen. * src/symtab.c (symbol_from_uniqstr, semantic_type_from_uniqstr): Call xalloc_die on hash_insert failures. Requested by the new __warn_unused_result__ attribute of hash_insert. --- diff --git a/ChangeLog b/ChangeLog index e02fb9a3..96cbb7de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2009-06-10 Akim Demaille + + gnulib: update. + * gnulib: Update to latest. + * lib/.cvsignore, lib/.gitignore, m4/.cvsignore, + * m4/.gitignore: Regen. + * src/symtab.c (symbol_from_uniqstr, semantic_type_from_uniqstr): + Call xalloc_die on hash_insert failures. + Requested by the new __warn_unused_result__ attribute of + hash_insert. + 2009-05-22 Joel E. Denny * data/c++.m4: Update copyright year. diff --git a/gnulib b/gnulib index 5a1286a9..35b2dca2 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 5a1286a9f8597c0063a82645b55f3e97433fc521 +Subproject commit 35b2dca2714e8d5439c5e42eadf5b4cd662ff1ba diff --git a/lib/.cvsignore b/lib/.cvsignore index 412882f3..a9d58230 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -4,6 +4,7 @@ Makefile.in argmatch.c argmatch.h basename.c +bitrotate.h c-ctype.c c-ctype.h c-strcase.h @@ -30,6 +31,7 @@ getopt.in.h getopt1.c getopt_.h getopt_int.h +getpagesize.c gettext.h gnulib.mk hash.c @@ -45,6 +47,8 @@ mbrtowc.c mbsinit.c mbswidth.c mbswidth.h +memchr.c +memchr.valgrind obstack.c obstack.h pipe-safer.c diff --git a/lib/.gitignore b/lib/.gitignore index b647a928..d3f4a0ac 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -7,6 +7,7 @@ /argmatch.c /argmatch.h /basename.c +/bitrotate.h /c-ctype.c /c-ctype.h /c-strcase.h @@ -33,6 +34,7 @@ /getopt1.c /getopt_.h /getopt_int.h +/getpagesize.c /gettext.h /gnulib.mk /hash.c @@ -48,6 +50,8 @@ /mbsinit.c /mbswidth.c /mbswidth.h +/memchr.c +/memchr.valgrind /obstack.c /obstack.h /pipe-safer.c diff --git a/m4/.cvsignore b/m4/.cvsignore index 3cdc569e..eb2f1732 100644 --- a/m4/.cvsignore +++ b/m4/.cvsignore @@ -11,6 +11,7 @@ error.m4 exitfail.m4 extensions.m4 getopt.m4 +getpagesize.m4 gettext.m4 gnulib-cache.m4 gnulib-common.m4 @@ -39,6 +40,8 @@ mbrtowc.m4 mbsinit.m4 mbstate_t.m4 mbswidth.m4 +memchr.m4 +mmap-anon.m4 multiarch.m4 nls.m4 po.m4 diff --git a/m4/.gitignore b/m4/.gitignore index 0755b7d7..16ced35a 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -11,6 +11,7 @@ /exitfail.m4 /extensions.m4 /getopt.m4 +/getpagesize.m4 /gettext.m4 /gnulib-cache.m4 /gnulib-common.m4 @@ -39,6 +40,8 @@ /mbsinit.m4 /mbstate_t.m4 /mbswidth.m4 +/memchr.m4 +/mmap-anon.m4 /multiarch.m4 /nls.m4 /po.m4 diff --git a/src/symtab.c b/src/symtab.c index 1db83f63..bbd5497f 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -672,7 +672,8 @@ symbol_from_uniqstr (const uniqstr key, location loc) { /* First insertion in the hash. */ entry = symbol_new (key, loc); - hash_insert (symbol_table, entry); + if (!hash_insert (symbol_table, entry)) + xalloc_die (); } return entry; } @@ -696,7 +697,8 @@ semantic_type_from_uniqstr (const uniqstr key) { /* First insertion in the hash. */ entry = semantic_type_new (key); - hash_insert (semantic_type_table, entry); + if (!hash_insert (semantic_type_table, entry)) + xalloc_die (); } return entry; }