Is Gnulib still targeting C89?

2017-04-23 Thread Paul Eggert
Pádraig Brady wrote: In general gnulib is still targeting c89 right? BTW, when should we update that requirement? Now is a good time. As far as I know, no Gnulib-using application still requires porting to C89-only platforms. Although we still may have some issues with old C libraries that su

Re: clang and _Noreturn

2017-04-23 Thread Paul Eggert
On 04/23/2017 01:58 PM, Bruno Haible wrote: the only position that works for both C and C++ is the first one: _GL_NORETURN_FUNC extern void foo (void); Maybe a shorter name for this usage: _GL_NORETURN, perhaps? Don't some compilers complain if the storage class ('extern', here) is not fir

Re: clang and _Noreturn

2017-04-23 Thread Bruno Haible
Hi Paul, > Although this will work for GCC and Clang, I suppose it might cause other > compilers to generate slightly-less-efficient code, because they won't know > that > print_and_abort does not return. Good point. Yes. > To avoid that problem, how about this further patch? Yes, this fits

Re: clang and _Noreturn

2017-04-23 Thread Paul Eggert
Bruno Haible wrote: 1) If _Noreturn does not apply to function pointers, only to functions, we should better avoid it. It's an ill-defined standard's feature. Hmm, well, we cannot avoid _Noreturn in general, since the standard requires it for functions defined by the standard. Admittedly t

doc about modules that modify the way other modules work

2017-04-23 Thread Bruno Haible
2017-04-23 Bruno Haible doc: New section "Modules that modify the way other modules work". * doc/gnulib.texi (Modules that modify the way other modules work): New section. diff --git a/doc/gnulib.texi b/doc/gnulib.texi index b2defc0..ea7710c 100644 --- a/doc/gnulib.texi

Re: Coverity issue policy

2017-04-23 Thread Bruno Haible
I wrote on 2017-04-01: > Next round. Here's a proposed patch, again for glob.c. No one reviewed this; I've now applied it anyway. 2017-04-01 Bruno Haible glob: Fix more memory leaks. * lib/glob.c (glob): Free allocated memory before returning. Reported by Coverity via

Re: clang and _Noreturn

2017-04-23 Thread Bruno Haible
Hi Paul, Thanks for explaining. > > What is the semantic difference between _Noreturn and > > __attribute_noreturn__? > > __attribute__ ((__noreturn__)), which the latter expands to, also works with > function pointers, whereas _Noreturn does not. The distinction can matter > when a > functio

Re: poll: enable argument check

2017-04-23 Thread Bruno Haible
Paul Eggert wrote: > OK, but getdtablesize returns 'int' so the 'poll' code should compare to > INT_MAX > ... How about the attached? Thanks. I pushed it in your name, with an update of the dependencies list. Bruno