]> granicus.if.org Git - gc/commitdiff
Define GC_ATOMIC_UNCOLLECTABLE and JAVA_FINALIZATION in all make scripts
authorIvan Maidanski <ivmai@mail.ru>
Tue, 18 Dec 2018 23:17:58 +0000 (02:17 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 18 Dec 2018 23:17:58 +0000 (02:17 +0300)
This matches the policy of configure and CMakeLists.txt.

* BCC_MAKEFILE (defines): Add -D GC_ATOMIC_UNCOLLECTABLE.
* NT_MAKEFILE (.cpp.obj): Likewise.
* Makefile.direct (CFLAGS): Add -D JAVA_FINALIZATION; reorder options.
* NT_MAKEFILE (.c.obj): Add -D GC_ATOMIC_UNCOLLECTABLE
-D JAVA_FINALIZATION.
* OS2_MAKEFILE (CFLAGS): Likewise.
* WCC_MAKEFILE (DEFS): Likewise.
* build/s60v3/libgc.mmp: Likewise.
* digimars.mak (DEFINES): Likewise.
* gc.mak [$CFG=="gc - Win32 Release" || $CFG=="gc - Win32 Debug"]
(CPP_PROJ): Likewise.
* NT_MAKEFILE (.cpp.obj): Remove redundant -I $(AO_INCLUDE_DIR)
-D ALL_INTERIOR_POINTERS.

BCC_MAKEFILE
Makefile.direct
NT_MAKEFILE
OS2_MAKEFILE
WCC_MAKEFILE
build/s60v3/libgc.mmp
digimars.mak
gc.mak

index 86b45dfdb8dea86b271baa0e64df00e4506aed1c..3df06fc919ba8b1901849bb390690bab20ab4b9e 100644 (file)
@@ -14,7 +14,8 @@ link=  $(bcbin)\ilink32
 cflags=  -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1) -L$(bclib) \\r
         -w-pro -w-aus -w-par -w-ccc -w-inl -w-rch -a4\r
 defines= -DALL_INTERIOR_POINTERS -DNO_EXECUTE_PERMISSION -DNO_GETENV \\r
-     -DENABLE_DISCLAIM -DJAVA_FINALIZATION -DGC_OPERATOR_NEW_ARRAY\r
+     -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DJAVA_FINALIZATION \\r
+     -DGC_OPERATOR_NEW_ARRAY\r
 \r
 .c.obj:\r
        $(cc) @&&|\r
index 9e4186b7c125192bd1b152ea2be988e223cb6426..89f08654c7e93531aec187be903d28127a2ab295 100644 (file)
@@ -46,8 +46,8 @@ AO_SRC_DIR=$(srcdir)/libatomic_ops
 CFLAGS_EXTRA=
 # We need CFLAGS_FOR_PIC because we might be building a shared library.
 CFLAGS= -O -I$(srcdir)/include -I$(AO_SRC_DIR)/src \
-  -DGC_ATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS \
-  -DENABLE_DISCLAIM $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA)
+  -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE \
+  -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA)
 
 # To build the collector with threads support, add to the above:
 # -DGC_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC
index efb1e96946df5f95cd3a2a7e319a9b5b480855b9..0f4904ca2e376a989e3dd49f49fdec736fe5ee4a 100644 (file)
@@ -92,12 +92,12 @@ OBJS= misc.obj win32_threads.obj alloc.obj reclaim.obj allchblk.obj mach_dep.obj
 all: gctest.exe cord\de.exe test_cpp.exe
 
 .c.obj:
-       $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude -I$(AO_INCLUDE_DIR) -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DNO_EXECUTE_PERMISSION -DCORD_NOT_DLL -D_CRT_SECURE_NO_DEPRECATE $*.c /Fo$*.obj /wd4100 /wd4127 /wd4701
+       $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude -I$(AO_INCLUDE_DIR) -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION -DCORD_NOT_DLL -D_CRT_SECURE_NO_DEPRECATE $*.c /Fo$*.obj /wd4100 /wd4127 /wd4701
 # Disable crt security warnings, since unfortunately they warn about all sorts
 # of safe uses of strncpy.  It would be nice to leave the rest enabled.
 
 .cpp.obj:
-       $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude -I$(AO_INCLUDE_DIR) -DALL_INTERIOR_POINTERS -D_CRT_SECURE_NO_DEPRECATE $*.cpp /Fo$*.obj
+       $(cc) $(cdebug) $(cflags) $(CFLAGS_SPECIFIC) -Iinclude -DGC_ATOMIC_UNCOLLECTABLE -D_CRT_SECURE_NO_DEPRECATE $*.cpp /Fo$*.obj
 
 $(OBJS) tests\test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h include\private\gc_locks.h include\private\gc_pmark.h include\gc_mark.h include\gc_disclaim.h include\private\msvc_dbg.h
 
index 9a0d6ae71d754320dae79a5d8785a7a1e5f31c53..21a64f6515447b94d6403d0f619d61ac61d152cf 100644 (file)
@@ -10,7 +10,7 @@ OBJS= alloc.obj reclaim.obj allchblk.obj misc.obj mach_dep.obj os_dep.obj mark_r
 CORDOBJS= cord\cordbscs.obj cord\cordxtra.obj cord\cordprnt.obj
 
 CC= icc
