head	1.20;
access;
symbols
	pkgsrc-2013Q2:1.20.0.4
	pkgsrc-2013Q2-base:1.20
	pkgsrc-2012Q4:1.20.0.2
	pkgsrc-2012Q4-base:1.20
	pkgsrc-2012Q1:1.19.0.42
	pkgsrc-2012Q1-base:1.19
	pkgsrc-2011Q4:1.19.0.40
	pkgsrc-2011Q4-base:1.19
	pkgsrc-2011Q3:1.19.0.38
	pkgsrc-2011Q3-base:1.19
	pkgsrc-2011Q2:1.19.0.36
	pkgsrc-2011Q2-base:1.19
	pkgsrc-2011Q1:1.19.0.34
	pkgsrc-2011Q1-base:1.19
	pkgsrc-2010Q4:1.19.0.32
	pkgsrc-2010Q4-base:1.19
	pkgsrc-2010Q3:1.19.0.30
	pkgsrc-2010Q3-base:1.19
	pkgsrc-2010Q2:1.19.0.28
	pkgsrc-2010Q2-base:1.19
	pkgsrc-2010Q1:1.19.0.26
	pkgsrc-2010Q1-base:1.19
	pkgsrc-2009Q4:1.19.0.24
	pkgsrc-2009Q4-base:1.19
	pkgsrc-2009Q3:1.19.0.22
	pkgsrc-2009Q3-base:1.19
	pkgsrc-2009Q2:1.19.0.20
	pkgsrc-2009Q2-base:1.19
	pkgsrc-2009Q1:1.19.0.18
	pkgsrc-2009Q1-base:1.19
	pkgsrc-2008Q4:1.19.0.16
	pkgsrc-2008Q4-base:1.19
	pkgsrc-2008Q3:1.19.0.14
	pkgsrc-2008Q3-base:1.19
	cube-native-xorg:1.19.0.12
	cube-native-xorg-base:1.19
	pkgsrc-2008Q2:1.19.0.10
	pkgsrc-2008Q2-base:1.19
	cwrapper:1.19.0.8
	pkgsrc-2008Q1:1.19.0.6
	pkgsrc-2008Q1-base:1.19
	pkgsrc-2007Q4:1.19.0.4
	pkgsrc-2007Q4-base:1.19
	pkgsrc-2007Q3:1.19.0.2
	pkgsrc-2007Q3-base:1.19
	pkgsrc-2007Q2:1.18.0.4
	pkgsrc-2007Q2-base:1.18
	pkgsrc-2007Q1:1.18.0.2
	pkgsrc-2007Q1-base:1.18
	pkgsrc-2006Q4:1.17.0.4
	pkgsrc-2006Q4-base:1.17
	pkgsrc-2006Q3:1.17.0.2
	pkgsrc-2006Q3-base:1.17
	pkgsrc-2006Q2:1.16.0.8
	pkgsrc-2006Q2-base:1.16
	pkgsrc-2006Q1:1.16.0.6
	pkgsrc-2006Q1-base:1.16
	pkgsrc-2005Q4:1.16.0.4
	pkgsrc-2005Q4-base:1.16
	pkgsrc-2005Q3:1.16.0.2
	pkgsrc-2005Q3-base:1.16
	pkgsrc-2005Q2:1.15.0.8
	pkgsrc-2005Q2-base:1.15
	pkgsrc-2005Q1:1.15.0.6
	pkgsrc-2005Q1-base:1.15
	pkgsrc-2004Q4:1.15.0.4
	pkgsrc-2004Q4-base:1.15
	pkgsrc-2004Q3:1.15.0.2
	pkgsrc-2004Q3-base:1.15
	pkgsrc-2004Q2:1.14.0.6
	pkgsrc-2004Q2-base:1.14
	pkgsrc-2004Q1:1.14.0.4
	pkgsrc-2004Q1-base:1.14
	pkgsrc-2003Q4:1.14.0.2
	pkgsrc-2003Q4-base:1.14
	netbsd-1-6-1:1.12.0.2
	netbsd-1-6-1-base:1.12
	netbsd-1-6:1.11.0.8
	netbsd-1-6-RELEASE-base:1.11
	pkgviews:1.11.0.4
	pkgviews-base:1.11
	buildlink2:1.11.0.2
	buildlink2-base:1.11
	netbsd-1-5-PATCH003:1.11
	netbsd-1-5-PATCH001:1.10
	netbsd-1-5-RELEASE:1.8
	netbsd-1-4-PATCH003:1.8
	netbsd-1-4-PATCH002:1.6
	comdex-fall-1999:1.4
	netbsd-1-4-PATCH001:1.3
	netbsd-1-4-RELEASE:1.3
	netbsd-1-3-PATCH003:1.3
	netbsd-1-3-PATCH002:1.2
	FreeBSD-current-1997-10-05:1.1.1.1
	FREEBSD:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2012.05.29.14.35.42;	author wiz;	state dead;
