<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
committerCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.

gcl (2.6.12-7) unstable; urgency=medium

  * Version_2_6_13pre6

Gbp-Pq: Name Version_2_6_13pre7

h/att_ext.h
h/protoize.h
o/gbc.c
o/main.c
o/sfaslcoff.c
o/sfaslmacho.c
unixport/sys_init.lsp.in

index f87bd9be73b01ddf57ced17c1d97f0ca83f42abe..97eae225c8869e1f209119cc8b39655847699b4a 100755 (executable)
@@ -29,7 +29,7 @@ void *malloc(size_t);
 void *realloc(void *,size_t);
 /* void * memalign(size_t,size_t); */
 void *alloc_contblock(size_t);
-void *alloc_relblock(size_t);
+inline void *alloc_relblock(size_t);
 /* object fSallocate_contiguous_pages(); */
 /* object fSallocate_relocatable_pages(); */
 
index 9e5ef799f481d209f748244c27e6ed8bd587c70a..ed4ceda94ce2c45580589a47bb4cf39e04f05c6d 100644 (file)
@@ -7,7 +7,7 @@
 /* alloc.c:364:OF */ extern object on_stack_cons (object x, object y); /* (x, y) object x; object y; */
 /* alloc.c:376:OF */ extern object fSallocated (object typ); /* (typ) object typ; */
 /* alloc.c:401:OF */ extern object fSreset_number_used (object typ); /* (typ) object typ; */
-/* alloc.c:480:OF */ extern void insert_contblock (void *p, ufixnum s); /* (p, s) char *p; int s; */
+/* alloc.c:480:OF */ extern inline void insert_contblock (void *p, ufixnum s); /* (p, s) char *p; int s; */
 /* alloc.c:480:OF */ extern void insert_maybe_sgc_contblock (char *p, int s); /* (p, s) char *p; int s; */
 /* alloc.c:611:OF */ extern void set_maxpage (void); /* () */
 /* alloc.c:635:OF */ extern void gcl_init_alloc (void *); /* () */
diff --git a/o/gbc.c b/o/gbc.c
index 3e7d6ae3fb25da6975c352bc1eddeb0b192c8bf1..c3c3297124ddfef272dd8808de575ee556770325 100755 (executable)
--- a/o/gbc.c
+++ b/o/gbc.c
@@ -422,7 +422,11 @@ DEFVAR("*LEAF-COLLECTION-THRESHOLD*",sSAleaf_collection_thresholdA,SI,make_fixnu
 
 static inline bool
 marking(void *p) {
-  return (sgc_enabled ? ON_WRITABLE_PAGE_CACHED(p) : !NULL_OR_ON_C_STACK(p));
+  return (
+#ifdef SGC
+         sgc_enabled ? ON_WRITABLE_PAGE_CACHED(p) :
+#endif
+         !NULL_OR_ON_C_STACK(p));
 }
 
 static inline bool
@@ -483,7 +487,11 @@ mark_object_address(object *o,int f) {
   
   if (lp!=p || !f) {
     lp=p;
-    lr=sgc_enabled ? WRITABLE_PAGE_P(lp) : 1;
+    lr=
+#ifdef SGC
+      sgc_enabled ? WRITABLE_PAGE_P(lp) :
+#endif
+      1;
   }
 
   if (lr)
index 274f9815d6f76c66979d19a1a4fe7962de1b0cfb..98b226deff0a807a969021bd051152f5676defbb 100755 (executable)
--- a/o/main.c
+++ b/o/main.c
@@ -147,8 +147,8 @@ mbrk(void *v) {
 
 #include <Windows.h>
 
-ufixnum
-get_phys_pages_no_malloc(void) {
+static ufixnum
+get_phys_pages_no_malloc(char n) {
   MEMORYSTATUS m;
 
   m.dwLength=sizeof(m);
@@ -161,8 +161,8 @@ get_phys_pages_no_malloc(void) {
 
 #include <sys/sysctl.h>
 
-ufixnum
-get_phys_pages_no_malloc(void) {
+static ufixnum
+get_phys_pages_no_malloc(char n) {
   uint64_t s;
   size_t z=sizeof(s);
   int m[2]={CTL_HW,HW_MEMSIZE};
@@ -176,8 +176,8 @@ get_phys_pages_no_malloc(void) {
 
 #elif defined(__sun__)
 
-ufixnum
-get_phys_pages_no_malloc(void) {
+static ufixnum
+get_phys_pages_no_malloc(char n) {
 
   return sysconf(_SC_PHYS_PAGES);
 
@@ -202,7 +202,7 @@ get_proc_meminfo_value_in_pages(const char *k) {
   return n>>(PAGEWIDTH-10);
 }
   
-ufixnum
+static ufixnum
 get_phys_pages_no_malloc(char freep) {
   return freep ? 
     get_proc_meminfo_value_in_pages("MemFree:")+
index 9cbbcb0f63591c9a6983666086a9ff9d94d9edea..17271a141ee94f57e6b9474a5031e3d941771a17 100644 (file)
@@ -205,9 +205,7 @@ load_memory(struct scnhdr *sec1,struct scnhdr *sece,void *st) {
   memory->cfd.cfd_size=sz;
   memory->cfd.cfd_self=0;
   memory->cfd.cfd_start=0;
-  prefer_low_mem_contblock=TRUE;
-  memory->cfd.cfd_start=alloc_contblock(sz);
-  prefer_low_mem_contblock=FALSE;
+  memory->cfd.cfd_start=alloc_code_space(sz);
 
   for (sec=sec1;sec<sece;sec++) {
     sec->s_paddr+=(ul)memory->cfd.cfd_start;
index 1c190ea96064c66091a45c7ae72752b0d324b49c..8b38d83c168f76d116d426e6668865c352aa9b99 100644 (file)
@@ -207,9 +207,7 @@ load_memory(struct section *sec1,struct section *sece,void *v1,
   memory->cfd.cfd_size=sz; 
   memory->cfd.cfd_self=0; 
   memory->cfd.cfd_start=0; 
-  prefer_low_mem_contblock=TRUE;
-  memory->cfd.cfd_start=alloc_contblock(sz);
-  prefer_low_mem_contblock=FALSE;
+  memory->cfd.cfd_start=alloc_code_space(sz);
 
   a=(ul)memory->cfd.cfd_start;
   a=(a+ma)&~ma;
index 22fc50a5b36c98378a2377a895438bdfc29449f0..b3bd8c33b3e698a134499ff8f73d0b9e66bd84de 100644 (file)
@@ -28,7 +28,7 @@
        (pcl (append x (list "pcl")))
        (clcs (append x (list "clcs")))
        (gtk (append x (list "gcl-tk"))))
-  (dolist (d (list lsp cmpnew #-pre-gcl xgcl-2 #+(or pcl ansi-cl) pcl #+ansi-cl clcs))
+  (dolist (d (list lsp cmpnew #+(and xgcl (not pre-gcl)) xgcl-2 #+(or pcl ansi-cl) pcl #+ansi-cl clcs))
     (load (make-pathname :name "sys-proclaim" :type "lisp" :directory d)))
   (load (make-pathname :name "tk-package" :type "lsp" :directory gtk))
   (load (make-pathname :name "gcl_lfun_list" :type "lsp" :directory cmpnew))
@@ -77,6 +77,5 @@
 
 #-ansi-cl(use-package :cltl1-compat :lisp)
 #-ansi-cl(do-symbols (s :cltl1-compat) (export s :lisp)))
-(export '*load-pathname* :si);For maxima, at least as of 5.34.1
 
 #+ansi-cl (use-package :pcl :user)