head 1.10; access; symbols pkgsrc-2013Q2:1.10.0.40 pkgsrc-2013Q2-base:1.10 pkgsrc-2012Q4:1.10.0.38 pkgsrc-2012Q4-base:1.10 pkgsrc-2011Q4:1.10.0.36 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q2:1.10.0.34 pkgsrc-2011Q2-base:1.10 pkgsrc-2009Q4:1.10.0.32 pkgsrc-2009Q4-base:1.10 pkgsrc-2008Q4:1.10.0.30 pkgsrc-2008Q4-base:1.10 pkgsrc-2008Q3:1.10.0.28 pkgsrc-2008Q3-base:1.10 cube-native-xorg:1.10.0.26 cube-native-xorg-base:1.10 pkgsrc-2008Q2:1.10.0.24 pkgsrc-2008Q2-base:1.10 pkgsrc-2008Q1:1.10.0.22 pkgsrc-2008Q1-base:1.10 pkgsrc-2007Q4:1.10.0.20 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.10.0.18 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.10.0.16 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.10.0.14 pkgsrc-2007Q1-base:1.10 pkgsrc-2006Q4:1.10.0.12 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.10 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.8 pkgsrc-2006Q2-base:1.10 pkgsrc-2006Q1:1.10.0.6 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.4 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.10.0.2 pkgsrc-2005Q3-base:1.10 pkgsrc-2005Q2:1.9.0.4 pkgsrc-2005Q2-base:1.9 pkgsrc-2005Q1:1.9.0.2 pkgsrc-2005Q1-base:1.9 pkgsrc-2004Q4:1.8.0.2 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.7.0.2 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.6.0.4 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.2 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.5.0.2 pkgsrc-2003Q4-base:1.5 buildlink2-base:1.5 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.3 netbsd-1-4-PATCH003:1.3 netbsd-1-4-PATCH002:1.1 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.10 date 2005.07.02.12.55.40; author wiz; state dead; branches; next 1.9; 1.9 date 2005.02.19.21.19.50; author wiz; state Exp; branches; next 1.8; 1.8 date 2004.11.10.19.10.53; author snj; state Exp; branches; next 1.7; 1.7 date 2004.07.09.00.18.54; author recht; state dead; branches; next 1.6; 1.6 date 2003.12.03.00.14.16; author recht; state Exp; branches; next 1.5; 1.5 date 2001.09.08.00.36.10; author kei; state dead; branches; next 1.4; 1.4 date 2000.11.16.10.42.24; author abs; state Exp; branches; next 1.3; 1.3 date 2000.06.20.21.50.20; author jlam; state Exp; branches; next 1.2; 1.2 date 2000.06.20.21.47.23; author jlam; state Exp; branches; next 1.1; 1.1 date 99.09.24.16.42.06; author jlam; state Exp; branches; next ; desc @@ 1.10 log @Update to 0.6.5: minor bugfixes. @ text @$NetBSD: patch-ag,v 1.9 2005/02/19 21:19:50 wiz Exp $ --- os_dep.c.orig 2004-12-18 02:42:19.000000000 +0100 +++ os_dep.c @@@@ -3950,10 +3950,10 @@@@ kern_return_t catch_exception_raise_stat # if defined (DRSNX) # include # else -# if defined(OPENBSD) || defined(NETBSD) +# if defined(OPENBSD) # include # else -# if defined(FREEBSD) +# if defined(FREEBSD) || defined(NETBSD) # include # else # include @ 1.9 log @Update to 6.4: - Merge gcconfig.h changes from gcc tree. - Unconditionally include gc_priv.h in solaris_pthreads.c, win32_threads.h, aix_irix_threads.c, and solaris_threads.c to get thread definitions. - Start marker threads in GC_thr_init, so that they get started even if no other threads are ever started. (Oddly enough, the parallel collector worked correctly, though not well, with no helper threads.) - Go ahead and split large blocks in GC_allochblk_nth if GC_dont_gc is set. (Thanks to Alexander Petrossian.) - GC_PRINT_BACK_HEIGHT would deadlock with thread support. - Let in_progress_space in backgraph.s grow dynamically. - Fix README.solaris2. The GC_thr_init() hack doesn't work anymore. - Convert GC_finalizer_mem_freed to bytes in allchblk.c. - Add missing declaration for GC_generic_malloc_words_small_inner. Without it, s390x breaks. (Thanks to Ulrich Weigand.) - Applied several MacOSX patches to support older tool chains. (Thanks to Stefan Ring.) - Bug fix for NetBSD/amd64. (Thanks to Marc Recht.) Add NetBSD/sh3 support. (Thanks to Uchiyama Yasushi.) - Fixed an uninitialized variable in cordprnt.c. (Thanks to gcc for providing the warning.) - Eliminated some, but not all, gcc -Wall warnings. - Changed some old style casts to reinterpret_cast in new_gc_alloc.h. (Thanks to Dan Grayson.) - GC_extend_size_map shouldn't adjust for GC_all_interior_pointers if GC_DONT_ADD_BYTE_AT_END is set. - Changed some (long) casts to (word) in preparation for win64. (Thanks to Peter Colson.) - Changed "int stack_size" declaration in pthread_support.c to use size_t. (Only mattered with GC_ASSERTIONS enabled.) - Added CRIS (etrax) support. (Thanks to Simon Posnjak and Hans-Peter Nilsson.) - Removed GC_IGNORE_FB frame buffer recognition, and replaced it with a check that the mapping type is MEM_IMAGE. In theory, this should work much better, but it is a high risk change for win32. (Thanks to Ashley Bone for the crucial experimental data behind this, and to Rutger Ovidus for some further experiments.) - Fixed print_block_list to print the correct kind number for STUBBORN. (Thanks to Rutger Ovidus.) - GC_allochblk_nth incremented GC_words_wasted by bytes rather than words. - Consider GC_words_wasted in GC_adj_words_allocd only if it is within reason. (A hack to avoid some extremely unlikely scenarios in which we manage to allocate only "wasted" space. 7.0 has a better fix.) - Changed PowerPC GC_clear implementation to use lwsync instead of eieio, since the documentation recommends against eieio, and it seems to be incorrect if the preceding memory op is a load. - Fixed print_block_list to print the correct kind number for STUBBORN. (Thanks to Rutger Ovidus.) - GC_allochblk_nth incremented GC_words_wasted by bytes rather than words. - Have configure.in generate an error if it is asked to support pthreads, but doesn't know how to. - Added Kazuhiro Inaoka's patch for Renesas M32R support. - Have the GNU build mechanism link with -ldl. Rename THREADLIBS to THREADDLLIBS to reflect this. (Thanks to Sven Verdoolaege.) - Added Hannes Mehnert's patch for FreeBSD/SPARC support. - Merged some FreeBSD specific patches to threadlibs.c and dyn_load.c. (Thanks tp John Merryweather Cooper.) - Define MPROTECT_VDB on MACOSX only if threads are being used, since the dirty page tracking mechanism uses threads. (This avoids an undefined reference to _GC_darwin_register_mach_handler_thread.) - By popular demand, use __libc symbols only if we are built with USE_LIBC_PRIVATES, which is off by default, and not otherwise documented. - Ignore GC_enable_incremental() requests when KEEP_BACK_PTRS is set. The GC itself will dirty lots of pages in this cases, probably making it counterproductive on all platforms. And the DARWIN port crashes. @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.8 2004/11/10 19:10:53 snj Exp $ @ 1.8 log @Make this build on sparc64. Prompt supplied by Gert Doering in PR pkg/27757. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- os_dep.c.orig 2004-11-10 10:25:06.000000000 -0800 +++ os_dep.c 2004-11-10 10:26:51.000000000 -0800 @@@@ -3940,10 +3940,14 @@@@ kern_return_t catch_exception_raise_stat d13 5 a17 9 -# include +# if defined(NETBSD) +# include +# else +# include +# endif # endif # endif # endif @ 1.7 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-ag,v 1.6 2003/12/03 00:14:16 recht Exp $ d3 19 a21 61 --- os_dep.c.orig 2003-06-13 21:11:00.000000000 +0200 +++ os_dep.c 2003-11-29 00:34:48.000000000 +0100 @@@@ -121,7 +121,7 @@@@ # include #endif -#if defined(SUNOS5SIGS) || defined (HURD) || defined(LINUX) +#if defined(SUNOS5SIGS) || defined (HURD) || defined(LINUX) || defined(NETBSD) # ifdef SUNOS5SIGS # include # endif @@@@ -688,9 +688,11 @@@@ typedef void (*handler)(); # endif -# if defined(SUNOS5SIGS) || defined(IRIX5) || defined(OSF1) || defined(HURD) +# if defined(SUNOS5SIGS) || defined(IRIX5) || defined(OSF1) \ + || defined(HURD) || defined(NETBSD) static struct sigaction old_segv_act; -# if defined(_sigargs) /* !Irix6.x */ || defined(HPUX) || defined(HURD) +# if defined(_sigargs) /* !Irix6.x */ || defined(HPUX) \ + || defined(HURD) || defined(NETBSD) static struct sigaction old_bus_act; # endif # else @@@@ -705,11 +707,11 @@@@ # endif { # if defined(SUNOS5SIGS) || defined(IRIX5) \ - || defined(OSF1) || defined(HURD) + || defined(OSF1) || defined(HURD) || defined(NETBSD) struct sigaction act; act.sa_handler = h; -# ifdef SUNOS5SIGS +# if defined(SUNOS5SIGS) || defined(NETBSD) act.sa_flags = SA_RESTART | SA_NODEFER; # else act.sa_flags = SA_RESTART; @@@@ -729,7 +731,7 @@@@ # else (void) sigaction(SIGSEGV, &act, &old_segv_act); # if defined(IRIX5) && defined(_sigargs) /* Irix 5.x, not 6.x */ \ - || defined(HPUX) || defined(HURD) + || defined(HPUX) || defined(HURD) || defined(NETBSD) /* Under Irix 5.x or HP/UX, we may get SIGBUS. */ /* Pthreads doesn't exist under Irix 5.x, so we */ /* don't have to worry in the threads case. */ @@@@ -765,10 +767,10 @@@@ void GC_reset_fault_handler() { # if defined(SUNOS5SIGS) || defined(IRIX5) \ - || defined(OSF1) || defined(HURD) + || defined(OSF1) || defined(HURD) || defined(NETBSD) (void) sigaction(SIGSEGV, &old_segv_act, 0); # if defined(IRIX5) && defined(_sigargs) /* Irix 5.x, not 6.x */ \ - || defined(HPUX) || defined(HURD) + || defined(HPUX) || defined(HURD) || defined(NETBSD) (void) sigaction(SIGBUS, &old_bus_act, 0); # endif # else @ 1.6 log @Add a patch from Christian Limpach wrt to signal handling. bump PKGREVISION @ text @d1 1 a1 1 $NetBSD$ @ 1.5 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-ag,v 1.4 2000/11/16 10:42:24 abs Exp $ d3 4 a6 4 --- os_dep.c.orig Mon Apr 17 14:57:52 2000 +++ os_dep.c @@@@ -161,6 +161,19 @@@@ } d9 8 a16 14 +#if defined(NETBSD) && defined(__ELF__) + ptr_t GC_data_start; + + void GC_init_netbsd_elf() + { + extern ptr_t GC_find_limit(); + extern char **environ; + /* This may need to be environ, without the underscore, for */ + /* some versions. */ + GC_data_start = GC_find_limit((ptr_t)&environ, FALSE); + } +#endif + # ifdef OS2 d18 17 a34 13 # include @@@@ -2554,7 +2567,7 @@@@ # if defined (DRSNX) # include # else -# if defined(OPENBSD) +# if defined(OPENBSD) || defined(NETBSD) # include # else # include @@@@ -2569,7 +2582,7 @@@@ /* Fill in the pc and argument information for up to NFRAMES of my */ /* callers. Ignore my frame and my callers frame. */ d36 28 a63 5 -#ifdef OPENBSD +#if defined(OPENBSD) || defined(NETBSD) # define FR_SAVFP fr_fp # define FR_SAVPC fr_pc #else @ 1.4 log @Fix compilation on arm32 by testing for __arm32__ not arm32 @ text @d1 1 a1 1 $NetBSD$ @ 1.3 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 . @ text @d3 5 a7 16 --- mach_dep.c.orig Sat Apr 15 05:57:14 2000 +++ mach_dep.c Sat May 6 04:59:30 2000 @@@@ -220,8 +220,10 @@@@ # if defined(I386) &&!defined(OS2) &&!defined(SVR4) \ && (defined(__MINGW32__) || !defined(MSWIN32)) \ && !defined(SCO) && !defined(SCO_ELF) \ - && !(defined(LINUX) && defined(__ELF__)) \ + && !(defined(LINUX) && defined(__ELF__)) \ && !(defined(FREEBSD) && defined(__ELF__)) \ + && !(defined(NETBSD) && defined(__ELF__)) \ + && !(defined(OPENBSD) && defined(__ELF__)) \ && !defined(DOS4GW) /* I386 code, generic code does not appear to work */ /* It does appear to work under OS2, and asms dont */ @@@@ -236,7 +238,9 @@@@ # endif d9 14 a22 5 # if ( defined(I386) && defined(LINUX) && defined(__ELF__) ) \ - || ( defined(I386) && defined(FREEBSD) && defined(__ELF__) ) + || ( defined(I386) && defined(FREEBSD) && defined(__ELF__) ) \ + || ( defined(I386) && defined(NETBSD) && defined(__ELF__) ) \ + || ( defined(I386) && defined(OPENBSD) && defined(__ELF__) ) d24 19 a42 2 /* This is modified for Linux with ELF (Note: _ELF_ only) */ /* This section handles FreeBSD with ELF. */ @ 1.2 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 . @ text @@ 1.1 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 in PR#8482 with minor additions by me. @ text @d3 5 a7 3 --- mach_dep.c.orig Sun Jun 27 06:26:50 1999 +++ mach_dep.c Wed Sep 22 17:39:42 1999 @@@@ -197,6 +197,8 @@@@ d9 5 a13 4 && !(defined(LINUX) && defined(__ELF__)) \ && !(defined(__FreeBSD__) && defined(__ELF__)) \ + && !(defined(__NetBSD__) && defined(__ELF__)) \ + && !(defined(__OpenBSD__) && defined(__ELF__)) \ d17 2 a18 1 @@@@ -212,6 +214,8 @@@@ d21 4 a24 3 || ( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) ) + || ( defined(I386) && defined(__NetBSD__) && defined(__ELF__) ) + || ( defined(I386) && defined(__OpenBSD__) && defined(__ELF__) ) @