Fix build on CHENEYGC targets.
authorAlastair Bridgewater <nyef@arisu.lisphacker.com>
Fri, 9 Dec 2011 16:20:46 +0000 (11:20 -0500)
committerAlastair Bridgewater <nyef@arisu.lisphacker.com>
Fri, 9 Dec 2011 16:20:46 +0000 (11:20 -0500)
  * Conflicting definitions of alloc_region, both useless.

  * Remove both definitions from visibility in print.c, and add an
explicit error in gencgc-alloc-region.h to help diagnosis if this
ever crops up again.

src/runtime/gencgc-alloc-region.h
src/runtime/print.c
src/runtime/thread.h

index 1ec7ed7..f209205 100644 (file)
@@ -3,6 +3,10 @@
 
 #include "gc.h"
 
+#ifndef LISP_FEATURE_GENCGC
+#error "gencgc-alloc-region.h included, but LISP_FEATURE_GENCGC not defined"
+#endif
+
 /* Abstract out the data for an allocation region allowing a single
  * routine to be used for allocation and closing. */
 struct alloc_region {
index b4152fe..f787cd7 100644 (file)
@@ -31,7 +31,9 @@
 #include "monitor.h"
 #include "vars.h"
 #include "os.h"
+#ifdef LISP_FEATURE_GENCGC
 #include "gencgc-alloc-region.h" /* genesis/thread.h needs this */
+#endif
 #include "genesis/static-symbols.h"
 #include "thread.h"              /* genesis/primitive-objects.h needs this */
 #include "genesis/primitive-objects.h"
index fcc51b0..b8b99d3 100644 (file)
@@ -10,8 +10,6 @@
 #include "os.h"
 #ifdef LISP_FEATURE_GENCGC
 #include "gencgc-alloc-region.h"
-#else
-struct alloc_region { };
 #endif
 #include "genesis/symbol.h"
 #include "genesis/static-symbols.h"