branches;
next	1.19;

1.19
date	2007.07.07.15.21.07;	author wiz;	state Exp;
branches;
next	1.18;

1.18
date	2007.01.23.03.27.20;	author dmcmahill;	state Exp;
branches;
next	1.17;

1.17
date	2006.07.17.17.08.16;	author wiz;	state dead;
branches;
next	1.16;

1.16
date	2005.09.08.15.22.53;	author reed;	state Exp;
branches;
next	1.15;

1.15
date	2004.07.09.00.18.54;	author recht;	state dead;
branches;
next	1.14;

1.14
date	2003.05.22.16.46.50;	author jmmv;	state Exp;
branches;
next	1.13;

1.13
date	2003.02.14.18.50.51;	author wiz;	state Exp;
branches;
next	1.12;

1.12
date	2002.09.25.18.18.52;	author wiz;	state Exp;
branches;
next	1.11;

1.11
date	2001.09.08.00.36.09;	author kei;	state Exp;
branches;
next	1.10;

1.10
date	2001.05.04.01.28.15;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2000.11.16.10.42.24;	author abs;	state Exp;
branches;
next	1.8;

1.8
date	2000.06.20.21.50.20;	author jlam;	state Exp;
branches;
next	1.7;

1.7
date	2000.06.20.21.47.22;	author jlam;	state Exp;
branches;
next	1.6;

1.6
date	99.12.28.04.57.49;	author wiz;	state Exp;
branches;
next	1.5;

1.5
date	99.11.04.15.21.58;	author minoura;	state Exp;
branches;
next	1.4;

1.4
date	99.09.24.16.42.06;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	98.08.07.10.40.22;	author agc;	state Exp;
branches;
next	1.2;

1.2
date	98.02.26.16.50.29;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	97.10.06.14.06.10;	author agc;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.10.06.14.06.10;	author agc;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Update to 7.2b:

7.2b:
An incorrect assertion in multi-threaded mode was fixed.

7.2:
This release adds many enhancements and fixes.
@
text
@$NetBSD: patch-aa,v 1.19 2007/07/07 15:21:07 wiz Exp $

--- configure.ac.orig	2007-06-30 15:40:15.000000000 +0000
+++ configure.ac
@@@@ -399,7 +399,7 @@@@ case "$host" in
     machdep="mach_dep.lo sparc_mach_dep.lo"
     AC_DEFINE(SUNOS53_SHARED_LIB)
     ;;
- sparc*-sun-solaris2.*)
+ sparc*-sun-solaris2*)
     machdep="mach_dep.lo sparc_mach_dep.lo"
     ;;
  ia64-*-*)
@


1.19
log
@Update to 7.0:

Changes relative to 6.8 include, in no particular order:

 - Change C code to require at least C89.  Clean up code in various
   other respects.
 - Win64 port.
 - Always count how much live data there is in the heap.  Add more
   robust heap expansion heuristic which relies on this.
 - Remove old-style Solaris threads support and some other obsolete
   platform support.
 - Restructure mark code, hopefully resulting in some performance
   improvements.
 - Change the GC code to traffic mostly in either bytes or allocation
   granules, not words, internally.
 - Provide for fast inline allocation that requires less frequent client
   recompilations.  (Needs more testing.)
 - Removed SILENT configuration macro and PRINTSTATS and GATHERSTATS
   macros.  Control is now via GC_PRINT_STATS and GC_PRINT_VERBOSE_STATS
   encironment variables.
 - Thread local allocation is now performed without needing to call
   special allocation functions.  The configuration macro
   THREAD_LOCAL_ALLOC
   continues to determine whether this is supported.
 - Thread local allocation is supported on more platforms.
 - Win32 threads code was rewritten and is hopefully more sane.
 - Allocation routines now decide whether to lock dynamically, based on
   whether a second thread has been created.
 - Mostly untested support for a compiler write barrier.
 - Use libatomic_ops for atomic operations.
 - Limited support for malloc redirection with Linux threads (& NPTL ).
 - Various bug fixes and some new platform support.
