1. 10 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · b079ee72
      Paul Eggert authored
      This incorporates:
      2017-09-08 stddef: Avoid conflict with system-defined max_align_t
      2017-08-24 warnings: fix compilation with old autoconf
      2017-08-23 glob: merge from glibc with Zanella glob changes
      2017-08-17 random: Fix test compilation failure on Cygwin 1.5.25
      * doc/misc/texinfo.tex, lib/flexmember.h, lib/stddef.in.h:
      * lib/stdlib.in.h, m4/manywarnings.m4, m4/stdlib_h.m4:
      * m4/warnings.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      b079ee72
  2. 16 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Merge from Gnulib; use ‘open’ for O_CLOEXEC · 794c3cd3
      Paul Eggert authored
      This incorporates:
      2017-08-15 renameat: ensure declaration in <stdio.h> on NetBSD
      2017-08-15 extensions: enable NetBSD specific extensions
      2017-08-14 open: support O_CLOEXEC
      2017-08-13 reallocarray: new module
      * admin/merge-gnulib (AVOIDED_MODULES): Remove ‘open’, since
      it now supports O_CLOEXEC and this simplifies Emacs.
      * build-aux/config.guess, lib/fcntl.in.h, lib/stdio.in.h:
      * lib/stdlib.in.h, m4/extensions.m4, m4/stdlib_h.m4:
      Copy from Gnulib.
      * lib/cloexec.c, lib/cloexec.h, lib/open.c:
      * m4/mode_t.m4, m4/open-cloexec.m4, m4/open.m4:
      New files, copied from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib-src/etags.c (O_CLOEXEC) [WINDOWSNT]:
      Remove, as Gnulib does this for us.
      * src/filelock.c (create_lock_file):
      * src/sysdep.c (emacs_open, emacs_pipe):
      Don’t worry about O_CLOEXEC == 0, as Gnulib no longer sets it to 0.
      794c3cd3
  3. 12 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Improve make-temp-file performance on local files · a6ad98ad
      Paul Eggert authored
      For the motivation behind this patch, please see Bug#28023 and:
      http://emacshorrors.com/posts/make-temp-name.html
      Although, given the recent changes to Tramp, the related security
      problem in make-temp-file is already fixed, make-temp-file still has
      several unnecessary system calls.  In the typical case on GNU/Linux,
      this patch replaces 8 syscalls (symlink, open, close, readlinkat, uname,
      getpid, unlink, umask) by 2 (open, close).
      * admin/merge-gnulib (GNULIB_MODULES): Add tempname, now
      that Emacs is using it directly.
      * configure.ac (AUTO_DEPEND): Remove AC_SYS_LONG_FILE_NAMES;
      no longer needed.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lisp/files.el (files--make-magic-temp-file): Rename from
      make-temp-file.
      (make-temp-file): Use make-temp-file-internal for
      non-magic file names.
      * src/fileio.c: Include tempname.h.
      (make_temp_name_tbl, make_temp_name_count)
      (make_temp_name_count_initialized_p, make_temp_name): Remove.
      (Fmake_temp_file_internal): New function.
      (Fmake_temp_name): Use it.
      * src/filelock.c (get_boot_time): Use Fmake_temp_file_internal
      instead of make_temp_name.
      a6ad98ad
  4. 09 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 904be8c4
      Paul Eggert authored
      This incorporates:
      2017-08-09 tempname: do not depend on secure_getenv
      2017-08-08 extensions: add _OPENBSD_SOURCE
      2017-08-06 manywarnings: Add support for C++
      2017-08-06 warnings, manywarnings: Add support for multiple languages
      * admin/merge-gnulib: Don't use m4/manywarnings-c++.m4.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/secure_getenv.c, m4/secure_getenv.m4: Remove.
      * lib/tempname.c, m4/extensions.m4, m4/manywarnings.m4, m4/warnings.m4:
      Copy from gnulib.
      904be8c4
  5. 05 Aug, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · b8748dd0
      Paul Eggert authored
      This incorporates:
      2017-08-04 manywarnings: port to 64-bit GCC builds of Emacs
      2017-08-01 manywarnings: port to 32-bit GCC bug
      * lib/gnulib.mk.in: Regenerate.
      * m4/manywarnings.m4: Copy from gnulib.
      b8748dd0
  6. 31 Jul, 2017 2 commits
    • Paul Eggert's avatar
      Avoid most stat calls when completing file names · 3a8d0cc8
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add d-type.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * m4/d-type.m4: New file, copied from gnulib.
      * src/dired.c (DT_UNKNOWN, DT_DIR, DT_LINK)
      [!HAVE_STRUCT_DIRENT_D_TYPE]: New constants.
      (dirent_type): New function.
      (file_name_completion): Use it, to avoid unnecessary calls to
      stat-like functions on GNU/Linux and other platforms with d_type.
      (file_name_completion_stat): Just follow the link; there is no
      need to try first with AT_SYMLINK_NOFOLLOW since the directory
      entry was already checked to exist.
      3a8d0cc8
    • Paul Eggert's avatar
      Merge from gnulib · ebce9c24
      Paul Eggert authored
      This incorporates:
      2017-07-30 Don't interpret EOVERFLOW to mean nonexistence
      * lib/tempname.c: Copy from gnulib.
      ebce9c24
  7. 24 Jul, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 9b971bdd
      Paul Eggert authored
      This incorporates:
      2017-07-23 Rename module 'strftime' to 'nstrftime'
      * admin/merge-gnulib (GNULIB_MODULES): Add nstrftime, remove strftime.
      * build-aux/config.guess: Copy from gnulib.
      * lib/nstrftime.c: Rename from lib/strftime.c.
      * m4/nstrftime.m4: Rename from m4/strftime.m4.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      9b971bdd
  8. 16 Jul, 2017 2 commits
    • Paul Eggert's avatar
      Use explicit_bzero to clear GnuTLS keys · 59f69721
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add explicit_bzero.
      * lib/explicit_bzero.c, m4/explicit_bzero.m4: New files.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * src/gnutls.c (clear_storage): New function.
      (gnutls_symmetric_aead): Use it instead of memset.
      59f69721
    • Paul Eggert's avatar
      Merge from gnulib · 252444aa
      Paul Eggert authored
      This incorporates:
      2017-07-16 explicit_bzero: new module
      2017-07-15 getdtablesize: Add minimal support for OpenVMS.
      * lib/getdtablesize.c, lib/string.in.h, m4/getdtablesize.m4:
      * m4/string_h.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in: Regenerate.
      252444aa
  9. 14 Jul, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 3128d5d1
      Paul Eggert authored
      This incorporates:
      2017-07-13 Improve cross-compilation guesses for native Windows
      2017-07-11 More systematic m4 quoting and indentation
      2017-07-10 Make sure $host and $host_os are defined when used
      2017-07-03 stdioext: Port to OpenVMS
      2017-06-24 xalloc-oversized: port to icc
      * doc/misc/texinfo.tex, lib/fpending.c, lib/stdio-impl.h:
      * lib/xalloc-oversized.h, m4/dirfd.m4, m4/gettimeofday.m4:
      * m4/lstat.m4, m4/mktime.m4, m4/pselect.m4, m4/putenv.m4:
      * m4/stdint.m4, m4/strtoimax.m4, m4/utimes.m4:
      Copy from Gnulib.
      3128d5d1
  10. 22 Jun, 2017 1 commit
    • Paul Eggert's avatar
      Use unlocked stdio more systematically · f6ef15cf
      Paul Eggert authored
      This can improve performance significantly on stdio-bottlenecked code.
      E.g., make-docfile is 3x faster on my Fedora 25 x86-64 desktop.
      * admin/merge-gnulib (GNULIB_MODULES): Add unlocked-io.
      * lib-src/ebrowse.c, lib-src/emacsclient.c, lib-src/etags.c:
      * lib-src/hexl.c, lib-src/make-docfile.c, lib-src/movemail.c:
      * lib-src/profile.c, lib-src/update-game-score.c:
      Include unlocked-io.h instead of stdio.h, since these programs are
      single-threaded.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/unlocked-io.h, m4/unlocked-io.m4: New files, copied from Gnulib.
      * src/charset.c, src/cm.c, src/emacs.c, src/image.c, src/keyboard.c:
      * src/lread.c, src/term.c:
      Include sysstdio.h, possibly instead of stdio.h, to define
      the unlocked functions if the system does not provide them.
      * src/charset.c, src/lread.c (getc_unlocked):
      Remove, since sysstdio.h now defines it if needed.
      * src/cm.c (cmputc, cmcheckmagic):
      * src/dispnew.c (update_frame, update_frame_with_menu)
      (update_frame_1, Fsend_string_to_terminal, Fding, bitch_at_user):
      * src/emacs.c (main, Fdump_emacs):
      * src/fileio.c (Fdo_auto_save, Fset_binary_mode):
      * src/image.c (slurp_file, png_read_from_file, png_load_body)
      (our_stdio_fill_input_buffer):
      * src/keyboard.c (record_char, kbd_buffer_get_event, handle_interrupt):
      * src/lread.c (readbyte_from_file):
      * src/minibuf.c (read_minibuf_noninteractive):
      * src/print.c (printchar_to_stream, strout)
      (Fredirect_debugging_output):
      * src/sysdep.c (reset_sys_modes, procfs_ttyname)
      (procfs_get_total_memory):
      * src/term.c (tty_ring_bell, tty_send_additional_strings)
      (tty_set_terminal_modes, tty_reset_terminal_modes)
      (tty_update_end, tty_clear_end_of_line, tty_write_glyphs)
      (tty_write_glyphs_with_face, tty_insert_glyphs)
      (tty_menu_activate):
      * src/xfaces.c (Fx_load_color_file):
      Use unlocked stdio when it should be safe.
      * src/sysstdio.h (clearerr_unlocked, feof_unlocked, ferror_unlocked)
      (fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked)
      (fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked)
      (putc_unlocked, putchar_unloced): Provide substitutes if not declared.
      f6ef15cf
  11. 17 Jun, 2017 3 commits
    • Paul Eggert's avatar
      * lib/gettext.h: Merge from gnulib. · 5261a7d8
      Paul Eggert authored
      5261a7d8
    • Paul Eggert's avatar
      Merge from gnulib · 209ddb10
      Paul Eggert authored
      This (and my previous patch) incorporate:
      2017-06-17 diffseq: port to GCC 7 with --enable-gcc-warnings
      2017-06-15 gettext-h: Update comment
      * lib/diffseq.h: Copy from gnulib.
      209ddb10
    • Philipp Stephani's avatar
      Add command to replace buffer contents · d682f0da
      Philipp Stephani authored
      Add a new command 'replace-buffer-contents' that uses the Myers diff
      algorithm to non-destructively replace the accessible portion of the
      current buffer.  The Myers algorithm is implemented in Gnulib.
      
      * src/editfns.c (Freplace_buffer_contents): New command.
      (set_bit, bit_is_set, buffer_chars_equal): New helper functions.
      (syms_of_editfns): Define new command.
      
      * test/src/editfns-tests.el (replace-buffer-contents-1)
      (replace-buffer-contents-2): New unit tests.
      
      * src/buffer.h (BUF_FETCH_CHAR_AS_MULTIBYTE): New helper macro.
      
      * admin/merge-gnulib (GNULIB_MODULES): Add diffseq.h and minmax.h.
      d682f0da
  12. 15 Jun, 2017 1 commit
    • Paul Eggert's avatar
      Pacify clang without munging C source · 21d10e59
      Paul Eggert authored
      * configure.ac (WARN_CFLAGS): With Clang, use
      -Wno-tautological-compare regardless of --enable-gcc-warnings.
      (WERROR_CFLAGS): Simplify assignments, and guarantee it’s always set.
      * lib/strftime.c: Copy from gnulib, reverting Clang-specific
      change which I hope is no longer needed.
      * src/emacs.c (main): Revert rlim_t change, as rlim_t is signed on
      some older non-POSIX hosts.
      21d10e59
  13. 13 Jun, 2017 1 commit
  14. 12 Jun, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 07ab8374
      Paul Eggert authored
      This incorporates:
      2017-06-11 getopt-posix: port to glibc 2.25.90
      2017-06-04 same-inode: port better to VMS 8.2 and later
      * doc/misc/texinfo.tex, lib/getopt-pfx-core.h, lib/getopt-pfx-ext.h:
      * m4/sys_types_h.m4: Copy from gnulib.
      07ab8374
  15. 01 Jun, 2017 1 commit
    • Paul Eggert's avatar
      Improve performance by avoiding strtoumax · 178d0cb5
      Paul Eggert authored
      This made (string-to-number "10") 20% faster on my old desktop,
      an AMD Phenom II X4 910e running Fedora 25 x86-64.
      * admin/merge-gnulib (GNULIB_MODULES): Remove strtoumax.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, m4/strtoull.m4:
      * m4/strtoumax.m4: Remove.
      * src/editfns.c (str2num): New function.
      (styled_format): Use it instead of strtoumax.  Use ptrdiff_t
      instead of uintmax_t.  Check for integer overflow.
      * src/lread.c (LEAD_INT, DOT_CHAR, TRAIL_INT, E_EXP):
      Move to private scope and make them enums.
      (string_to_number): Compute integer value directly during
      first pass instead of revisiting it with strtoumax later.
      178d0cb5
  16. 30 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · ebcc70ab
      Paul Eggert authored
      * build-aux/config.guess: Copy from gnulib.
      * lib/gnulib.mk.in: Regenerate.
      ebcc70ab
  17. 25 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 9ebc2bbe
      Paul Eggert authored
      This incorporates:
      2017-05-25 port to recent icc
      * lib/intprops.h: Copy from gnulib.
      9ebc2bbe
  18. 16 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge with gnulib, pacifying GCC 7 · 2e1bebe2
      Paul Eggert authored
      This incorporates:
      2017-05-16 manywarnings: update for GCC 7
      2017-05-15 sys_select: Avoid "was expanded before it was required"
      * configure.ac (nw): Suppress GCC 7’s new -Wduplicated-branches and
      -Wformat-overflow=2 options, due to too many false alarms.
      * doc/misc/texinfo.tex, lib/strftime.c, m4/manywarnings.m4:
      Copy from gnulib.
      * m4/gnulib-comp.m4: Regenerate.
      * src/coding.c (decode_coding_iso_2022):
      Fix bug uncovered by -Wimplicit-fallthrough.
      * src/conf_post.h (FALLTHROUGH): New macro.
      Use it to mark all switch cases that fall through.
      * src/editfns.c (styled_format): Use !, not ~, on bool.
      * src/gtkutil.c (xg_check_special_colors):
      When using sprintf, don’t trust Gtk to output colors in [0, 1] range.
      (xg_update_scrollbar_pos): Avoid use of possibly-uninitialized bool;
      this bug was actually caught by Clang.
      * src/search.c (boyer_moore):
      Tell GCC that CHAR_BASE, if nonzero, must be a non-ASCII character.
      * src/xterm.c (x_draw_glyphless_glyph_string_foreground):
      Tell GCC that glyph->u.glyphless.ch must be a character.
      2e1bebe2
  19. 14 May, 2017 2 commits
    • Paul Eggert's avatar
      Merge from gnulib · 10037e4b
      Paul Eggert authored
      This incorporates:
      2017-05-14 same-inode: Adapt for windows-stat-inodes
      2017-05-14 windows-stat-inodes: New module
      2017-05-14 stat-time: Adapt for windows-stat-timespec
      * lib/gnulib.mk.in: Regenerate.
      * lib/stat-time.h, lib/sys_types.in.h, m4/sys_types_h.m4:
      Copy from gnulib.
      10037e4b
    • Paul Eggert's avatar
      Merge from gnulib · 4132bd74
      Paul Eggert authored
      This incorporates:
      2017-05-13 largefile: Simplify
      2017-05-13 largefile: Improve and document
      2017-05-13 truncate: New module
      2017-05-13 windows-stat-timespec: New module
      2017-05-13 windows-stat-override: New module
      2017-05-11 getopt-posix: port to mingw
      2017-05-11 gettimeofday: Increase precision on mingw
      2017-05-10 time: Fix missing initialization of HAVE_TIMEZONE_T
      2017-05-10 Implement a way to opt out from MSVC support
      2017-05-09 tzset: Expand comment about TZ problem on native Windows
      * build-aux/config.guess, lib/dup2.c, lib/fcntl.c, lib/fsync.c:
      * lib/getdtablesize.c, lib/getopt.c, lib/gettimeofday.c:
      * lib/mktime.c, lib/stat-time.h, lib/sys_stat.in.h, lib/unistd.in.h:
      * lib/utimens.c, m4/gettimeofday.m4, m4/largefile.m4:
      * m4/sys_stat_h.m4, m4/sys_time_h.m4, m4/time_h.m4, m4/time_rz.m4:
      * m4/unistd_h.m4: Copy from gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      4132bd74
  20. 08 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 7ff7624a
      Paul Eggert authored
      This incorporates:
      2017-05-08 intprops: don’t depend on ‘verify’
      2017-05-07 utimens: on native Windows, improve resolution if fd < 0
      2017-05-07 utimens: Improve error code on native Windows
      * lib/intprops.h, lib/utimens.c: Copy from gnulib.
      7ff7624a
  21. 02 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 9c2b03fe
      Paul Eggert authored
      This incorporates:
      2017-05-02 utimens: port to Emacs + MS-Windows
      * lib/utimens.c: Copy from gnulib.
      9c2b03fe
  22. 01 May, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 634d0a90
      Paul Eggert authored
      This incorporates:
      2017-05-01 New module 'localtime-buffer'
      2017-04-30 utimens: Add support for native Windows
      * admin/merge-gnulib (AVOIDED_MODULES): Add tzset.
      * configure.ac (tzset): No need for Emacs itself to check now.
      * lib/gettimeofday.c, lib/time.in.h, lib/time_rz.c, lib/utimens.c:
      * m4/gettimeofday.m4, m4/time_h.m4, m4/time_rz.m4: Copy from gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/localtime-buffer.c, lib/localtime-buffer.h:
      * m4/localtime-buffer.m4: New files, copied from gnulib.
      * src/editfns.c (init_editfns): Assume tzset is callable.
      634d0a90
  23. 30 Apr, 2017 3 commits
    • Paul Eggert's avatar
      Merge from gnulib · b6aa3446
      Paul Eggert authored
      This incorporates:
      2017-04-30 strftime-fixes: New module
      2017-04-30 mktime: Work around TZ problem on native Windows
      2017-04-30 ctime, localtime: New modules
      2017-04-30 gettimeofday: Provide higher resolution on native Windows
      2017-04-29 utime-h: Modernize handling of 'struct utimbuf'
      2017-04-29 Make use of module 'utime-h'
      2017-04-30 Fix a few typos
      * admin/merge-gnulib (AVOIDED_MODULES): Avoid utime-h, too.
      * lib/gettimeofday.c, lib/mktime.c, lib/time.in.h, lib/utimens.c:
      * m4/gettimeofday.m4, m4/include_next.m4, m4/mktime.m4:
      * m4/strftime.m4, m4/time_h.m4, m4/timegm.m4, m4/utimens.m4:
      Copy from gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      b6aa3446
    • Paul Eggert's avatar
      Merge from gnulib · 7e4dae99
      Paul Eggert authored
      This avoids incorporating the following, which I suspect are
      more trouble for Emacs than they’re worth:
      2017-04-29 stat, fstat: fix time_t etc. on native Windows platforms
      * admin/merge-gnulib (AVOIDED_MODULES): Avoid stat, too.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/pathmax.h, lib/stat.c, m4/pathmax.m4, m4/stat.m4: Remove.
      7e4dae99
    • Paul Eggert's avatar
      Merge from gnulib · 7cc329fd
      Paul Eggert authored
      This incorporates:
      2017-04-29 getopt: port to Solaris 10 with circa-1997 glibc getopt.h
      * lib/getopt-pfx-ext.h: Copy from gnulib.
      * lib/gnulib.mk.in: Regenerate.
      7cc329fd
  24. 27 Apr, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · abd76913
      Paul Eggert authored
      This incorporates:
      2017-04-24 time_rz: fix heap buffer overflow vulnerability
      2017-04-23 stat-time: Update comments.
      2017-04-22 ftoastr: cite a newer paper
      2017-04-21 gettext-h: Avoid -Wundef warning.
      * lib/ftoastr.c, lib/gettext.h, lib/stat-time.h, lib/time_rz.c:
      * m4/getopt.m4: Copy from gnulib.
      * m4/gnulib-comp.m4: Regenerate.
      abd76913
  25. 16 Apr, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 0ef7f644
      Paul Eggert authored
      This incorporates:
      2017-04-14 intprops: try to avoid tickling similar bugs
      2017-04-14 intprops: port to Oracle Studio 12.3 x86
      * doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib.
      0ef7f644
  26. 09 Apr, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib (Bug#26398) · 43bc45ba
      Paul Eggert authored
      This incorporates:
      2017-04-08 getopt: prefer - to _ in new file names
      2017-04-08 getopt: port recent getopt changes to macOS
      * .gitignore: Add lib/getopt-cdefs.h.
      * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
      * lib/getopt-core.h: Rename from lib/getopt_core.h.
      * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
      * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
      * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
      * lib/getopt.in.h, lib/unistd.in.h, m4/getopt.m4:
      Copy from Gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      43bc45ba
  27. 06 Apr, 2017 2 commits
    • Paul Eggert's avatar
      Merge from gnulib · 02275595
      Paul Eggert authored
      This merges some getopt fixes from Zack Weinberg, and affects only
      non-GNUish platforms.  It incorporates:
      2017-04-06 getopt-gnu: omit some duplicate code
      2017-04-06 getopt-posix: use angle-bracket include
      2017-04-06 getopt: annotate files with relationship to glibc
      2017-04-06 getopt: split up getopt.in.h and eliminate __need_getopt
      2017-04-06 getopt: better handling of ambiguous options
      2017-04-06 getopt: refactor long-option handling
      2017-04-06 getopt: tidy up _getopt_initialize a bit
      2017-04-06 getopt: merge from glibc: repetition reduction
      2017-04-06 getopt: clean up error reporting
      2017-04-06 getopt: fix fencepost error in ambiguous-W-option handling
      2017-04-06 getopt: clean up getopt.c and getopt1.c file headers
      2017-04-06 getopt: harmonize comments with glibc
      2017-04-06 getopt: remove USE_NONOPTION_FLAGS
      2017-04-06 getopt: tabify, in preparation for merge with glibc
      2017-04-06 md5, sha1, sha256, sha512: Add comments re correctness
      * build-aux/config.sub, doc/misc/texinfo.tex, lib/getopt.c:
      * lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h, lib/md5.c:
      * lib/md5.h, lib/sha1.c, lib/sha1.h, lib/sha256.c, lib/sha256.h:
      * lib/sha512.c, lib/sha512.h, lib/unistd.in.h, m4/getopt.m4:
      Copy from gnulib.
      * lib/getopt_cdefs.in.h, lib/getopt_core.h, lib/getopt_ext.h:
      * lib/getopt_pfx_core.h, lib/getopt_pfx_ext.h:
      New files, taken from gnulib.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4:
      Regenerate.
      02275595
    • Paul Eggert's avatar
      Fix 'make clean' in lib subdirectory · 360b2bf2
      Paul Eggert authored
      * lib/Makefile.in (clean): Remove *-t files.
      (mostlyclean): Remove MOSTLYCLEANFILES that are not *-t files.
      This removes files like lib/getopt.h that should be removed
      even if this configuration did not need to build them.
      (maintainer-clean): Remove TAGS here, not in distclean,
      to be consistent with ../src/Makefile.in.
      360b2bf2
  28. 23 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · e6d3eaa6
      Paul Eggert authored
      This incorporates:
      2017-03-22 getopt: merge from glibc
      * build-aux/config.sub, lib/getopt.c, lib/getopt.in.h:
      * lib/getopt1.c, lib/getopt_int.h: Copy from gnulib.
      * lib/gnulib.mk.in: Regenerate.
      e6d3eaa6
  29. 21 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Streamline dependency-file generation · bf8cf95d
      Paul Eggert authored
      * configure.ac (AUTODEPEND_PARENTS): New var.
      mkdir the dependency directories here, to simplify ‘make’.
      Remove dependency files just before outputting Makefiles, so that
      they are preserved if ‘configure’ exits early due to some other problem.
      * lib/Makefile.in, lwlib/Makefile.in, oldXMenu/Makefile.in:
      * src/Makefile.in: Adjust deps strategies to be similar, as follows:
      (MKDEPDIR): Remove.  All uses removed.  This cuts down on the
      number of processes spun off by ‘make’.
      (clean mostlyclean): Remove $(DEPDIR) contents, not $(DEPDIR) itself.
      (distclean): Remove $(DEPDIR) itself.
      * lwlib/Makefile.in (all): Move to front, so that depdir includes
      do not alter default action.
      bf8cf95d
  30. 19 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · fa90c5e8
      Paul Eggert authored
      This gets Emacs working again with HP-UX Itanium cc.
      It incorporates:
      2017-03-19 stdalign: tweak version# and test for HP-UX IA64
      2017-03-18 stdalign: restore previous behavior for HP-UX IA64
      2017-03-17 stat-time, timespec: Support header files in C++ mode
      2017-03-17 stdalign: Make it work with HP-UX cc
      2017-03-17 flexmember: try to detect HP-UX 11.31 cc bug
      2017-03-16 stdint: Fix test compilation failure with HP-UX 11 cc.
      2017-03-14 gnulib-tool: don't produce tests with only snippets
      2017-03-14 limits-h: Make it work with HP-UX cc.
      * etc/PROBLEMS: Remove now-obsolete entry for HP-UX 11.31.
      * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
      * lib/limits.in.h, lib/stat-time.h, lib/stdalign.in.h:
      * lib/stdint.in.h, lib/timespec.h, m4/flexmember.m4, m4/stdalign.m4:
      Copy from gnulib.
      fa90c5e8
  31. 18 Mar, 2017 2 commits