1. 26 Dec, 2019 3 commits
  2. 24 Dec, 2019 8 commits
  3. 23 Dec, 2019 1 commit
  4. 22 Dec, 2019 23 commits
    • Paul Eggert's avatar
      gethrxtime: fix rounding bug with negative args · 0da79aa8
      Paul Eggert authored
      Problem reported by Bruno Haible in:
      https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
      * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
      with negative rounding.  Common platforms can compute / and % with
      a single instruction, so the simplified code should be shorter and
      faster on these platforms anyway.
      0da79aa8
    • Paul Eggert's avatar
      gethrxtime: remove incorrect overflow detection · f935bab8
      Paul Eggert authored
      This is part of a patch written by Bruno Haible:
      https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
      * lib/xtime.h (xtime_make): Remove attempt to prevent internal
      integer overflow, as it didn’t suffice.  This reverts the xtime.h
      part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
      cannot now see the need for anyway (even in cases where it works),
      as the patch is helpful only when the signs of S and NS disagree,
      and all callers pass nonnegative values for S and NS.
      Instead, add a comment saying args should be nonnegative.
      f935bab8
    • Bruno Haible's avatar
      setlocale-null: Add standalone include file. · ab3c9473
      Bruno Haible authored
      * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
      * lib/locale.in.h: Include setlocale_null.h.
      (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
      setlocale_null): Remove declarations.
      * lib/setlocale_null.c: Include setlocale_null.h.
      * lib/localename.c: Likewise.
      * modules/setlocale-null (Files): Add lib/setlocale_null.h.
      (Depends-on): Add snippet/arg-nonnull.
      (Include): Allow either "setlocale_null.h" or <locale.h>.
      ab3c9473
    • Bruno Haible's avatar
      strfmon_l: Fix test failures on FreeBSD and Cygwin. · 74528fe2
      Bruno Haible authored
      * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
      AC_RUN_IFELSE test.
      * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
      * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
      problem.
      74528fe2
    • Bruno Haible's avatar
      Prefer lib_SOURCES to unconditional AC_LIBOBJ. · 129087db
      Bruno Haible authored
      * modules/at-internal: Prefer a lib_SOURCES augmentation to an
      unconditional AC_LIBOBJ.
      * modules/selinux-at: Likewise.
      * modules/xmemdup0: Likewise.
      * modules/xstrtoll: Likewise.
      129087db
    • Bruno Haible's avatar
      longlong: Mark module obsolete. · 35accbe6
      Bruno Haible authored
      * modules/longlong (Status, Notice): New sections.
      35accbe6
    • Bruno Haible's avatar
      stdint: Assume that the compiler supports 'long long'. · be9dab63
      Bruno Haible authored
      * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
      UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
      HAVE_UNSIGNED_LONG_LONG_INT to be 1.
      * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
      AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/stdint (Files): Remove longlong.m4.
      (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
      HAVE_UNSIGNED_LONG_LONG_INT.
      be9dab63
    • Bruno Haible's avatar
      inttypes-incomplete: Assume that the compiler supports 'long long'. · 818ca1bc
      Bruno Haible authored
      * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
      _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
      HAVE_UNSIGNED_LONG_LONG_INT to be 1.
      * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
      HAVE_LONG_LONG_INT to be 1.
      * modules/inttypes-incomplete (Makefile.am): Don't substitute
      HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
      818ca1bc
    • Bruno Haible's avatar
      malloca: Assume that the compiler supports 'long long'. · f181860d
      Bruno Haible authored
      * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
      * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/malloca (Files): Remove longlong.m4.
      * modules/relocatable-prog-wrapper (Files): Likewise.
      f181860d
    • Bruno Haible's avatar
      atoll: Assume that the compiler supports 'long long'. · 91b5a3c3
      Bruno Haible authored
      * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/atoll (Files): Remove longlong.m4.
      91b5a3c3
    • Bruno Haible's avatar
      strtoll: Assume that the compiler supports 'long long'. · 0b018e2c
      Bruno Haible authored
      * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/strtoll (Files): Remove longlong.m4.
      0b018e2c
    • Bruno Haible's avatar
      strtoull: Assume that the compiler supports 'long long'. · 04ac8d92
      Bruno Haible authored
      * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
      AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/strtoull (Files): Remove longlong.m4.
      04ac8d92
    • Bruno Haible's avatar
      strtoimax, strtoumax: Assume that the compiler supports 'long long'. · 1cf18f42
      Bruno Haible authored
      * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
      HAVE_UNSIGNED_LONG_LONG_INT to be 1.
      * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
      AC_TYPE_LONG_LONG_INT.
      * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
      AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/strtoimax (Files): Remove longlong.m4.
      * modules/strtoumax (Files): Likewise.
      1cf18f42
    • Bruno Haible's avatar
      xstrtoll: Assume that the compiler supports 'long long'. · 5377e375
      Bruno Haible authored
      * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
      * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
      5377e375
    • Bruno Haible's avatar
      vasnprintf: Assume that the compiler supports 'long long'. · 5ceaccc0
      Bruno Haible authored
      * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
      * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
      * lib/printf-parse.c (PRINTF_PARSE): Likewise.
      * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
      * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
      require AC_TYPE_LONG_LONG_INT.
      * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
      gl_PREREQ_VASNPRINTF): Likewise.
      * modules/vasnprintf (Files): Remove longlong.m4.
      * modules/c-vasnprintf (Files): Likewise.
      * modules/unistdio/u8-vasnprintf (Files): Likewise.
      * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
      * modules/unistdio/u16-vasnprintf (Files): Likewise.
      * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
      * modules/unistdio/u32-vasnprintf (Files): Likewise.
      * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
      * modules/unistdio/ulc-vasnprintf (Files): Likewise.
      5ceaccc0
    • Bruno Haible's avatar
      gethrxtime: Assume that the compiler supports 'long long'. · 896daf27
      Bruno Haible authored
      * lib/xtime.h (xtime_t): Define to 'long long int' always.
      (XTIME_PRECISION): Define to 1000000000 always.
      (xtime_make, xtime_sec): Optimize accordingly.
      * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
      * modules/gethrxtime (Files): Remove longlong.m4.
      896daf27
    • Bruno Haible's avatar
      integer_length*: Assume that the compiler supports 'long long'. · 3a5d13f4
      Bruno Haible authored
      * lib/integer_length.h (integer_length_ll): Declare unconditionally.
      * modules/integer_length (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/integer_length_l (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      * modules/integer_length_ll (Files): Remove longlong.m4.
      (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
      3a5d13f4
    • Bruno Haible's avatar
      count-one-bits: Assume that the compiler supports 'long long'. · 4069d425
      Bruno Haible authored
      * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
      * m4/count-one-bits.m4: Remove file.
      * modules/count-one-bits (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
      * tests/test-count-one-bits.c (main): Test count_one_bits_ll
      unconditionally.
      4069d425
    • Bruno Haible's avatar
      count-trailing-zeros: Assume that the compiler supports 'long long'. · 00b4820c
      Bruno Haible authored
      * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
      unconditionally.
      * m4/count-trailing-zeros.m4: Remove file.
      * modules/count-trailing-zeros (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
      * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
      unconditionally.
      00b4820c
    • Bruno Haible's avatar
      count-leading-zeros: Assume that the compiler supports 'long long'. · 0dfa3015
      Bruno Haible authored
      * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
      unconditionally.
      * m4/count-leading-zeros.m4: Remove file.
      * modules/count-leading-zeros (Files): Remove it.
      (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
      * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
      unconditionally.
      0dfa3015
    • Bruno Haible's avatar
      localcharset: Update support for OpenBSD. · 9ba36dd3
      Bruno Haible authored
      * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
      9ba36dd3
    • Bruno Haible's avatar
      pthread_sigmask: Avoid test failure on NetBSD 8.0. · 4d16a83b
      Bruno Haible authored
      * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
      NetBSD.
      * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
      4d16a83b
    • Bruno Haible's avatar
      threadlib: Improve code structure. · 853609a2
      Bruno Haible authored
      * m4/threadlib.m4: Reorder macros. Add comments.
      853609a2
  5. 21 Dec, 2019 5 commits
    • Karl Berry's avatar
      autoupdate · 7ccef84b
      Karl Berry authored
      7ccef84b
    • Bruno Haible's avatar
      threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc. · 15a10c15
      Bruno Haible authored
      * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
      here from m4/threads.m4).
      (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
      in libc. Instead, rely on gl_STDTHREADLIB_BODY.
      (gl_STDTHREADLIB): New macro.
      * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
      gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
      15a10c15
    • Bruno Haible's avatar
      sched_yield: Don't depend on threadlib and yield. · 478535b0
      Bruno Haible authored
      * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
      LIB_SCHED_YIELD.
      (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
      m4/yield.m4).
      * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
      gl_THREADLIB and gl_YIELD.
      * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
      based on $(LIB_SCHED_YIELD).
      * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
      $(LIB_SCHED_YIELD), not $(YIELD_LIB).
      * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
      (Depends-on): Remove threadlib.
      (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
      * modules/threads-h (Files): Remove m4/yield.m4.
      * modules/pthread-cond-tests (Makefile.am): Link the programs against
      $(LIB_SCHED_YIELD), not $(YIELD_LIB).
      * modules/pthread-mutex-tests (Makefile.am): Likewise.
      * modules/pthread-once-tests (Makefile.am): Likewise.
      * modules/pthread-rwlock-tests (Makefile.am): Likewise.
      * modules/pthread-tss-tests (Makefile.am): Likewise.
      478535b0
    • Bruno Haible's avatar
      threads-h: Don't depend on threadlib. · 44524a48
      Bruno Haible authored
      * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
      not gl_THREADLIB_EARLY.
      44524a48
    • Bruno Haible's avatar
      nl_langinfo tests: Fix link error (regression from 2019-12-18). · 4a18d227
      Bruno Haible authored
      * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
      with $(LIB_SETLOCALE).
      4a18d227