@
text
@d1 1
a1 1
$NetBSD$
@


1.18
log
@look for sparc-sun-solaris2* instead of sparc-sun-solaris2.* in the
configure script since pkgsrc will set MACHINE_GNU_PLATFORM to
sparc-sun-solaris2 on a solaris/sparc machine.  This gets this package closer
to building on solaris with the sunpro compiler.
@
text
@d3 4
a6 4
--- configure.in.orig	2006-06-07 01:01:52.000000000 -0400
+++ configure.in
@@@@ -326,7 +326,7 @@@@ case "$host" in
     machdep="sparc_mach_dep.lo"
d11 1
a11 1
     machdep="sparc_mach_dep.lo"
@


1.17
log
@Update to 6.8.

Changes since 6.7:
 - Added some support for Dragonfly BSD.  (Thanks to Joerg Sonnenberger and
   Thomas Klausner.)
 - Improvements to the HP/UX section of configure.in.
   (Thanks to Andreas Tobler.)
 - GC_unix_get_mem could neglect to release the malloc lock on Irix, under
   extremely unlikely circumstances.  Thanks to Jean-Baptiste Nivois for
   some careful code reading.
 - Added support for kFreeBSD + glibc (Thanks to Petr Salinger)
 - Fix more MacOS threads memory leaks (Thanks to Allan Hsu)
 - Added initial Solaris/X86-64 support (Thanks to Rainer Orth)
 - Applied a long-lost MINGW patch from Gerard Allan for malloc redirection
   with threads.  This one probably makes no sense for 7.0, and was not applied
   there.
 - The Solaris/SPARC definition of GC_INIT() in gc.h wasn't C++-compilable.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.16 2005/09/08 15:22:53 reed Exp $
d3 11
a13 11
--- include/gc.h.orig	2005-07-23 23:22:39.000000000 +0000
+++ include/gc.h
@@@@ -497,7 +497,7 @@@@ GC_API GC_PTR GC_malloc_atomic_ignore_of
 /* 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 */
@


1.16
log
@Add support for DragonFly. It adds if defined(__DragonFly__). It
is from Joerg Sonnenberger. Okayed by maintainer, recht.
@
text
@d1 1
a1 1
$NetBSD$
@


1.15
log
@update to 6.3

This is mostly a bug fix release.

Selection of changes:
- most pkgsrc patches have been integrated
- amd64 support for NetBSD/OpenBSD (thanks to drochner@@)
- enhanced Darwin support

For a complete list see:
http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/recent_changes
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.14 2003/05/22 16:46:50 jmmv Exp $
d3 11
a13 46
--- Makefile.direct.orig	2003-03-07 20:08:44.000000000 +0100
+++ Makefile.direct	2003-05-14 00:27:50.000000000 +0200
@@@@ -20,8 +20,8 @@@@
 # executables.
 
 CC=cc $(ABI_FLAG)
-CXX=g++ $(ABI_FLAG)
-AS=as $(AS_ABI_FLAG)
+CXX=c++ $(ABI_FLAG)
+AS=gcc -c -x assembler-with-cpp $(ABI_FLAG)
 #  The above doesn't work with gas, which doesn't run cpp.
 #  Define AS as `gcc -c -x assembler-with-cpp' instead.
 
@@@@ -359,16 +359,23 @@@@
 
 all: gc.a gctest
 
-BSD-pkg-all: bsd-libgc.a
+LEAKFLAGS=$(CFLAGS) -DFIND_LEAK
+
+BSD-pkg-all: bsd-libgc.a bsd-libleak.a
 
 bsd-libgc.a:
 	$(MAKE) CFLAGS="$(CFLAGS)" clean c++-t
 	mv gc.a bsd-libgc.a
 
