single-threaded optimizations

2021-03-02 Thread Bruno Haible
Hi Paul, Paul Eggert wrote: > + * lib/mbtowc-lock.h (mbtowc_with_lock) [USE_UNLOCKED_IO]: > + Don’t bother with locks, since this app is single-threaded. We now have two C macros which indicate a single-threaded application: * USE_UNLOCKED_IO, used - for unlocked - in regex

Re: [PATCH 1/2] parse-datetime2: new module

2021-03-02 Thread Bruno Haible
Hi Paul, > + parse-datetime2: new module gnulib-tool gives me these warnings $ ./gnulib-tool --create-testdir --dir=../testdir-all --single-configure gnulib-tool: warning: module parse-datetime2 depends on a module with an incompatible license: gettime gnulib-tool: warning: module parse-dat

Re: Gnulib's tempname.c does not compile with TCC: max_align_t undefined

2021-03-02 Thread Bruno Haible
Luca Saiu wrote: > It is the version packaged by debian: > > [luca@moore ~]$ tcc --version > tcc version 0.9.27 (x86_64 Linux) OK. I can see that the max_align_t problem is the only compilation error in all of gnulib (excluding C++ sources). The max_align_t problem comes from two causes: 1) tc

[PATCH] mbrtowc: port to AIX 7.1 with xlc 12.1

2021-03-02 Thread Paul Eggert
Fix a problem with locks when building GNU Tar (Savannah commit 55f2a0772e08b9febac3ac0de5cb048d4c60d2f5) on AIX 7.1 with IBM XL C/C++ V12.1 using ‘./configure CC=xlc’. The link fails due to missing definitions of pthread_mutex_lock and pthread_mutex_unlock. GNU Tar uses unlocked-io and so should

Re: [PATCH] gendocs.sh: don't overwrite existing index.html

2021-03-02 Thread Bernhard Voelker
On 3/1/21 8:22 PM, Sergey Poznyakoff wrote: > Actually, the main point is to avoid destroying the existing file with > a meaningless dangling symlink. That being said, I have nothing > against checking for existence of "${PACKAGE}.html" as well. Looks good to me thanks. Have a nice day, Berny

Re: Gnulib's tempname.c does not compile with TCC: max_align_t undefined

2021-03-02 Thread Luca Saiu
On 2021-03-02 at 23:29 +0100, Bruno Haible wrote: > Hi Luca, > >> I am seeing a little problem with Gnulib using TCC (the Tiny C >> Compiler) on a very ordinary platform, GNU/Linux x86_64 with glibc 2.31. > > Which version of TinyCC? There are no regular releases; the version 0.9.27 > is more than

Re: Gnulib's tempname.c does not compile with TCC: max_align_t undefined

2021-03-02 Thread Bruno Haible
Hi Luca, > I am seeing a little problem with Gnulib using TCC (the Tiny C > Compiler) on a very ordinary platform, GNU/Linux x86_64 with glibc 2.31. Which version of TinyCC? There are no regular releases; the version 0.9.27 is more than three years old. So, before starting to test Gnulib with thi

Gnulib's tempname.c does not compile with TCC: max_align_t undefined

2021-03-02 Thread Luca Saiu
Hello. I am seeing a little problem with Gnulib using TCC (the Tiny C Compiler) on a very ordinary platform, GNU/Linux x86_64 with glibc 2.31. I will use Jitter as a test case. This works: git clone https://git.savannah.gnu.org/git/gnulib.git cd jitter ./bootstrap mkdir -p _build/native _build/