bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling with tcc fails on regex.c since commit 56b32251


From: Paul Eggert
Subject: Re: compiling with tcc fails on regex.c since commit 56b32251
Date: Sat, 27 Nov 2021 01:01:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

Thanks for reporting that. tcc is failing because it claims to support C99 (it defines __STDC_VERSION__ to 199901L), but it doesn't support variable length arrays as C99 requires. Perhaps you could file a bug report with the tcc folks? A simple fix would be for tcc to predefine __STDC_NO_VLA__ to 1.

Anyway, I installed the attached patches into Gnulib to attempt to work around the tcc bug. The first patch should fix regex.c; the second one should fix gettext.h to behave like regex.c does; the third tries to document this messy area better.

Attachment: 0001-regex-port-to-tcc.patch
Description: Text Data

Attachment: 0002-gettext-h-use-VLA-test-similar-to-regex.patch
Description: Text Data

Attachment: 0003-gettext-h-document-GNULIB_NO_VLA.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]