+bsd-libleak.a:
+	$(MAKE) -f Makefile.direct CFLAGS="$(LEAKFLAGS)" clean c++-nt
+	mv gc.a bsd-libleak.a
+
 BSD-pkg-install: BSD-pkg-all
 	${CP} bsd-libgc.a libgc.a
 	${INSTALL_DATA} libgc.a ${PREFIX}/lib
 	${INSTALL_DATA} gc.h gc_cpp.h ${PREFIX}/include
+	${INSTALL_MAN} doc/gc.man ${PREFIX}/man/man3/gc.3
 
 pcr: PCR-Makefile include/private/gc_private.h include/private/gc_hdrs.h \
 include/private/gc_locks.h include/gc.h include/private/gcconfig.h \
@@@@ -444,7 +451,6 @@@@
 	./if_mach M68K AMIGA $(AR) -vrus gc.a gc_cpp.o
 	./if_not_there dont_ar_4 $(AR) ru gc.a gc_cpp.o
 	./if_not_there dont_ar_4 $(RANLIB) gc.a || cat /dev/null
-	./test_cpp 1
 	echo > c++
 
 dyn_load_sunos53.o: dyn_load.c
@


1.14
log
@Update to 6.2alpha5:

 - GC_invoke_finalizers could, under rare conditions, set
   GC_finalizer_mem_freed to an essentially random value.  This could
   possibly cause unbounded heap growth for long-running applications
   under some conditions.  (The bug was introduced in 6.1alpha5, and
   is not in gcc3.3.  Thanks to Ben Hutchings for finding it.)
 - Attempted to sanitize the various DLL macros.  GC_USE_DLL disappeared.
   GC_DLL is used instead.  All internal tests are now on GC_DLL.
   README.macros is now more precise about the intended meaning.
 - Include DllMain in the multithreaded win32 version only if the
   collector is actually built as a dll.  (Thanks to Mohan Embar for
   a version of the patch.)
 - Hide the cygwin threadAttach/Detach functions.  They were violating our
   namespace rules.
 - Fixed an assertion in GC_check_heap_proc.  Added GC_STATIC_ASSERT.
   (Thanks again to Ben Hutchings.)
 - Removed some obsolete definitions for Linux/PowerPC in gcconfig.h.
 - CORD_cat was not rebalancing unbalanced trees in some cases, violating
   a CORD invariant.  Also tweaked the rebalancing rule for
   CORD_cat_char_star.  (Thanks to Alexandr Petrosian for the bug report
   and patch.)
 - Added hand-coded structured exception handling support to mark.c.
   This should enable support of dynamic libraries under win32 with
   gcc-compiled code.  (Thanks to Ranjit Mathew for the patch.)
   Turned on dynamic library scanning for win32/gcc.
 - Removed some remnants of read wrapping.  (Thanks to Kenneth Schalk.)
   GC_USE_LD_WRAP ws probably broken in recent versions.
 - The build could fail on some platforms since gcconfig.h could include
   declarations mentioning ptr_t, which was not defined, e.g. when if_mach
   was built.  (Thanks to Yann Dirson for pointing this out.)  Also
   cleaned up tests for GC_PRIVATE_H in gcconfig.h a bit.
 - The GC_LOOP_ON_ABORT environment variable interfered with incremental
   collection, since the write fault handler was erroneously overridden.
   Handlers are now set up in the correct order.
 - It used to be possible to call GC_mark_thread_local_free_lists() while
   the world was not stopped during an incremental GC.  This was not safe.
   Fortunately, it was also unnecessary.  Added GC_world_stopped flag
   to avoid it.  (This caused occasional crashes in GC_set_fl_marks
   with thread local allocation and incremental GC.  This probably happened
   primarily on old, slow multiprocessors.)
 - Allowed overriding of MAX_THREADS in win32_threads.c from the build
   command line.  (Patch from Yannis Bres.)
 - Taught the IA64/linux code to determine the register backing store base from
   /proc/self/maps after checking the __libc symbol, but before guessing.
   (__libc symbols are on the endangered list, and the guess is likely to not
   always be right for 2.6 kernels.)  Restructured the code to read and parse
   /proc/self/maps so it only exists in one place (all platforms).
 - The -DUSE_PROC_FOR_LIBRARIES code was broken on Linux.  It claimed that it
   also registered the main data segment, but didn't actually do so.  (I don't
   think anyone actually uses this configuration, but ...)
 - Made another attempt to get --enablecplusplus to do the right thing.
   Since there are unavoidable problems with C programs linking against a
   dynamic library that includes C++ code, I separated out the c++ code into
   libgccpp.

