mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-04 11:10:27 +02:00
Remove the last direct uses of BDW API
* configure.ac: Remove code to detect BDW, that is taken care of by the whippet macros. Remove support for ia64, for the moment at least, perhaps for good. * libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS): Remove BDW cflags. (modinclude_HEADERS): Remove bdw-gc.h. * libguile/bdw-gc.h: Remove. * libguile/fluids.c: * libguile/hashtab.c: * libguile/numbers.c: * libguile/smob.c: * libguile/srfi-4.c: * libguile/struct.c: * libguile/vectors.c: * libguile/vm.c: Remove bdw-gc.h includes. * meta/guile-4.0-uninstalled.pc.in (Libs): * meta/guile-4.0.pc.in (Libs): Remove direct dependency on BDW-GC, as it is all encapsulated through Whippet, which is not publically exposed.
This commit is contained in:
parent
c9df342c9a
commit
ddef73d03f
13 changed files with 11 additions and 113 deletions
|
@ -546,7 +546,7 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_LIBADD = \
|
|||
version_info = @LIBGUILE_INTERFACE_CURRENT@:@LIBGUILE_INTERFACE_REVISION@:@LIBGUILE_INTERFACE_AGE@
|
||||
|
||||
libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS = \
|
||||
$(BDW_GC_LIBS) $(LIBFFI_LIBS) \
|
||||
$(LIBFFI_LIBS) \
|
||||
$(CEIL_LIBM) \
|
||||
$(FLOOR_LIBM) \
|
||||
$(FREXP_LIBM) \
|
||||
|
@ -594,7 +594,6 @@ modinclude_HEADERS = \
|
|||
async.h \
|
||||
atomic.h \
|
||||
backtrace.h \
|
||||
bdw-gc.h \
|
||||
boolean.h \
|
||||
bitvectors.h \
|
||||
bytevectors.h \
|
||||
|
|
|
@ -1,65 +0,0 @@
|
|||
#ifndef SCM_BDW_GC_H
|
||||
#define SCM_BDW_GC_H
|
||||
|
||||
/* Copyright 2006,2008-2009,2011-2014,2018
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Guile.
|
||||
|
||||
Guile is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU Lesser General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Guile is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with Guile. If not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
/* Correct header inclusion. */
|
||||
|
||||
#include "libguile/scmconfig.h"
|
||||
|
||||
#if SCM_USE_PTHREAD_THREADS
|
||||
|
||||
/* When pthreads are used, let `libgc' know about it and redirect allocation
|
||||
calls such as `GC_MALLOC ()' to (contention-free, faster) thread-local
|
||||
allocation. */
|
||||
|
||||
# define GC_THREADS 1
|
||||
# define GC_REDIRECT_TO_LOCAL 1
|
||||
|
||||
/* Don't #define pthread routines to their GC_pthread counterparts.
|
||||
Instead we will be careful inside Guile to use the GC_pthread
|
||||
routines. */
|
||||
# define GC_NO_THREAD_REDIRECTS 1
|
||||
|
||||
#ifdef __MINGW32__
|
||||
/* Rely on pthreads-w32. */
|
||||
#define GC_WIN32_PTHREADS
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#include <gc/gc.h>
|
||||
|
||||
/* Return true if PTR points to the heap. */
|
||||
#define SCM_I_IS_POINTER_TO_THE_HEAP(ptr) \
|
||||
(GC_base (ptr) != NULL)
|
||||
|
||||
/* Register a disappearing link for the object pointed to by OBJ such that
|
||||
the pointer pointed to be LINK is cleared when OBJ is reclaimed. Do so
|
||||
only if OBJ actually points to the heap. See
|
||||
http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/2563
|
||||
for details. */
|
||||
#define SCM_I_REGISTER_DISAPPEARING_LINK(link, obj) \
|
||||
((SCM_I_IS_POINTER_TO_THE_HEAP (obj)) \
|
||||
? GC_GENERAL_REGISTER_DISAPPEARING_LINK ((link), (obj)) \
|
||||
: 0)
|
||||
|
||||
|
||||
#endif /* SCM_BDW_GC_H */
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include "alist.h"
|
||||
#include "atomics-internal.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "cache-internal.h"
|
||||
#include "deprecation.h"
|
||||
#include "dynwind.h"
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "alist.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "boolean.h"
|
||||
#include "deprecation.h"
|
||||
#include "eq.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 1995-2016,2018-2022
|
||||
/* Copyright 1995-2016,2018-2022,2025
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Portions Copyright 1990-1993 by AT&T Bell Laboratories and Bellcore.
|
||||
|
@ -57,7 +57,6 @@
|
|||
#include <complex.h>
|
||||
#endif
|
||||
|
||||
#include "bdw-gc.h"
|
||||
#include "boolean.h"
|
||||
#include "deprecation.h"
|
||||
#include "dynwind.h"
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
|
||||
#include "async.h"
|
||||
#include "atomics-internal.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "finalizers.h"
|
||||
#include "goops.h"
|
||||
#include "gsubr.h"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* srfi-4.c --- Uniform numeric vector datatypes.
|
||||
|
||||
Copyright 2001,2004,2006,2009-2011,2014,2018
|
||||
Copyright 2001,2004,2006,2009-2011,2014,2018,2025
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is part of Guile.
|
||||
|
@ -25,7 +25,6 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "bdw-gc.h"
|
||||
#include "boolean.h"
|
||||
#include "bytevectors.h"
|
||||
#include "error.h"
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "alist.h"
|
||||
#include "async.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "boolean.h"
|
||||
#include "chars.h"
|
||||
#include "deprecation.h"
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "array-handle.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "boolean.h"
|
||||
#include "deprecation.h"
|
||||
#include "eq.h"
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include "async.h"
|
||||
#include "atomic.h"
|
||||
#include "atomics-internal.h"
|
||||
#include "bdw-gc.h"
|
||||
#include "cache-internal.h"
|
||||
#include "continuations.h"
|
||||
#include "control.h"
|
||||
|
@ -79,8 +78,6 @@
|
|||
|
||||
#include "vm.h"
|
||||
|
||||
#include <gc/gc_mark.h>
|
||||
|
||||
#if (defined __GNUC__)
|
||||
# define SCM_NOINLINE __attribute__ ((__noinline__))
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue