summaryrefslogtreecommitdiff
path: root/boehm-gc/misc.c
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-15 18:01:38 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-15 18:01:38 +0000
commitd1fee1ba835c9b78011d65864468ce7c92522043 (patch)
treecae80110f1ab5a233f1626c6d560dd950b6abe6a /boehm-gc/misc.c
parent657424c471449aa375ec4b26288c20858e29da46 (diff)
downloadgcc-d1fee1ba835c9b78011d65864468ce7c92522043.tar.gz
Address mingw32 issues.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/misc.c')
-rw-r--r--boehm-gc/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/boehm-gc/misc.c b/boehm-gc/misc.c
index a89f04407b4..50955f458cc 100644
--- a/boehm-gc/misc.c
+++ b/boehm-gc/misc.c
@@ -499,6 +499,10 @@ void GC_init_inner()
# ifdef PRINTSTATS
GC_print_stats = 1;
# endif
+# if defined(MSWIN32) || defined(MSWINCE)
+ InitializeCriticalSection(&GC_write_cs);
+# endif
+
if (0 != GETENV("GC_PRINT_STATS")) {
GC_print_stats = 1;
}
@@ -536,9 +540,6 @@ void GC_init_inner()
if (ALIGNMENT > GC_DS_TAGS && EXTRA_BYTES != 0) {
GC_obj_kinds[NORMAL].ok_descriptor = ((word)(-ALIGNMENT) | GC_DS_LENGTH);
}
-# if defined(MSWIN32) || defined(MSWINCE)
- InitializeCriticalSection(&GC_write_cs);
-# endif
GC_setpagesize();
GC_exclude_static_roots(beginGC_arrays, endGC_arrays);
GC_exclude_static_roots(beginGC_obj_kinds, endGC_obj_kinds);