Based on patch provided in PR pkg/21569 by Marc Recht.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.13 2003/02/14 18:50:51 wiz Exp $
@


1.13
log
@Update to 6.1nb1, from Marc Recht in PR 20008: Install shared libs.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.12 2002/09/25 18:18:52 wiz Exp $
d3 2
a4 2
--- Makefile.direct.orig	Thu Aug  1 05:19:26 2002
+++ Makefile.direct	Thu Jan 23 09:19:39 2003
d16 1
a16 1
@@@@ -335,16 +335,23 @@@@
d41 1
a41 1
@@@@ -420,7 +427,6 @@@@
@


1.12
log
@Update to 6.1, provided by Julio Merino in PR 18240.
Changes: lots of bugfixes and improvements.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.11 2001/09/08 00:36:09 kei Exp $
d3 2
a4 2
--- Makefile.orig	Mon Sep  9 14:50:58 2002
+++ Makefile	Mon Sep  9 14:52:54 2002
d30 1
a30 1
+	$(MAKE) CFLAGS="$(LEAKFLAGS)" clean c++-nt
@


1.11
log
@updated to boehm-gc 6.0 (gc6.0) which incorporated most of our patch.

On i386 aout/ELF, saprc ELF and macppc, 'cd ${WRKSRC}; make test' got
success and www/w3m package which depends on this runs.
@
text
@d1 1
a1 1
$NetBSD: patch-aa,v 1.10 2001/05/04 01:28:15 jlam Exp $
d3 5
a7 5
--- Makefile.orig	Fri Jul 27 03:47:41 2001
+++ Makefile	Fri Sep  7 15:58:41 2001
@@@@ -11,8 +11,8 @@@@
 # cord/de - builds dumb editor based on cords.
 ABI_FLAG= 
d10 1
a10 1
-AS=as $(ABI_FLAG)
d15 2
a16 2
 #  Under Irix 6, you will have to specify the ABI (-o32, -n32, or -64)
@@@@ -296,16 +296,23 @@@@
d41 1
a41 1
@@@@ -381,7 +388,6 @@@@
@


1.10
log
@Deal with "unix no longer predefined" warning.  Modify Makefile so we don't
need to pass in various variables through MAKE_ENV, and honor CFLAGS
passed in from environment during build.
@
text
@d1 1
a1 1
$NetBSD$
d3 4
a6 3
--- Makefile.orig	Fri Sep 22 13:27:35 2000
+++ Makefile
@@@@ -10,14 +10,32 @@@@
a8 1
 HOSTCC=$(CC)
d16 1
a16 1
 #  if you use something other than the default ABI on your machine.
d18 3
a20 3
-CFLAGS= -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT
+CFLAGS= -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT $(COPTS)
+
d24 5
a28 5
+
+bsd-libgc.a:
+	$(MAKE) CFLAGS="$(CFLAGS)" clean c++-t
+	mv gc.a bsd-libgc.a
+
d33 9
a41 45
+BSD-pkg-install: BSD-pkg-all
+	${BSD_INSTALL_DATA} bsd-libgc.a ${PREFIX}/lib/libgc.a
+	${BSD_INSTALL_DATA} bsd-libleak.a ${PREFIX}/lib/libleak.a
+	${BSD_INSTALL_DATA} gc.h gc_cpp.h ${PREFIX}/include
+	${BSD_INSTALL_MAN} gc.man ${PREFIX}/man/man3/gc.3
 
 # For dynamic library builds, it may be necessary to add flags to generate
 # PIC code, e.g. -fPIC on Linux.
@@@@ -181,7 +199,7 @@@@
     gcc_support.c mips_ultrix_mach_dep.s include/gc_alloc.h gc_alloc.h \
     include/new_gc_alloc.h include/javaxfc.h sparc_sunos4_mach_dep.s \
     solaris_threads.h backptr.h hpux_test_and_clear.s include/gc_gcj.h \
-    dbg_mlc.h $(CORD_SRCS)
+    dbg_mlc.h sparc_netbsd_mach_dep.s $(CORD_SRCS)
 
 OTHER_FILES= Makefile PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
            README test.c test_cpp.cc setjmp_t.c SMakefile.amiga \
