[PATCH 4/4] Update autoconf for doc/lsaauth/utils

2016-03-31 Thread Peter Foley
Don't use obsolete LIB_AC_PROG_CC. Run autoupdate. winsup/ChangeLog: doc/aclocal.m4: delete lsaauth/aclocal.m4: ditto doc/configure.ac: refactor and update lsaauth/configure.ac: ditto utils/configure.ac: ditto doc/configure: regenerate lsaauth/configure: regenerate utils/configure: regenerate

[PATCH 3/4] Remove remnants of never-defined MALLOC_DEBUG and NEWVFORK

2016-03-31 Thread Peter Foley
MALLOC_DEBUG and NEWVFORK haven't been defined since 2008 (46162537516c5e5fbb). Remove all references to tem. winsup/cygwin/ChangeLog: acconfig.h: delete dcrt0.cc (dll_crt0_1): remove NEWVFORK code. dcrt0.cc (do_exit): ditto. debug.h: ditto. dtable.h: ditto. winsup.h: ditto. globals.cc: ditto.

[PATCH 1/4] Remove leftover cruft from config.h.in

2016-03-31 Thread Peter Foley
HAVE_BUILTIN_MEMTEST and AC_ALLOCA were removed in 4bd8eb7d1b. Cleanup leftover references. winsup/cygwin/ChangeLog acconfig.h: remove HAVE_BUILTIN_MEMTEST config.h.in: regenerate Signed-off-by: Peter Foley --- winsup/cygwin/acconfig.h | 3 --- winsup/cygwin/config.h.in

[PATCH 2/4] Don't use deprecated acconfig.h for DEBUGGING

2016-03-31 Thread Peter Foley
Use the 3-arg form of AC_DEFINE. winsup/cygwin/ChangeLog: acconfig.h: Remove DEBUGGING define. configure.ac: Add description to DEBUGGING define. config.h.in: Regenerate. configure: Ditto. Signed-off-by: Peter Foley --- winsup/cygwin/acconfig.h | 3 ---

[PATCH] Add without-library-checks

2016-03-31 Thread Peter Foley
When cross-compiling a toolchan targeting cygwin, building cygwin1.dll requires libgcc. However, building libgcc requires the cygwin headers to be installed. Configuring cygwin requries the mingw-crt libraries, which require the cygwin headers to be installed. Work around this circular dependency

[PATCH v2] Refactor to avoid nonnull checks on "this" pointer.

2016-03-31 Thread Peter Foley
G++ 6.0 asserts that the "this" pointer is non-null for member functions. Refactor methods that check if this is non-null to be static where necessary, and remove the check where it is unnecessary. winsup/cygwin/ChangeLog external.cc (cygwin_internal): Call _pinfo::cmdline staticly cygheap.h