summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* maintainer-makefile: catch uses of $< in non-implicit rulesAkim Demaille2019-05-192-0/+40
| | | | * top/maint.mk (sc_prohibit_magic_number_exit): New.
* threadlib: Provide an easy way to avoid mingw's winpthreads library.Bruno Haible2019-05-182-2/+30
| | | | | | * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro. (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set gl_use_threads accordingly.
* pthread_sigmask: Fix compilation error with --enable-threads=windows.Bruno Haible2019-05-182-71/+81
| | | | | | | | | | | | Reported by Tim Rühsen in <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html> and Michele Locati in <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>. * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from 2015-06-01. Test whether pthread_sigmask is a macro, regardless of $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is in use and regardless which threads API is chosen.
* close-stream, closein, closeout: simplifyPaul Eggert2019-05-147-40/+13
| | | | | | | | | | | | I noticed this opportunity for simplification while drafting a new, related module that I haven’t had time to finish yet. * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove. * modules/close-stream (Files): Remove m4/close-stream.m4. (configure.ac): Omit gl_CLOSE_STREAM. * modules/closein (Files): Remove m4/closein.m4 (configure.ac): Omit gl_CLOSEIN. * modules/closeout (Files): Remove m4/closeout.m4. (configure.ac): Omit gl_CLOSEOUT.
* libtool-next-version: New program.Bruno Haible2019-05-122-0/+296
| | | | * build-aux/libtool-next-version: New file.
* declared.sh: Fix comment.Bruno Haible2019-05-121-1/+1
| | | | * build-aux/declared.sh: Fix typo in comment.
* version-etc: Ease translation.John Darrington2019-05-122-10/+21
| | | | | * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move URLs and formatting newlines out of translatable string.
* gnupload: Explain how to create symlinks.Bruno Haible2019-05-112-2/+17
| | | | * build-aux/gnupload (usage): Add an example that creates symlinks.
* fpucw: port to gcc -pedanticPaul Eggert2019-05-112-2/+6
| | | | | * lib/fpucw.h (GET_FPUCW, SET_FPUCW): Use __extension__ if using ({ ... }).
* crypto/af_alg: port to strict C compilersPaul Eggert2019-05-112-2/+8
| | | | | * lib/af_alg.c: Include af_alg.h regardless, so that the compilation unit is nonempty.
* base64: Avoid false positive warning from Coverity.Bruno Haible2019-05-102-2/+11
| | | | | | | | | | Reported by Kamil Dudka <kdudka@redhat.com>. Idea by Paul Eggert. * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op '& 0x3f' to the array index expressions. This convinces Coverity that there is no out-of-bounds array reference, regardless of the input.
* gettext: Update to gettext 0.20.Bruno Haible2019-05-1011-646/+60
| | | | | | | | | | | | | | | | | | | * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4, m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4, m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4, m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4, m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4. (configure.ac): Request infrastructure compatible with gettext 0.20. * m4/glibc2.m4: Remove file. * m4/intdiv0.m4: Remove file. * m4/intl.m4: Remove file. * m4/intldir.m4: Remove file. * m4/intmax.m4: Remove file. * m4/printf-posix.m4: Remove file. * m4/uintmax_t.m4: Remove file. * m4/gettext.m4: Update from gettext 0.20. * m4/po.m4: Likewise.
* verify: remove verify_truePaul Eggert2019-05-094-11/+11
| | | | | | * NEWS: Mention this. * lib/verify.h (verify_true): Remove. * tests/test-verify.c (item): Test verify_expr, not verify_true.
* Support C2X and C++17 static_assertPaul Eggert2019-05-095-58/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | C2X and C++17 finally added support for a simple, single-argument ‘static_assert’ that implements what the Gnulib ‘verify’ macro was doing back in 2005. Implement static_assert on older platforms. The only remaining advantage of ‘verify’ is a shorter name. * doc/posix-headers/assert.texi (assert.h): * doc/verify.texi (Compile-time Assertions): Modernize for C2X and C++17. * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1): New macros. (_GL_HAVE__STATIC_ASSERT): Remove. (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__. (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic string. All callers changed. (_GL_VERIFY): Require 3 or more args, of which only the first 2 are used. All callers changed. (_Static_assert): Allow either 1 or 2 args, and define if !_GL_HAVE__STATIC_ASSERT1 instead of defining if !_GL_HAVE__STATIC_ASSERT. (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead of defining if !_GL_HAVE_STATIC_ASSERT. (verify_expr, verify): Don’t bother trying to copy the expression into the diagnostic, since 1-argument static_assert doesn’t. (verify): Prefer 1-argument _Static_assert if it works. * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
* Fix _GL_HAVE__STATIC_ASSERT typoPaul Eggert2019-05-092-3/+9
| | | | | * lib/verify.h (_Static_assert): For the FreeBSD workaround, use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
* wcwidth: Ensure width 1, not 2, for ambiguous characters.Bruno Haible2019-05-054-2/+37
| | | | | | | | | | | Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp> via Akim Demaille <akim.demaille@gmail.com>. * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an en_US.UTF-8 locale, since that is more likely to be present than an fr_FR.UTF-8 locale. * tests/test-wcwidth.c (main): Check the width of U+2202. * doc/posix-functions/wcwidth.texi: Mention the issue.
* Port manywarnings to GCC 9Paul Eggert2019-05-033-11/+43
| | | | | | | | | | | | * build-aux/gcc-warning.spec: Sort. Add -Wattribute-alias, -Wc11-c2x-compat, -Wcast-result (for the D programming language), -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor, -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor, -Wredundant-move. Adjust to minor wording changes in GCC 9’s --help=warnings output. * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value, -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile, -Wmissing-profile. Change -Wattribute-alias to -Wattribute-alias=2.
* Sync lib/mktime-internal.h from glibcPaul Eggert2019-04-303-17/+50
| | | | | * config/srclist.txt: Add entry for lib/mktime-internal.h. * lib/mktime-internal.h: Autoupdate.
* autoupdate (removing trailing white space from config.guess)Paul Eggert2019-04-306-346/+309
|
* tls tests: Prevent that the test takes too long.Bruno Haible2019-04-283-0/+21
| | | | | | * tests/test-tls.c: Include <signal.h>, <unistd.h>. (main): Let the test fail if it takes more than 10 minutes. * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
* lock tests: Prevent that the test takes too long.Bruno Haible2019-04-283-0/+21
| | | | | | * tests/test-lock.c: Include <signal.h>, <unistd.h>. (main): Let the test fail if it takes more than 10 minutes. * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
* localename: Fix crash on mingw (regression from 2018-11-23).Bruno Haible2019-04-272-8/+15
| | | | | * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a locale name that is null.
* Fix gcc warnings on 64-bit mode mingw.Bruno Haible2019-04-2724-67/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t. * lib/gl_array_list.c: Likewise. * lib/gl_array_map.c: Likewise. * lib/gl_array_set.c: Likewise. * lib/gl_carray_list.c: Likewise. * lib/gl_sublist.c: Likewise. * lib/gl_avltreehash_list.c (uintptr_t): Remove definition. * lib/gl_rbtreehash_list.c (uintptr_t): Likewise. * lib/gl_hash_map.c (uintptr_t): Likewise. * lib/gl_hash_set.c (uintptr_t): Likewise. * lib/gl_linkedhash_list.c (uintptr_t): Likewise. * lib/gl_linkedhash_map.c (uintptr_t): Likewise. * lib/gl_linkedhash_set.c (uintptr_t): Likewise. * lib/iconv.c (uintptr_t): Likewise. * lib/iconv_close.c (uintptr_t): Likewise. * tests/test-lock.c: Include <stdint.h>. (once_contender_thread, test_once): Cast through 'intptr_t' instead of 'long'. * modules/clean-temp (Depends-on): Add stdint. * modules/array-list (Depends-on): Likewise. * modules/array-map (Depends-on): Likewise. * modules/array-set (Depends-on): Likewise. * modules/carray-list (Depends-on): Likewise. * modules/sublist (Depends-on): Likewise. * modules/lock-tests (Depends-on): Likewise.
* error: Tweak indentation.Bruno Haible2019-04-272-1/+6
| | | | * lib/error.c: Correct indentation.
* term-style-control: Fix gcc warning on mingw.Bruno Haible2019-04-272-28/+36
| | | | | * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope of i.
* pipe-filter-gi, pipe-filter-ii: Fix gcc warning.Bruno Haible2019-04-272-0/+6
| | | | * lib/pipe-filter-aux.h (read): Undefine before redefinition.
* relocatable-prog: Fix gcc warning on mingw.Bruno Haible2019-04-272-4/+15
| | | | | * lib/progreloc.c (maybe_executable): Don't define on native Windows and on EMX.
* gitsub.sh: New file.Bruno Haible2019-04-272-0/+488
| | | | * top/gitsub.sh: New file.
* argmatch: use void* for raw memory pointersAkim Demaille2019-04-253-19/+26
| | | | | | * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid) (__xargmatch_internal, argmatch_to_argument): Use void* for pointers to "values", keep char* for strings.
* prefix-gnulib-mk: fix the support for gnulib-poAkim Demaille2019-04-232-6/+26
| | | | | | * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res. Don't touch HAVE_* variables. Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
* di-set: allow free with 'ino_map' being NULLBernhard Voelker2019-04-183-1/+13
| | | | | | | * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map is NULL. Bug introduced in commit 3703dbbe88dd. * tests/test-di-set.c: Add di_set_free() right after di_set_alloc() as a test.
* autoupdateKarl Berry2019-04-151-2/+3
|
* * lib/str-two-way.h: Fix comment typo.Paul Eggert2019-04-142-1/+5
|
* x-to-1: Restore ability to use original calling convention.Bruno Haible2019-04-142-6/+33
| | | | | * build-aux/x-to-1.in: Add comments. Accept the original form of HELP2MAN argument as well as the form expected since 2012-12-12.
* gettext: Prepare for next gettext release.Bruno Haible2019-04-134-4/+4
| | | | | | | * m4/gettext.m4: Bump gettext version number in comment. * m4/intl.m4: Likewise. * m4/intldir.m4: Likewise. * m4/intlmacosx.m4: Likewise.
* x-to-1: Avoid failure due to missing perl modules.Bruno Haible2019-04-132-1/+20
| | | | | * build-aux/x-to-1.in: Test whether all the perl modules that help2man needs are installed.
* openmp-init: New module.Bruno Haible2019-04-133-25/+54
| | | | | | * modules/openmp-init: New file. * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert the changes from 2019-04-09.
* signbit: Fix compilation error when gnulib's math.h exists twice.Bruno Haible2019-04-132-1/+7
| | | | * lib/math.in.h (GNULIB_defined_signbit): New macro.
* openmp: Fix compilation error on platforms without OpenMP.Bruno Haible2019-04-122-1/+10
| | | | * lib/omp-init.c: Include <omp.h> only if _OPENMP.
* mountlist: make parsing /proc/self/mountinfo more robustBernhard Voelker2019-04-102-33/+69
| | | | | | | | | | | | | | | | | | | | | | | | | Cater for the following issues with mountinfo parsing (the first one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> in <https://bugs.gnu.org/35137>). 1. The fields source, target, mntroot and fstype may contain characters like '\r'; sscanf(3) fails to read such values with the %s format specifier because it would stop at such characters. Example: "mount -t tmpfs tmpfs /foo^Mbar". The only true separator in that file is the ' ' character. 2. The source field may be an empty string, which happens e.g. with "mount -t tmpfs '' /target". 3. The fstype field may contain mangled characters as well which need unescaping. * lib/mountlist.c (terminate_at_blank): Add utility function. (read_file_system_list): In the block trying to read the mountinfo file, avoid using sscanf(3) with %s format; instead, parse the above fields separated by spaces one by one. This also handles the case when the source field is an empty string. Unescape the fstype field.
* openmp: Add workaround for 32-bit programs on AIX.Bruno Haible2019-04-095-0/+181
| | | | | | | | | | | * lib/omp.in.h: New file. * lib/omp-init.c: New file, based on lib/nproc.c. * m4/omp_h.m4: New file. * modules/openmp (Files): Add them. (Depends-on): Add include_next, c-ctype, setenv. (configure.ac): Invoke gl_OMP_H. (Makefile.am): Add rules to create omp.h and compile omp-init.c. (Include): Mention <omp.h>.
* nproc: Fix return value for privileged processes.Bruno Haible2019-04-092-1/+7
| | | | | * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not getpid().
* Add copyright notices in several files.Bruno Haible2019-04-0714-1/+222
| | | | | | | | | | | | | | Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>. * lib/_Noreturn.h: Add LGPLv2+ copyright notice. * lib/libunistring.valgrind: Likewise. * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice. * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice. * lib/memchr.valgrind: Likewise. * lib/memchr2.valgrind: Likewise. * lib/rawmemchr.valgrind: Likewise. * lib/relocatable.valgrind: Likewise. * lib/strchrnul.valgrind: Likewise.
* revert texinfo.tex to 2019-03-03.15 per GavinKarl Berry2019-03-311-151/+297
|
* autoupdateKarl Berry2019-03-291-1/+3
|
* term-style-control tests: Fix link error.Bruno Haible2019-03-262-0/+11
| | | | | | | | | Reported by Tom G. Christensen in <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>. * modules/term-style-control-tests (Makefile.am): Link test-term-style-control-hello and test-term-style-control-yes against LIBINTL.
* term-style-control: Fix typo in comment.Bruno Haible2019-03-251-2/+2
|
* term-style-control: Add tests.Bruno Haible2019-03-244-0/+318
| | | | | | * tests/test-term-style-control-hello.c: New file. * tests/test-term-style-control-yes.c: New file. * modules/term-style-control-tests: New file.
* term-style-control: New module.Bruno Haible2019-03-244-0/+1234
| | | | | | | | * lib/term-style-control.h: New file, based on libtextstyle's term-ostream.oo.h and term-ostream.oo.c. * lib/term-style-control.c: New file, based on libtextstyle's term-ostream.oo.c. * modules/term-style-control: New file.
* autoupdateKarl Berry2019-03-241-26/+2
|