2006-03-10 Hans Boehm <Hans_Boehm@hp.com> (really Joerg Sonnenberger)
authorhboehm <hboehm>
Fri, 10 Mar 2006 23:46:06 +0000 (23:46 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:36 +0000 (21:06 +0400)
* /include/gc.h, include/gc_config_macros.h, include/private/gcconfig.h:
Add DragonFly BSD support.

doc/README.changes
include/gc.h
include/gc_config_macros.h
include/private/gcconfig.h

index a396cd8..ba260e0 100644 (file)
@@ -2276,6 +2276,10 @@ Since 6.6:
    with malloc redirection to handle a null malloc return correctly.
 
 Since gc6.7:
+ - Added some support for Dragonfly BSD.  (Thanks to Joerg Sonnenberger and
+   Thomas Klausner.)
+
+Since gc6.8:
  - Remove GC_PROTO, VOLATILE, GC_PTR, and GC_CONST.  Assume ANSI C compiler
    and use ANSI constructs unconditionally.
  - Introduce #elif and #error in some of the appropriate places.
index 6ad52e3..809f828 100644 (file)
@@ -482,7 +482,7 @@ GC_API void * GC_malloc_atomic_ignore_off_page(size_t lb);
 /* This may also be desirable if it is possible but expensive to       */
 /* retrieve the call chain.                                            */
 #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \
-     || defined(__FreeBSD__)) & !defined(GC_CAN_SAVE_CALL_STACKS)
+     || defined(__FreeBSD__) || defined(__DragonFly__)) & !defined(GC_CAN_SAVE_CALL_STACKS)
 # define GC_ADD_CALLER
 # if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) 
     /* gcc knows how to retrieve return address, but we don't know */
index 487848e..4da2c81 100644 (file)
@@ -93,7 +93,7 @@
 #   define GC_DARWIN_THREADS
 #   define GC_PTHREADS
 # endif
-# if !defined(GC_PTHREADS) && defined(__FreeBSD__)
+# if !defined(GC_PTHREADS) && (defined(__FreeBSD__) || defined(__DragonFly__))
 #   define GC_FREEBSD_THREADS
 #   define GC_PTHREADS
 # endif
index 4c246a5..62000fa 100644 (file)
@@ -56,7 +56,7 @@
 # endif
 
 /* And one for FreeBSD: */
-# if defined(__FreeBSD__) && !defined(FREEBSD)
+# if (defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(FREEBSD)
 #    define FREEBSD
 # endif
 
 #   define mach_type_known
 # endif
 # if defined(sparc) && defined(unix) && !defined(sun) && !defined(linux) \
-     && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__)
+     && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) \
+     && !defined(__DragonFly__)
 #   define SPARC
 #   define DRSNX
 #   define mach_type_known
 #   define SUNOS5SIGS
 # endif
 
-# if defined(FREEBSD) && (__FreeBSD__ >= 4)
+# if defined(FREEBSD) && (defined(__DragonFly__) || __FreeBSD__ >= 4)
 #   define SUNOS5SIGS
 # endif