@@@@ -220,11 +238,9 @@@@
 # not time-critical anyway.
 # Set SPECIALCFLAGS to -q nodirect_code on Encore.
 
-all: gc.a gctest
-
 pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h gcconfig.h mach_dep.o $(SRCS)
-	make -f PCR-Makefile depend
-	make -f PCR-Makefile
+	$(MAKE) -f PCR-Makefile depend
+	$(MAKE) -f PCR-Makefile
 
 $(OBJS) test.o dyn_load.o dyn_load_sunos53.o: $(srcdir)/gc_priv.h $(srcdir)/gc_hdrs.h $(srcdir)/gc.h \
     $(srcdir)/gcconfig.h $(srcdir)/gc_typed.h Makefile
@@@@ -263,6 +279,12 @@@@
 	./if_mach HP_PA HPUX $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -ldld `./threadlibs`
 	./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a `./threadlibs`
 
+c++-t: c++
+	./test_cpp 1
+
+c++-nt: c++
+	@@echo "Use ./test_cpp 1 to test the leak library"
+
 c++: gc_cpp.o $(srcdir)/gc_cpp.h test_cpp
 	rm -f dont_ar_4
 	./if_mach SPARC SUNOS5 touch dont_ar_4
@@@@ -271,7 +293,6 @@@@
a48 8
@@@@ -322,6 +343,7 @@@@
 	./if_mach SPARC SUNOS5 $(AS) -o mach_dep.o $(srcdir)/sparc_mach_dep.s
 	./if_mach SPARC SUNOS4 $(AS) -o mach_dep.o $(srcdir)/sparc_sunos4_mach_dep.s
 	./if_mach SPARC OPENBSD $(AS) -o mach_dep.o $(srcdir)/sparc_sunos4_mach_dep.s
+	./if_mach SPARC NETBSD $(AS) -o mach_dep.o $(srcdir)/sparc_netbsd_mach_dep.s
 	./if_mach HP_PA HPUX $(AS) -o hpux_test_and_clear.o $(srcdir)/hpux_test_and_clear.s
 	./if_mach HP_PA HPUX $(CC) -c -o md_tmp.o $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
 	./if_mach HP_PA HPUX ld -r -o mach_dep.o md_tmp.o hpux_test_and_clear.o
@


1.9
log
@Fix compilation on arm32 by testing for __arm32__ not arm32
@
text
@d3 1
a3 1
--- Makefile.orig	Thu Apr 13 12:00:20 2000
d5 1
a5 1
@@@@ -10,8 +10,8 @@@@
d16 1
a16 3
@@@@ -19,6 +19,25 @@@@
 
 CFLAGS= -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT
d18 3
d34 5
a38 6
+	${CP} bsd-libgc.a libgc.a
+	${CP} bsd-libleak.a libleak.a
+	${INSTALL_DATA} libleak.a libgc.a ${PREFIX}/lib
+	${INSTALL_DATA} gc.h gc_cpp.h ${PREFIX}/include
+	${INSTALL_MAN} gc.man ${PREFIX}/man/man3/gc.3
+
d41 1
a41 2
 
@@@@ -181,7 +200,7 @@@@
d50 1
a50 1
@@@@ -220,11 +239,9 @@@@
d64 1
a64 1
@@@@ -263,6 +280,12 @@@@
d77 1
a77 1
@@@@ -271,7 +294,6 @@@@
d85 1
a85 1
@@@@ -322,6 +344,7 @@@@
@


1.8
log
@Update boehm-gc to 5.0alpha7.  Changes from 5.0alpha3 are mostly bugfixes
but there is the addition of the NetBSD/arm32 bits.

This has been tested on mac68k, macppc, sparc ELF, i386 ELF.

Update provided in PR#10062 by Sunagawa Keiki <kei_sun@@ba2.so-net.ne.jp>.
@
text
@d3 2
a4 2
--- Makefile.orig	Thu Apr 13 15:00:20 2000
+++ Makefile	Tue Jun 20 04:02:12 2000
@


1.7
log
@Update boehm-gc to 5.0alpha7.  Changes from 5.0alpha3 are mostly bugfixes
but there is the addition of the NetBSD/arm32 bits.

This has been tested on mac68k, macppc, sparc ELF, i386 ELF.

Update provided in PR#10062 by Sunagawa Keiki <kei_sun@@ba2.so-net.ne.jp>.
@
text
@@


