Re: "rpl_fprintf" not found if compiled with options "-ggdb -Og"

2021-07-31 Thread Paul Eggert
On 7/31/21 6:33 PM, Bjarni Ingi Gislason wrote: from ../src/devices/xditview/page.c:7: ./lib/unistd.h:663:3: error: #error "Please include config.h first." 663 | #error "Please include config.h first." | ^ That's a problem. page.c should include config.h first

Re: "rpl_fprintf" not found if compiled with options "-ggdb -Og"

2021-07-31 Thread Bjarni Ingi Gislason
On Sat, Jul 31, 2021 at 01:31:55AM -0700, Paul Eggert wrote: > On 7/30/21 6:43 PM, Bjarni Ingi Gislason wrote: > >Actually I am using the current repository of both "groff" and > > "gnulib". > > I can't reproduce the problem that way, either. I'm using Ubuntu 21.04. I > clone Savannah's latest

[PATCH] regex: pacify GCC 11.2 -fanalyzer

2021-07-31 Thread Paul Eggert
* lib/regex_internal.c (re_node_set_insert): Add a debug assertion to pacify GCC 11.2 -fanalyzer. --- ChangeLog| 4 lib/regex_internal.c | 5 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 80bcabd22..e3b868f91 100644 --- a/ChangeLog

[PATCH] maint: pacify GCC 11.2 -fanalyzer in crypto tests

2021-07-31 Thread Paul Eggert
* tests/bench-digest.h (main): Report an error after memory exhaustion, instead of using a null pointer. --- ChangeLog| 6 ++ tests/bench-digest.h | 5 + 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index e35192a9e..80bcabd22 100644 --- a/ChangeLog +++

Using C2x attributes more effectively in Gnulib

2021-07-31 Thread Paul Eggert
Because draft C2x requires using [[maybe_unused]] before a parameter instead of after, the recent C2x-related changes to Gnulib caused me to move all uses of _GL_UNUSED_PARAMETER; and while I was at it I changed it to _GL_ATTRIBUTE_MAYBE_UNUSED FILE thus removing a dependency on the snippet/unu

[PATCH 6/6] doc: C2X -> C2x

2021-07-31 Thread Paul Eggert
--- ChangeLog | 12 ++-- doc/attribute.texi| 6 +++--- doc/posix-headers/assert.texi | 2 +- doc/verify.texi | 4 ++-- lib/attribute.h | 2 +- lib/verify.h | 4 ++-- 6 files changed, 15 insertions(+), 15 dele

[PATCH 3/6] gnulib-common: update for C2x 2020-12-11 draft

2021-07-31 Thread Paul Eggert
Use blessed-by-draft-standard way to test for [[__deprecated__]] etc.; this is supported by GCC 11 and the fallback code should work fine with GCC 10 and earlier, clang, etc. * NEWS, doc/attribute.texi: Mention that DEPRECATED etc. must now come first. * lib/fflush.c, lib/unistr.in.h: Do not includ

[PATCH 2/6] manywarnings: document GCC 11 warnings

2021-07-31 Thread Paul Eggert
* build-aux/gcc-warning.spec: Add warnings introduced in GCC 11. None of them require Gnulib code changes, so this is just a documentation change. --- ChangeLog | 5 + build-aux/gcc-warning.spec | 22 ++ 2 files changed, 27 insertions(+) diff --git a/Chan

[PATCH 5/6] xalloc: add malloc-related function attributes

2021-07-31 Thread Paul Eggert
* lib/quotearg.h, lib/xalloc.h: Include stdlib.h, for the benefit of _GL_ATTRIBUTE_DALLOC_FREE. * lib/quotearg.h (clone_quoting_options): * lib/xalloc.h (xmalloc, ximalloc, xzalloc, xizalloc, xcalloc) (xicalloc, xrealloc, xirealloc, xireallocarray, x2realloc) (x2nrealloc, xmemdup, ximemdup, xstrdup

[PATCH 4/6] gnulib-common: update for gcc -Wmismatched-dealloc

2021-07-31 Thread Paul Eggert
* m4/gnulib-common.m4 (gl_COMMON_BODY): Define the macros _GL_ATTRIBUTE_DEALLOC and _GL_ATTRIBUTE_DEALLOC_FREE. These can be useful with gcc -Wmismatched-dealloc. --- ChangeLog | 5 + m4/gnulib-common.m4 | 12 2 files changed, 17 insertions(+) diff --git a/ChangeLog b

[PATCH 1/6] limits-h: add BOOL_MAX, BOOL_WIDTH

2021-07-31 Thread Paul Eggert
* doc/posix-headers/limits.texi (limits.h): Document them. * lib/limits.in.h: Also define CHAR_WIDTH etc. if C2x. (BOOL_MAX, BOOL_WIDTH): New macros, from C2x. * m4/limits-h.m4 (gl_LIMITS_H): Also check BOOL_WIDTH. --- ChangeLog | 8 doc/posix-headers/limits.texi | 4

Re: "rpl_fprintf" not found if compiled with options "-ggdb -Og"

2021-07-31 Thread Paul Eggert
On 7/30/21 6:43 PM, Bjarni Ingi Gislason wrote: Actually I am using the current repository of both "groff" and "gnulib". I can't reproduce the problem that way, either. I'm using Ubuntu 21.04. I clone Savannah's latest groff (7ae6d67b7c310c54bb7176c761b1f9719e64201a), run this: ./bootstr