From 92d7a23ace9ad4813c29ac245ae336d58727c46d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 10 Jun 2009 10:40:55 +0200 Subject: [PATCH] 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. --- ChangeLog | 11 +++++++++++ gnulib | 2 +- lib/.cvsignore | 1 + lib/.gitignore | 1 + m4/.cvsignore | 1 + m4/.gitignore | 1 + src/symtab.c | 6 ++++-- 7 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 36dd87a2..30e94263 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-06-10 Akim Demaille deterministic user-token-number redeclaration errors. diff --git a/gnulib b/gnulib index 5a1286a9..31d31543 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 5a1286a9f8597c0063a82645b55f3e97433fc521 +Subproject commit 31d3154399f8c679ba23afb0f6bef03b73d4c741 diff --git a/lib/.cvsignore b/lib/.cvsignore index 412882f3..8d2d4d2d 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -45,6 +45,7 @@ mbrtowc.c mbsinit.c mbswidth.c mbswidth.h +memchr.c obstack.c obstack.h pipe-safer.c diff --git a/lib/.gitignore b/lib/.gitignore index b647a928..73d272e0 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -48,6 +48,7 @@ /mbsinit.c /mbswidth.c /mbswidth.h +/memchr.c /obstack.c /obstack.h /pipe-safer.c diff --git a/m4/.cvsignore b/m4/.cvsignore index 3cdc569e..310e1efc 100644 --- a/m4/.cvsignore +++ b/m4/.cvsignore @@ -39,6 +39,7 @@ mbrtowc.m4 mbsinit.m4 mbstate_t.m4 mbswidth.m4 +memchr.m4 multiarch.m4 nls.m4 po.m4 diff --git a/m4/.gitignore b/m4/.gitignore index 0755b7d7..0ca03ad3 100644 --- a/m4/.gitignore +++ b/m4/.gitignore @@ -39,6 +39,7 @@ /mbsinit.m4 /mbstate_t.m4 /mbswidth.m4 +/memchr.m4 /multiarch.m4 /nls.m4 /po.m4 diff --git a/src/symtab.c b/src/symtab.c index e68e473b..727ac2c7 100644 --- a/src/symtab.c +++ b/src/symtab.c @@ -735,7 +735,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; } @@ -759,7 +760,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; } -- 2.45.2