1.6
log
@RCS tag added
@
text
@d2 5
a6 5
--- Makefile.orig	Sat Sep 11 08:49:18 1999
+++ Makefile	Tue Oct 26 10:48:45 1999
@@@@ -9,8 +9,8 @@@@
 # cord/de - builds dumb editor based on cords.
 ABI_FLAG=
d8 2
a9 1
-CXX=CC $(ABI_FLAG)
d16 1
a16 1
@@@@ -18,6 +18,25 @@@@
d25 1
a25 1
+	make CFLAGS="$(CFLAGS)" clean c++-t
d29 1
a29 1
+	make CFLAGS="$(LEAKFLAGS)" clean c++-nt
d42 1
a42 2
@@@@ -163,7 +182,7 @@@@
     threadlibs.c if_mach.c if_not_there.c gc_cpp.cc gc_cpp.h weakpointer.h \
d45 3
a47 2
-    solaris_threads.h backptr.h $(CORD_SRCS)
+    sparc_netbsd_mach_dep.s solaris_threads.h backptr.h $(CORD_SRCS)
d51 1
a51 1
@@@@ -202,8 +221,6 @@@@
d58 9
a66 4
 	make -f PCR-Makefile depend
 	make -f PCR-Makefile
@@@@ -245,6 +262,12 @@@@
 	./if_mach HP_PA "" $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -ldld
d78 1
a78 1
@@@@ -253,7 +276,6 @@@@
d86 1
a86 1
@@@@ -302,6 +324,7 @@@@
d91 3
a93 3
 	./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
 
 mark_rts.o: $(srcdir)/mark_rts.c if_mach if_not_there $(UTILS)
@


1.5
log
@Make this work on sparcs.
Needs tests on a.out systems.
@
text
@d1 1
@


1.4
log
@Update boehm-gc to 5.0alpha3.  It now supports m68k, i386, sparc a.out
systems and ELF ones (checked on alpha, i386, powerpc) as well.  Update
supplied by SUNAGAWA Keiki <kei_sun@@ba2.so-net.ne.jp> in PR#8482 with
minor additions by me.
@
text
@a0 2
$NetBSD: patch-aa,v 1.3 1998/08/07 10:40:22 agc Exp $

d2 2
a3 2
+++ Makefile	Tue Sep 21 02:41:39 1999
@@@@ -9,14 +9,33 @@@@
d14 1
a14 1
 #  if you use something other than the default ABI on your machine.
d17 1
a17 1
+
d36 1
a36 1
 
d39 10
d79 8
@


1.3
log
@Add NetBSD RCS Ids.
@
text
@d1 1
a1 1
$NetBSD$
d3 3
a5 4
--- Makefile.orig	Thu Aug 21 01:17:10 1997
+++ Makefile	Thu Feb 26 16:36:41 1998
@@@@ -8,15 +8,35 @@@@
 #	 c++ interface to gc.a
d7 6
a12 4
 CC=cc
-CXX=CC
+CXX=c++
 AS=as
d15 2
a16 6
 #  Under Irix 6, you will have to specify the ABI for as if you specify
 #  it for the C compiler.
 
-CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DSILENT
+CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE \
+	-DNO_EXECUTE_PERMISSION -DSILENT -DREDIRECT_MALLOC=GC_malloc
d18 2
d38 4
a41 5
+  
 # Setjmp_test may yield overly optimistic results when compiled
 # without optimization.
 # -DSILENT disables statistics printing, and improves performance.
@@@@ -162,8 +182,6 @@@@
d47 1
a47 1
 pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h config.h mach_dep.o $(SRCS)
d50 1
a50 1
@@@@ -210,13 +228,18 @@@@
d61 6
a66 5
 	rm -f on_sparc_sunos5
 	./if_mach SPARC SUNOS5 touch on_sparc_sunos5
 	./if_mach SPARC SUNOS5 $(AR) rus gc.a gc_cpp.o
 	./if_not_there on_sparc_sunos5 $(AR) ru gc.a gc_cpp.o
 	./if_not_there on_sparc_sunos5 $(RANLIB) gc.a || cat /dev/null
@


1.2
log
@Re-do Makefile patches for version 4.12.
@
text
@d1 2
@


