]> granicus.if.org Git - gc/commitdiff
2009-05-20 Hans Boehm <Hans.Boehm@hp.com> (really Ivan Maidanski)
authorhboehm <hboehm>
Wed, 20 May 2009 19:00:01 +0000 (19:00 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:44 +0000 (21:06 +0400)
* doc/README.win32: Add OpenWatcom warning.
* include/private/gcconfig.h: Really check it in.

ChangeLog
doc/README.win32
include/private/gcconfig.h

index 593cea153bef3913fa3ce5fc2bd4fbfab3f996bc..d01f3ac1aa6638e68c45dd5d4b767c76b196f23f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-20  Hans Boehm <Hans.Boehm@hp.com> (really Ivan Maidanski)
+       * doc/README.win32: Add OpenWatcom warning.
+       * include/private/gcconfig.h: Really check it in.
+
 2009-05-19  Hans Boehm <Hans.Boehm@hp.com> (Mostly Ivan Maidanski, Dave Korn)
        * os_dep.c (GC_get_stack_base, windows): Replace with Dave Korn's
        code from gcc version.
@@ -5,7 +9,9 @@
        GetWriteWatch-based virtual dirty bit implementation ("os_dep.c" file). 
        * os_dep.c: Make non-win32 GC_write_fault_handler STATIC.
        * mark.c (GC_noop): fix declaration definition mismatch for DMC.
-       * include/private/gcconfig.h: Remove special handling for Watcom
+       * include/private/gcconfig.h: Enable MPROTECT_VDB and GWW_VDB for
+       Watcom (Win32 only).  It works.
+
        and GWW_VDB.  It works.
 
 2009-05-07  Hans Boehm <Hans.Boehm@hp.com> and Mark Sibly
index 0cec9e9eb0b8610e26d8c4c8e0cb3376aa77aca7..7f963b97a36229aaedaf869c1cf669d21cee17e4 100644 (file)
@@ -143,6 +143,17 @@ important, otherwise resulting programs will not run.
 
 Ivan Demakov (email: ivan@tgrad.nsk.su)
 
+Note from Ivan Maidanski:
+
+Special note for OpenWatcom users: the C (unlike the C++) compiler (of the
+latest stable release, not sure for older ones) doesn't force pointer global
+variables (i.e. not struct fields, not sure for locals) to be aligned unless
+optimizing for speed (eg. "-ot" option is set); the "-zp" option (or align
+pragma) only controls alignment for structs; I don't know whether it's a bug or
+a feature (see an old report of same kind -
+http://bugzilla.openwatcom.org/show_bug.cgi?id=664), so You are warned.
+
+
 Incremental Collection
 ----------------------
 There is some support for incremental collection.  By default, the
index bf5e739f1083de0d150a99503fe59b42b36a5fd5..2b739356245f29d85f474aa0703750d7a4ec38da 100644 (file)
 #      define OS_TYPE "MSWIN32"
                /* STACKBOTTOM and DATASTART are handled specially in   */
                /* os_dep.c.                                            */
-#       if !defined(__WATCOMC__)
-#        define MPROTECT_VDB
-         /* We also avoided doing this in the past with GC_WIN32_THREADS */
-         /* Hopefully that's fixed.                                      */
-#         define GWW_VDB
-#      endif
+#      define MPROTECT_VDB
+#       define GWW_VDB
 #       define DATAEND  /* not needed */
 #   endif
 #   ifdef MSWINCE
 #      define OS_TYPE "MSWIN32"
                /* STACKBOTTOM and DATASTART are handled specially in   */
                /* os_dep.c.                                            */
-#       if !defined(__WATCOMC__)
-#        define MPROTECT_VDB
-         /* We also avoided doing this in the past with GC_WIN32_THREADS */
-         /* Hopefully that's fixed.                                      */
-#         define GWW_VDB
-#      endif
+#      define MPROTECT_VDB
+#       define GWW_VDB
 #       define DATAEND  /* not needed */
 #   endif
 # endif