1. 03 Mar, 2017 2 commits
    • Paul Eggert's avatar
      logb now works correctly on large integers · 74f87fd1
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add count-leading-zeros.
      * etc/NEWS: Document the change.
      * lib/count-leading-zeros.c, lib/count-leading-zeros.h:
      * m4/count-leading-zeros.m4: New files, copied from Gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/floatfns.c: Include count-leading-zeros.h.
      (Flogb): Do not convert fixnum to float before taking the log,
      as the rounding error can cause the answer to be off by 1.
      * src/lisp.h (EMACS_UINT_WIDTH): New constant.
      * test/src/floatfns-tests.el (logb-extreme-fixnum): New test.
      74f87fd1
    • Paul Eggert's avatar
      Merge from gnulib · f1fe3fcf
      Paul Eggert authored
      This incorporates:
      2017-02-25 maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
      2017-02-24 ftoastr: port to -Wdouble-promotion
      * lib/ftoastr.c, m4/gnulib-common.m4: Copy from gnulib.
      f1fe3fcf
  2. 23 Feb, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 7204577b
      Paul Eggert authored
      This incorporates:
      2017-02-16 xbinary-io: rename from xsetmode
      2017-02-15 xsetmode: new module
      * lib-src/etags.c (main):
      * lib-src/hexl.c (main):
      * src/emacs.c (main) [MSDOS]:
      Prefer set_binary_mode to the obsolescent SET_BINARY.
      * lib/binary-io.c, lib/binary-io.h: Copy from gnulib.
      7204577b
  3. 02 Feb, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 46aa9a30
      Paul Eggert authored
      2017-01-30 Port to PGI 16.10 x86-64
      2017-01-20 time_rz: fix comment typo
      2017-01-14 strftime: %z is -00 if unknown
      This incorporates:
      * doc/misc/texinfo.tex, lib/c-ctype.h, lib/strftime.c:
      * lib/time-internal.h, lib/verify.h:
      Copy from gnulib.
      46aa9a30
  4. 10 Jan, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · fa0a2b4e
      Paul Eggert authored
      This incorporates:
      2017-01-09 maint: time stamp -> timestamp
      2017-01-07 stdioext: Port to Minix 3.2 and newer
      2017-01-06 glob, intprops, xalloc: work around Clang bug
      2017-01-02 revert copyright-year change to synced files
      * doc/misc/texinfo.tex, lib/fpending.c, lib/intprops.h, lib/mktime.c:
      * lib/stat-time.h, lib/stdio-impl.h, lib/time.in.h, lib/timespec.h:
      * lib/utimens.c, lib/xalloc-oversized.h:
      Copy from gnulib.
      fa0a2b4e
  5. 01 Jan, 2017 4 commits
    • Paul Eggert's avatar
      Update copyright year to 2017 in master · e6a782ee
      Paul Eggert authored
      Run admin/update-copyright in the master branch.  This fixes files
      that were not already fixed in the emacs-25 branch before it was
      merged here.
      e6a782ee
    • Paul Eggert's avatar
      Merge from gnulib · 5a59e28d
      Paul Eggert authored
      This incorporates:
      2016-12-19 stdint: Fix WINT_MAX to match wint_t on mingw
      2016-12-18 getopt: Fix link error for users of getopt() in <unistd.h>
      2016-12-17 getlogin: Port to newer mingw
      2016-12-17 stdint: Fix WINT_MAX to match wint_t on MSVC
      2016-12-17 Avoid redefinition errors on MSVC
      * lib/getopt.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/unistd.in.h:
      * m4/stdint.m4, m4/unistd_h.m4:
      Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      Plus, this commit updates the indenting on copyright notices to
      match that of gnulib.
      5a59e28d
    • Paul Eggert's avatar
      Fix copyright years by hand · 2e2a8068
      Paul Eggert authored
      These are dates that admin/update-copyright did not update, or
      updated incorrectly.
      2e2a8068
    • Paul Eggert's avatar
      Update copyright year to 2017 · 5badc81c
      Paul Eggert authored
      Run admin/update-copyright.
      5badc81c
  6. 17 Dec, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix crashes on MS-Windows during dumping · 0757b4f2
      Eli Zaretskii authored
      * src/unexw32.c (get_section_info): Make extra_bss_size be the
      maximum of extra_bss_size and extra_bss_size_static.  This avoids
      computing the size of the output file smaller than it actually
      needs to be, which then causes copy_executable_and_dump_data to
      write beyond the requested size of the file mapping, thus relying
      on the OS roundup to page boundary to save us from ourselves.  See
      http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
      for the details.
      
      * lib/stdio-impl.h: Revert the workaround fix of not including
      errno.h for MinGW.
      0757b4f2
  7. 16 Dec, 2016 1 commit
    • Eli Zaretskii's avatar
      Unbreak the MinGW build · b3cf2811
      Eli Zaretskii authored
      * lib/stdio-impl.h [__MINGW32__]: Don't include errno.h.  Without
      this, temacs crashes while dumping.
      b3cf2811
  8. 15 Dec, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 5942af61
      Paul Eggert authored
      This incorporates:
      2016-12-14 xalloc-oversized: check for PTRDIFF_MAX too
      2016-12-12 fpending: port to native Windows with MSVC
      * .gitignore: Do not ignore lib/stdio-impl.h.
      * lib/fpending.c, lib/xalloc-oversized.h, m4/fpending.m4:
      Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stdio-impl.h:
      New file, copied from gnulib.
      * nt/gnulib.mk (EXTRA_DIST): Add stdio-impl.h.
      5942af61
  9. 02 Dec, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · f3fa5d7e
      Paul Eggert authored
      This incorporates:
      2016-11-27 md4,md5,sha*: tune for recent glibc _STRING_INLINE_unaligned
      2016-11-21 snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
      * build-aux/snippet/c++defs.h:
      * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
      Copy from gnulib.
      f3fa5d7e
  10. 20 Nov, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · bbd84f86
      Paul Eggert authored
      This incorporates:
      2016-11-15 sys_time: add gnulib::timeval for C++
      2016-11-14 snippet/c++defs: fix real-floating arg functions in C++ mode
      2016-11-13 strftime: don't use __THROW
      2016-11-12 strftime: tune %q
      2016-11-12 Merge strftime.c changes from glibc
      2016-11-09 manywarnings: fix -Wno-missing-field-initializers detection
      2016-11-05 strftime,strptime: support %q to represent the quarter
      
      The glibc changes in turn incorporate the following strftime.c changes:
      2015-10-20 Convert misc function definitions to prototype style
      2015-09-26 [BZ #18985] out of range data to strftime() causes segfault
      2010-01-09 Add support for XPG7 testing
      2009-10-30 Implement Burmese language locale for Myanmar
      2008-06-13 [BZ #6612] pass reference to tzset_called around
      2007-10-16 [BZ #5184] Add tzset_called argument
      
      * build-aux/snippet/c++defs.h, lib/strftime.c, lib/sys_time.in.h:
      * m4/manywarnings.m4: Copy from gnulib.
      bbd84f86
  11. 04 Nov, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 44c34c2e
      Paul Eggert authored
      This incorporates:
      2016-11-03 intprops: port to older XL C
      * lib/intprops.h: Copy from gnulib.
      44c34c2e
  12. 27 Oct, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 63eebff3
      Paul Eggert authored
      This incorporates:
      2016-10-16 qsort_r: Fix macrology for platforms that lack the function.
      2016-10-13 stdint: port SIZE_MAX to glibc s390
      2016-10-11 maint: remove stray space after "." in AC_DEFINE comment.
      * lib/gnulib.mk: Regenerate.
      * lib/stdlib.in.h, m4/st_dm_mode.m4, m4/stdint.m4, m4/stdlib_h.m4:
      * m4/utimes.m4: Copy from gnulib.
      63eebff3
  13. 30 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Limit <config.h>’s includes · f4eb8900
      Paul Eggert authored
      This follows up on recent problems with the fact that config.h
      includes stdlib.h etc.; some files need to include stdlib.h later.
      config.h generally should limit itself to includes that are
      universally safe; outside of MS-Windows, only stdbool.h makes
      the cut among the files currently included.  So, move the
      other includes to just the files that need them (Bug#24506).
      * configure.ac (config_opsysfile): Remove, as this generic hook
      is no longer needed.
      * lib-src/etags.c, src/unexmacosx.c, src/w32.c, src/w32notify.c:
      * src/w32proc.c (_GNU_SOURCE):
      Remove, as it’s OK for config.h to do this now.
      * src/conf_post.h: Include <ms-w32.h>, instead of the generic
      config_opsysfile, for simplicity as this old way of configuring is
      now done only for the MS-Windows port.  Do not include <ms-w32.h>
      if DEFER_MS_W32_H, for the benefit of the few files that want its
      effects later.  Do not include <alloca.h>, <string.h>, or
      <stdlib.h>.  Other files modified to include these headers as
      needed, or to not include headers that are no longer needed.
      * src/lisp.h: Include <alloca.h> and <string.h> here, since
      some of the inline functions need them.
      * src/regex.c: Include <alloca.h> if not emacs.  (If emacs,
      we can rely on SAFE_ALLOCA.)  There is no longer any need to
      worry about HAVE_ALLOCA_H.
      * src/unexmacosx.c: Rely on config.h not including stdlib.h.
      * src/w32.c, src/w32notify.c, src/w32proc.c (DEFER_MS_W32_H):
      Define before including <config.h> first, and include <ms-w32.h>
      after the troublesome headers.
      f4eb8900
  14. 21 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Port recent flexmember changes to NetBSD · c0603964
      Paul Eggert authored
      The NetBSD library supports localtime_rz directly, and without
      this change 'configure' omitted the flexmember test that is marked
      as conditional on localtime_rz.  Emacs now needs to use
      flexmember.m4 even when localtime_rz works.
      Problem reported by Thomas Klausner.
      * admin/merge-gnulib (GNULIB_MODULES): Add flexmember.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      c0603964
  15. 15 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 8f4b6a20
      Paul Eggert authored
      This incorporates:
      2016-09-15 stdint: support new _WIDTH macros
      2016-09-15 limits-h: new module
      2016-09-15 sys_types: avoid glibc 2.25 warnings about major()
      2016-09-15 extensions: port to more ISO C TSes
      2016-09-13 intprops: new macro TYPE_WIDTH
      2016-09-13 extensions: port to recent ISO C TRs
      * .gitignore: Add lib/limits.h.
      * doc/misc/texinfo.tex, lib/ftoastr.h, lib/intprops.h:
      * lib/stdint.in.h, m4/extensions.m4, m4/stdint.m4, m4/stdio_h.m4:
      * m4/sys_types_h.m4: Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/limits.in.h, m4/limits-h.m4: New files, copie from gnulib.
      * nt/gnulib.mk: Merge changes from lib/gnulib.mk.
      8f4b6a20
  16. 08 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 12a7e0f8
      Paul Eggert authored
      This incorporates:
      2016-09-07 flexmember: new macro FLEXALIGNOF
      2016-09-07 flexmember: port better to GCC + valgrind
      2016-08-18 Port modules to use getprogname explicitly
      2016-09-02 manywarnings: add -fno-common
      * admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don’t avoid flexmember,
      since time_rz now uses part of it.  Instead, remove m4/flexmember.m4.
      * configure.ac (AC_C_FLEXIBLE_ARRAY_MEMBER): Define away,
      since Emacs assumes C99 and therefore removes m4/flexmember.m4.
      * lib/euidaccess.c, lib/group-member.c, lib/time_rz.c:
      * m4/manywarnings.m4: Copy from gnulib.
      * lib/flexmember.h: New file, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      12a7e0f8
  17. 30 Aug, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 6cf3ee3d
      Paul Eggert authored
      This incorporates:
      2016-08-30 intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
      2016-08-29 xalloc-oversized.h: port change to GCC 6.2.0
      2016-08-29 intprops.h: port recent changes to GCC 6.2.0
      2016-08-29 intprops.h: use __typeof__ with GCC 7
      2016-08-29 intprops.h, xalloc-oversized.h: work with gcc 7
      2016-08-24 intprops: fix paren typo on old platforms
      2016-08-24 intprops: port to OpenVMS
      * lib/intprops.h, lib/xalloc-oversized.h: Copy from gnulib.
      6cf3ee3d
  18. 21 Aug, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 1f730256
      Paul Eggert authored
      This incorporates:
      2016-08-17 maint: preprocessor changes to support z/OS
      2016-08-17 string: rename to avoid '__string'
      * doc/misc/texinfo.tex, lib/alloca.in.h, lib/string.in.h:
      Copy from gnulib.
      1f730256
  19. 03 Aug, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 7f9721d3
      Paul Eggert authored
      This incorporates:
      2016-07-03 mktime: call tzset as per POSIX
      * doc/misc/texinfo.tex, lib/mktime.c, m4/mktime.m4:
      Copy from gnulib.
      7f9721d3
  20. 24 Jun, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 63457dcf
      Paul Eggert authored
      This incorporates:
      2016-06-24 intprops: port better to GCC 7
      2016-06-13 xalloc-oversized: port to GCC 7; fewer warnings
      * doc/misc/texinfo.tex, lib/xalloc-oversized.h, lib/intprops.h:
      Copy from gnulib.
      63457dcf
  21. 30 May, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · e7b01df5
      Paul Eggert authored
      This incorporates:
      2016-05-30 Use GCC_LINT, not lint
      2016-05-29 secure_getenv: Port to many more platforms.
      * doc/misc/texinfo.tex, lib/secure_getenv.c, lib/verify.h:
      * m4/secure_getenv.m4: Copy from gnulib.
      e7b01df5
  22. 13 May, 2016 1 commit
    • Paul Eggert's avatar
      Sync from gnulib · f791efc0
      Paul Eggert authored
      This incorporates a spelling fix, plus:
      2016-05-09 Fix undefined behaviour in gettext.h
      * lib/gettext.h, lib/mktime.c:
      Copy from gnulib.
      f791efc0
  23. 02 May, 2016 1 commit
    • Paul Eggert's avatar
      Sync from gnulib · 3707f609
      Paul Eggert authored
      This incorporates:
      2016-05-01 mktime: port to stricter signed overflow checking
      2016-05-01 mktime: speed up DEBUG_MKTIME benchmarks
      2016-05-01 mktime: resurrect DEBUG_MKTIME testing
      2016-05-01 mktime: simplify DEBUG_MKTIME
      2016-05-01 Port mktime_internal offset to unsigned time_t
      2016-04-27 xstrtol: prohibit monstrosities like "1bB"
      2016-04-13 mktime: improve integer overflow checking
      2016-04-13 intprops: check two's complement assumption
      2016-04-13 intprops, mktime, strtol: assume two's complement
      * lib/intprops.h, lib/mktime-internal.h, lib/mktime.c:
      * lib/strtol.c, lib/timegm.c, m4/mktime.m4, m4/std-gnu11.m4:
      Copy from gnulib.
      3707f609
  24. 11 Apr, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · b134c206
      Paul Eggert authored
      This is for picky compilers whose stdint.h fails our C11 tests.
      Problem reported for clang by Philipp Stephani (Bug#23261).
      This incorporates:
      2016-04-11 stdint: port to strict C11 left shift
      * doc/misc/texinfo.tex, lib/stdint.in.h: Copy from gnulib.
      b134c206
  25. 04 Apr, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · f501116e
      Paul Eggert authored
      This incorporates:
      2016-04-03 stdint: detect good enough pre-C++11 stdint.h in C++ mode
      2016-04-01 stddef: support configuring with g++
      * doc/misc/texinfo.tex, lib/stddef.in.h, m4/stdint.m4:
      Copy from gnulib.
      f501116e
  26. 23 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · ad250f2b
      Paul Eggert authored
      This incorporates:
      2016-03-22 gitlog-to-changelog: suppress ignored chatter
      2016-03-21 sys_select: port to new Cygwin
      * build-aux/gitlog-to-changelog, doc/misc/texinfo.tex:
      * lib/sys_select.in.h: Copy from gnulib.
      ad250f2b
  27. 15 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · ba33b7c4
      Paul Eggert authored
      This incorporates:
      2016-03-15 time_rz: port to clang -Wunused-const-variable
      2016-03-15 select: port more to Intel 2016.1.150 compiler
      * lib/sys_select.in.h, lib/time_rz.c: Copy from gnulib.
      ba33b7c4
  28. 10 Mar, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · 741a6f8e
      Paul Eggert authored
      This incorporates:
      2016-03-08 intprops: make .h file license match module
      2016-03-08 acl: fix missing return on Cygwin
      2016-03-05 extern-inline: port to PGI CC
      * doc/misc/texinfo.tex, lib/intprops.h, lib/set-permissions.c:
      * m4/extern-inline.m4:
      Copy from gnulib.
      741a6f8e
  29. 21 Feb, 2016 2 commits
    • Paul Eggert's avatar
      Use Gnulib filevercmp for version comparison · 1f7feeca
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add filevercmp.
      * doc/lispref/strings.texi (Text Comparison):
      * etc/NEWS, src/fns.c:
      * test/src/fns-tests.el (fns-tests-string-version-lessp):
      Rename newly-introduced function to string-version-lessp, by
      analogy with strverscmp.
      * lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/fns.c: Include <filevercmp.h>.
      (gather_number_from_string): Remove.
      (Fstring_version_lessp): Reimplement via filevercmp.
      1f7feeca
    • Paul Eggert's avatar
      Sync with gnulib · db512249
      Paul Eggert authored
      This incorporates:
      2016-02-10 stdalign: port to older HP and IBM cc
      * doc/misc/texinfo.tex, lib/stdalign.in.h: Copy from gnulib.
      db512249
  30. 09 Feb, 2016 1 commit
    • Paul Eggert's avatar
      Sync with gnulib · f2e9d1b3
      Paul Eggert authored
      This incorporates:
      2016-02-09 stdalign: port to clang 3.7.0
      2016-02-06 misc: port better to gcc -fsanitize=address
      * doc/misc/texinfo.tex, lib/stdalign.in.h, m4/acl.m4, m4/getgroups.m4:
      Copy from gnulib.
      f2e9d1b3
  31. 02 Feb, 2016 1 commit
    • Paul Eggert's avatar
      Build with C11 if available · b50075dd
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add std-gnu11.
      * m4/std-gnu11.m4: New file, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      b50075dd
  32. 30 Jan, 2016 3 commits
    • Paul Eggert's avatar
      Tell Automake the new lib/Makefile.am is OK · 692e4104
      Paul Eggert authored
      * lib/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
      692e4104
    • Paul Eggert's avatar
      Build lib/e-*.o only on platforms that need it · 7fdc3cf0
      Paul Eggert authored
      * configure.ac (hybrid malloc): Simplify configuration.
      (SHEAP_OBJ): Remove; no longer needed.
      (HYBRID_MALLOC): New var. Subst it.
      (HYBRID_MALLOC_LIB): New Automake conditional.
      * lib/Makefile.am (noinst_LIBRARIES): Add libegnu.a only if
      HYBRID_MALLOC_LIB.
      (libegnu_a_CPPFLAGS): Omit AM_CPPFLAGS; not needed.
      (MOSTLYCLEANFILES): Add libegnu.a.
      * src/Makefile.in (SHEAP_OBJ): Remove.
      (HYBRID_MALLOC): New macro.
      (base_obj): Use it to conditionally add sheap.o.
      (LIBEGNU_ARCHIVE): New macro.
      ($(LIBEGNU_ARCHIVE)): New rule, replacing $(lib)/libegnu.a.
      All uses of the latter replaced by the former.
      * src/alloc.c (USE_ALIGNED_ALLOC): Simplify configuration.
      Correct misspelling ALIGNED_ALLOC to HAVE_ALIGNED_ALLOC.
      * src/gmalloc.c: Update comment.
      * src/lisp.h (aligned_alloc)
      [!DOUG_LEA_MALLOC && !HYBRID_MALLOC && !SYSTEM_MALLOC]:
      New decl.
      (Bug#22086)
      7fdc3cf0
    • Wolfgang Jenkner's avatar
      Link temacs with gnulib compiled with -Demacs · a5f85861
      Wolfgang Jenkner authored
      This is done to support HYBRID_MALLOC, since some static variables
      (e.g., last_environ in putenv.c) hold pointers to memory malloced
      before dumping (Bug#22086).
      * lib/Makefile.am: Add incantation to install libegnu.a.
      * src/Makefile.in ($(lib)/libgnu.a): Replace with libegnu.a
      (temacs$(EXEEXT)): Use it.
      a5f85861
  33. 25 Jan, 2016 1 commit
    • Alan Mackenzie's avatar
      Expunge "allow" + infinitive from source and doc, part 2. · ec90220a
      Alan Mackenzie authored
      Do the same for "permit", "enable", "prevent", and (where appropriate)
      "require".
      
      doc/misc/reftex.texi:
      doc/misc/url.texi:
      lib/get-permissions.c:
      lib/strftime.c:
      lisp/org/org-element.el:
      lisp/org/org-mobile.el:
      lisp/textmodes/reftex-vars.el:
      src/bidi.c:
      src/emacs.c:
      src/xdisp.c:
      test/etags/c-src/emacs/src/lisp.h:
      
      Expunge the likes of "This allows to do something" from the above files.
      ec90220a