1.1
log
@Initial revision
@
text
@d1 69
a69 90
*** Makefile.orig	Mon Feb 19 09:45:47 1996
--- Makefile	Fri Nov 15 14:19:11 1996
***************
*** 13,19 ****
  #  The above doesn't work with gas, which doesn't run cpp.
  #  Define AS as `gcc -c -x assembler-with-cpp' instead.
  
! CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DSILENT
  
  # Setjmp_test may yield overly optimistic results when compiled
  # without optimization.
--- 13,45 ----
  #  The above doesn't work with gas, which doesn't run cpp.
  #  Define AS as `gcc -c -x assembler-with-cpp' instead.
  
! # We want this to be a drop-in linkable library, hence the -DREDIRECT.
! # The new c++-t and c++-nt (test and notest) are because we don't want
! # to fill anyone's log with leak messages! - MMCG
! 
! CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DSILENT \
!     	-DREDIRECT_MALLOC=GC_malloc
! 
! LEAKFLAGS=$(CFLAGS) -DFIND_LEAK
! 
! all: gc.a gctest
! 
! FreeBSD-pkg-all: fbsd-libgc.a fbsd-libleak.a
! 
! fbsd-libgc.a:
! 	make CFLAGS="$(CFLAGS)" clean c++-t
! 	mv gc.a fbsd-libgc.a
! 
! fbsd-libleak.a:
! 	make CFLAGS="$(LEAKFLAGS)" clean c++-nt
! 	mv gc.a fbsd-libleak.a
! 
! FreeBSD-pkg-install: FreeBSD-pkg-all
! 	${CP} fbsd-libgc.a libgc.a
! 	${CP} fbsd-libleak.a libleak.a
! 	${INSTALL_DATA} libleak.a libgc.a ${PREFIX}/lib
! 	${INSTALL_DATA} gc.h gc_cpp.h ${PREFIX}/include
! 	${INSTALL_MAN} gc.man ${PREFIX}/man/man3/gc.3
  
  # Setjmp_test may yield overly optimistic results when compiled
  # without optimization.
***************
*** 124,131 ****
  # not time-critical anyway.
  # Set SPECIALCFLAGS to -q nodirect_code on Encore.
  
- all: gc.a gctest
- 
  pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h config.h mach_dep.o $(SRCS)
  	make -f PCR-Makefile depend
  	make -f PCR-Makefile
--- 150,155 ----
***************
*** 170,182 ****
  	./if_mach SPARC SUNOS5 $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -lthread -ldl
  	./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a
  
  c++: gc_cpp.o $(srcdir)/gc_cpp.h test_cpp
  	rm -f on_sparc_sunos5
  	./if_mach SPARC SUNOS5 touch on_sparc_sunos5
  	./if_mach SPARC SUNOS5 $(AR) rus gc.a gc_cpp.o
  	./if_not_there on_sparc_sunos5 $(AR) ru gc.a gc_cpp.o
  	./if_not_there on_sparc_sunos5 $(RANLIB) gc.a || cat /dev/null
- 	./test_cpp 1
  
  dyn_load_sunos53.o: dyn_load.c
  	$(CC) $(CFLAGS) -DSUNOS53_SHARED_LIB -c $(srcdir)/dyn_load.c -o $@@
--- 194,211 ----
  	./if_mach SPARC SUNOS5 $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -lthread -ldl
  	./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a
  
+ c++-t: c++
+ 	./test_cpp 1
+ 
+ c++-nt: c++
+ 	@@echo "Use ./test_cpp 1 to test the leak library"
+ 
  c++: gc_cpp.o $(srcdir)/gc_cpp.h test_cpp
  	rm -f on_sparc_sunos5
  	./if_mach SPARC SUNOS5 touch on_sparc_sunos5
  	./if_mach SPARC SUNOS5 $(AR) rus gc.a gc_cpp.o
  	./if_not_there on_sparc_sunos5 $(AR) ru gc.a gc_cpp.o
  	./if_not_there on_sparc_sunos5 $(RANLIB) gc.a || cat /dev/null
  
  dyn_load_sunos53.o: dyn_load.c
  	$(CC) $(CFLAGS) -DSUNOS53_SHARED_LIB -c $(srcdir)/dyn_load.c -o $@@
@


1.1.1.1
log
@Initial import of FreeBSD devel ports into NetBSD
packages system.
@
text
@@
