]> granicus.if.org Git - gc/commitdiff
Update EXTRA_DIST in Makefile, Win32/64 docs after NT_*_MAKEFILE removal
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Apr 2017 08:59:20 +0000 (11:59 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 12 Jul 2018 06:01:33 +0000 (09:01 +0300)
(a cherry-pick of commit c76a0d8d from 'master')

* Makefile.am (EXTRA_DIST): Remove NT_STATIC_THREADS_MAKEFILE,
NT_X64_STATIC_THREADS_MAKEFILE, NT_X64_THREADS_MAKEFILE.
* Makefile.direct (OTHER_MAKEFILES): Likewise.
* doc/README.win32 (Threads): Do not refer to NT_THREADS_MAKEFILE;
replace NT_STATIC_THREADS_MAKEFILE to NT_MAKEFILE.
* doc/README.win64: Replace NT_X64_STATIC_THREADS_MAKEFILE and
NT_X64_THREADS_MAKEFILE to NT_MAKEFILE; update documentation
accordingly; update note about Test_cpp failures; update note about
suppressed warnings.

Makefile.am
Makefile.direct
doc/README.win32
doc/README.win64

index 7d350f51d62382822560a3191109c6a0241087a2..0ba270b0bf53252b524b1e13063ae144fab46c88 100644 (file)
@@ -191,8 +191,7 @@ EXTRA_DIST += README.QUICK
 EXTRA_DIST += BCC_MAKEFILE NT_MAKEFILE \
     OS2_MAKEFILE PCR-Makefile digimars.mak EMX_MAKEFILE \
     Makefile.direct SMakefile.amiga WCC_MAKEFILE autogen.sh \
-    NT_STATIC_THREADS_MAKEFILE NT_X64_STATIC_THREADS_MAKEFILE \
-    NT_X64_THREADS_MAKEFILE CMakeLists.txt tests/CMakeLists.txt
+    CMakeLists.txt tests/CMakeLists.txt
 
 # files used by makefiles other than Makefile.am
 #
index c8bbf81858d65982a1ca44e62f197972e453b0ad..f661cf0995dd0a9cafe37a0bac51c12587500229 100644 (file)
@@ -147,8 +147,7 @@ GNU_BUILD_FILES= configure.ac Makefile.am configure install-sh Makefile.in \
 
 OTHER_MAKEFILES= OS2_MAKEFILE NT_MAKEFILE gc.mak \
   BCC_MAKEFILE EMX_MAKEFILE WCC_MAKEFILE PCR-Makefile SMakefile.amiga \
-  digimars.mak Makefile.direct NT_STATIC_THREADS_MAKEFILE \
-  NT_X64_STATIC_THREADS_MAKEFILE NT_X64_THREADS_MAKEFILE
+  digimars.mak Makefile.direct
 
 OTHER_FILES= README.QUICK tools/setjmp_t.c tools/callprocs.sh \
   extra/MacOS.c extra/Mac_files/datastart.c extra/Mac_files/dataend.c \
index fae4b5cf89cd269e5fdf46ce630aed85601f8a08..234f866a0fb14ed9673b9b8fda66cc1cab50278d 100644 (file)
@@ -178,9 +178,8 @@ to the collector DLL still exists, but requires that both
 We generally recommend avoiding this if possible, since it seems to
 be less than 100% reliable.
 
-Use gc.mak (a.k.a NT_THREADS_MAKEFILE) instead of NT_MAKEFILE
-to build a version that supports both kinds of thread tracking.
-To build the garbage collector
+Use gc.mak instead of NT_MAKEFILE to build a version that supports
+both kinds of thread tracking.  To build the garbage collector
 test with VC++ from the command line, use
 
 nmake /F ".\gc.mak" CFG="gctest - Win32 Release"
@@ -192,10 +191,9 @@ This version currently supports incremental collection only if it is
 enabled before any additional threads are created.
 
 Since 6.3alpha2, threads are also better supported in static library builds
-with Microsoft tools (use NT_STATIC_THREADS_MAKEFILE) and with the GNU
-tools.  The collector must be built with GC_THREADS defined.
-(NT_STATIC_THREADS_MAKEFILE does this implicitly.  Under Cygwin,
-./configure --enable-threads=posix should be used.)
+with Microsoft tools (e.g., NT_MAKEFILE) and with the GNU
+tools.  The collector must be built with GC_THREADS defined (this is the
+default in NT_MAKEFILE, ./configure and CMakeLists.txt).
 
 For the normal, non-dll-based thread tracking to work properly,
 threads should be created with GC_CreateThread or GC_beginthreadex,
index 416f0348cf25a3979a9a5ff265700a701c48488b..82b9456c6c67508dae6ea6a3724ac24c7cb081a8 100644 (file)
@@ -3,24 +3,25 @@ and later release.  A collector can be built with Microsoft Visual C++ 2005
 or with mingw-w64 gcc.
 More testing would clearly be helpful.
 
-NT_X64_STATIC_THREADS_MAKEFILE has been used in
-this environment.  Copy this file to MAKEFILE, and then type "nmake"
-in a Visual C++ command line window to build the static library
-and the usual test programs.  To verify that the collector is
-at least somewhat functional, run gctest.exe.  This should create
-gctest.gc.log after a few seconds.
+NT_MAKEFILE has been used in this environment.  Uncomment the corresponding
+definitions of CPU and CVTRES_CPU variables (commenting out the ones for X86),
+and then type "nmake -f NT_MAKEFILE" in a Visual C++ command line window to
+build the dynamic library with threads support and the usual test programs.
+To verify that the collector is at least somewhat functional, run gctest.exe.
+This should create gctest.gc.log after a few seconds.
 
-This process is completely analogous to NT_STATIC_THREADS_MAKEFILE
-for the 32-bit version.
+Test_cpp.exe might not run correctly in case of dynamic GC linking.  (It seems
+that we're getting wrong instances of operator new/delete in some cases.)
 
-A similar procedure using NT_X64_THREADS_MAKEFILE should be usable to
-build the dynamic library.  Test_cpp.exe did not seem to run correctly this
-way.  It seems that we're getting the wrong instances of operator new/delete
-in some cases.  The C tests seemed OK.
+This process is completely analogous to NT_MAKEFILE usage
+for the 32-bit library version.
 
-Note that currently a few warnings are still generated by default,
-and a number of others have been explicitly turned off in the makefile.
+A similar procedure using NT_MAKEFILE should be usable to
+build the static library (see comments for CFLAGS_SPECIFIC and LINK_GC
+variables in NT_MAKEFILE).
 
-VC++ note: to suppress warnings use -D_CRT_SECURE_NO_DEPRECATE.
+Note that some warnings have been explicitly turned off in the makefile.
+
+VC++ note: to suppress warnings -D_CRT_SECURE_NO_DEPRECATE is used.
 
 gcc note: -fno-strict-aliasing should be used if optimizing.