diff options
author | Hans Boehm <Hans_Boehm@hp.com> | 2003-10-03 18:43:06 +0000 |
---|---|---|
committer | Hans Boehm <hboehm@gcc.gnu.org> | 2003-10-03 18:43:06 +0000 |
commit | aa44273b85d17ab119a65ac6852bb6061bbeac05 (patch) | |
tree | 24628e70256e7b26eb5d3ef1d7173ad25c32fea6 /boehm-gc/misc.c | |
parent | f451eeefad9f818fded92b2d0d8fbb0ca6b2456c (diff) | |
download | gcc-aa44273b85d17ab119a65ac6852bb6061bbeac05.tar.gz |
configure.in: Remove NO_GETENV definition for win32.
* configure.in: Remove NO_GETENV definition for win32.
* mach_dep.c (GC_generic_push_regs): Prevent tail call optimization.
* misc.c (GC_init_inner): Call GC_thr_init for win32.
(GC_set_warn_proc): Add assertion.
* win32_threads.c: Import 6.3alpha2 version.
* include/private/gc_priv.h: Add support for EMPTY_GETENV_RESULTS.
From-SVN: r72074
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r-- | boehm-gc/misc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c index 814fa41ab24..12d6d2e2ba6 100644 --- a/boehm-gc/misc.c +++ b/boehm-gc/misc.c @@ -638,7 +638,8 @@ void GC_init_inner() # if (defined(NETBSD) || defined(OPENBSD)) && defined(__ELF__) GC_init_netbsd_elf(); # endif -# if defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) +# if defined(GC_PTHREADS) || defined(GC_SOLARIS_THREADS) \ + || defined(GC_WIN32_THREADS) GC_thr_init(); # endif # ifdef GC_SOLARIS_THREADS @@ -1002,6 +1003,9 @@ GC_warn_proc GC_current_warn_proc = GC_default_warn_proc; { GC_warn_proc result; +# ifdef GC_WIN32_THREADS + GC_ASSERT(GC_is_initialized); +# endif LOCK(); result = GC_current_warn_proc; GC_current_warn_proc = p; |