-CFLAGS= /O /Q /DALL_INTERIOR_POINTERS /DENABLE_DISCLAIM /DNO_EXECUTE_PERMISSION /DSMALL_CONFIG
+CFLAGS= /O /Q /DALL_INTERIOR_POINTERS /DENABLE_DISCLAIM /DGC_ATOMIC_UNCOLLECTABLE /DJAVA_FINALIZATION /DNO_EXECUTE_PERMISSION /DSMALL_CONFIG
 # Use /Ti instead of /O for debugging
 # Setjmp_test may yield overly optimistic results when compiled
 # without optimization.
index 4fd4c44371f4bfe3b10c6b5d394337f3b8797478..3256265ef2a21dd27fea1f8e3a7c9fdf336bd46b 100644 (file)
@@ -25,7 +25,7 @@ CPU=5
 OPTIM=-oneatx -s
 #OPTIM=-ohneatx -s
 
-DEFS=-DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DNO_EXECUTE_PERMISSION #-DSMALL_CONFIG
+DEFS=-DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION #-DSMALL_CONFIG
 
 
 #####
index 7fee8ad1af9d1d945551265cf4594f9891ca724f..a0dad4c8e186165f77eec9d73d303ebe29db246a 100644 (file)
@@ -18,8 +18,10 @@ CAPABILITY PowerMgmt ReadDeviceData ReadUserData WriteDeviceData WriteUserData S
 MACRO ALL_INTERIOR_POINTERS
 MACRO NO_EXECUTE_PERMISSION
 MACRO USE_MMAP
+MACRO GC_ATOMIC_UNCOLLECTABLE
 MACRO GC_DONT_REGISTER_MAIN_STATIC_DATA
 MACRO GC_DLL
+MACRO JAVA_FINALIZATION
 MACRO SYMBIAN
 MACRO ENABLE_DISCLAIM
 //MACRO GC_GCJ_SUPPORT
index 9e9f21f85a19aa2788cf2e97c62157ba598c9283..7aff1d0b49ba90cedcec15a8c221f937524a4656 100644 (file)
@@ -2,7 +2,7 @@
 # compiler from www.digitalmars.com\r
 # Written by Walter Bright\r
 \r
-DEFINES=-D_WINDOWS -DGC_DLL -DGC_THREADS -DGC_DISCOVER_TASK_THREADS -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DNO_EXECUTE_PERMISSION\r
+DEFINES=-D_WINDOWS -DGC_DLL -DGC_THREADS -DGC_DISCOVER_TASK_THREADS -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION\r
 CFLAGS=-Iinclude -Ilibatomic_ops\src $(DEFINES) -wx -g\r
 LFLAGS=/ma/implib/co\r
 CC=sc\r
diff --git a/gc.mak b/gc.mak
index 32f06d326ef9cc300d01097151cb9d83af3f323a..6703893058f9353e2b2fb1372eec39989b4c8c6f 100644 (file)
--- a/gc.mak
+++ b/gc.mak
@@ -120,7 +120,8 @@ CPP=cl.exe
 # ADD CPP /nologo /MD /W3 /GX /O2 /I include /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "ALL_INTERIOR_POINTERS" /D "GC_THREADS" /FR /YX /c
 CPP_PROJ=/nologo /MD /W3 /EHsc /O2 /I include /D "NDEBUG" /D "WIN32"\
  /D "_WINDOWS" /D "ALL_INTERIOR_POINTERS" /D "ENABLE_DISCLAIM"\
- /D "GC_THREADS" /D "NO_EXECUTE_PERMISSION" /D "_CRT_SECURE_NO_DEPRECATE"\
+ /D "GC_ATOMIC_UNCOLLECTABLE" /D "GC_THREADS" /D "JAVA_FINALIZATION"\
+ /D "NO_EXECUTE_PERMISSION" /D "_CRT_SECURE_NO_DEPRECATE"\
  /FR"$(INTDIR)/" /Fp"$(INTDIR)/gc.pch"\
  /I./libatomic_ops/src /Fo"$(INTDIR)/" /c
 CPP_OBJS=.\Release/
@@ -309,7 +310,8 @@ CPP=cl.exe
 # ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I include /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "ALL_INTERIOR_POINTERS" /D "GC_THREADS" /FR /YX /c
 CPP_PROJ=/nologo /MDd /W3 /Gm /EHsc /Zi /Od /I include /D "_DEBUG"\
  /D "WIN32" /D "_WINDOWS" /D "ALL_INTERIOR_POINTERS" /D "ENABLE_DISCLAIM"\
- /D "GC_ASSERTIONS" /D "GC_THREADS" /D "NO_EXECUTE_PERMISSION"\
+ /D "GC_ASSERTIONS" /D "GC_ATOMIC_UNCOLLECTABLE" /D "GC_THREADS"\
+ /D "JAVA_FINALIZATION" /D "NO_EXECUTE_PERMISSION"\
  /D "_CRT_SECURE_NO_DEPRECATE" /FR"$(INTDIR)/" /Fp"$(INTDIR)/gc.pch"\
  /Fo"$(INTDIR)/" /I./libatomic_ops/src /Fd"$(INTDIR)/" /c
 CPP_OBJS=.\Debug/