Skip to content

Commit 9f27ae7

Browse files
committed
gc6.0 tarball import
1 parent 29be14a commit 9f27ae7

File tree

145 files changed

+28405
-12102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+28405
-12102
lines changed

AmigaOS.c

Lines changed: 623 additions & 0 deletions
Large diffs are not rendered by default.

BCC_MAKEFILE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ gc.lib: $(OBJS)
4747
$(XXXOBJS:XXX=+)
4848
|
4949

50-
gctest.exe: test.obj gc.lib
50+
gctest.exe: tests\test.obj gc.lib
5151
$(cc) @&&|
52-
$(cflags) -W -e$* test.obj gc.lib
52+
$(cflags) -W -e$* tests\test.obj gc.lib
5353
|
5454

5555
cord\de.obj cord\de_win.obj: cord\cord.h cord\private\cord_pos.h cord\de_win.h \
@@ -68,8 +68,8 @@ gc_cpp.obj: gc_cpp.h gc.h
6868
gc_cpp.cpp: gc_cpp.cc
6969
copy gc_cpp.cc gc_cpp.cpp
7070

71-
test_cpp.cpp: test_cpp.cc
72-
copy test_cpp.cc test_cpp.cpp
71+
test_cpp.cpp: tests\test_cpp.cc
72+
copy tests\test_cpp.cc test_cpp.cpp
7373

7474
test_cpp.exe: test_cpp.obj gc_cpp.h gc.h gc.lib
7575
$(cc) @&&|

EMX_MAKEFILE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $(OBJS) test.o: $(srcdir)/gc_priv.h $(srcdir)/gc_hdrs.h $(srcdir)/gc.h \
7777
# options such as -DSILENT affects the size of GC_arrays,
7878
# invalidating all .o files that rely on gc_priv.h
7979

80-
mark.o typd_mlc.o finalize.o: $(srcdir)/gc_mark.h
80+
mark.o typd_mlc.o finalize.o: $(srcdir)/include/gc_mark.h $(srcdir)/include/private/gc_pmark.h
8181

8282
gc.a: $(OBJS)
8383
$(AR) ru gc.a $(OBJS)
@@ -120,13 +120,13 @@ cord/de.exe: $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxt
120120
$(CC) $(CFLAGS) -o cord/de.exe $(srcdir)/cord/de.c $(srcdir)/cord/cordbscs.o $(srcdir)/cord/cordxtra.o gc.a $(CURSES)
121121

122122
clean:
123-
rm -f gc.a test.o gctest.exe output-local output-diff $(OBJS) \
123+
rm -f gc.a tests/test.o gctest.exe output-local output-diff $(OBJS) \
124124
setjmp_test mon.out gmon.out a.out core \
125125
$(CORD_OBJS) cord/cordtest.exe cord/de.exe
126126
-rm -f *~
127127

128-
gctest.exe: test.o gc.a
129-
$(CC) $(CFLAGS) -o gctest.exe test.o gc.a
128+
gctest.exe: tests/test.o gc.a
129+
$(CC) $(CFLAGS) -o gctest.exe tests/test.o gc.a
130130

131131
# If an optimized setjmp_test generates a segmentation fault,
132132
# odds are your compiler is broken. Gctest may still work.

Makefile

Lines changed: 231 additions & 103 deletions
Large diffs are not rendered by default.

Makefile.am

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
2+
#
3+
# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4+
# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
5+
#
6+
# Permission is hereby granted to use or copy this program
7+
# for any purpose, provided the above notices are retained on all copies.
8+
# Permission to modify the code and to distribute modified code is granted,
9+
# provided the above notices are retained, and a notice that the code was
10+
# modified is included with the above copyright notice.
11+
#
12+
# Original author: Tom Tromey
13+
14+
## Process this file with automake to produce Makefile.in.
15+
16+
## FIXME: `make dist' in this directory will not currently work. Many
17+
## files that should be in the distribution are not mentioned in this
18+
## Makefile.am.
19+
20+
AUTOMAKE_OPTIONS = cygnus
21+
22+
# Multilib support variables.
23+
MULTISRCTOP =
24+
MULTIBUILDTOP =
25+
MULTIDIRS =
26+
MULTISUBDIR =
27+
MULTIDO = true
28+
MULTICLEAN = true
29+
30+
## Install a library built with a cross compiler in tooldir, not
31+
## libdir.
32+
if USE_LIBDIR
33+
toolexeclibdir = $(libdir)$(MULTISUBDIR)
34+
else
35+
toolexecdir = $(exec_prefix)/$(target_alias)
36+
toolexeclibdir = $(toolexecdir)/lib$(MULTISUBDIR)
37+
endif
38+
39+
toolexeclib_LTLIBRARIES = $(target_all)
40+
EXTRA_LTLIBRARIES = libgc.la
41+
libgc_la_SOURCES = allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c \
42+
dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c irix_threads.c \
43+
linux_threads.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
44+
obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c \
45+
solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c
46+
47+
# Include THREADLIBS here to ensure that the correct versions of
48+
# linuxthread semaphore functions get linked:
49+
libgc_la_LIBADD = @addobjs@ $(THREADLIBS)
50+
libgc_la_DEPENDENCIES = @addobjs@
51+
libgc_la_LDFLAGS = -version-info 1:1:0 -rpath $(toolexeclibdir)
52+
53+
EXTRA_libgc_la_SOURCES = alpha_mach_dep.s \
54+
mips_sgi_mach_dep.s mips_ultrix_mach_dep.s powerpc_macosx_mach_dep.s \
55+
rs6000_mach_dep.s sparc_mach_dep.s sparc_netbsd_mach_dep.s \
56+
sparc_sunos4_mach_dep.s
57+
58+
AM_CXXFLAGS = @GC_CFLAGS@
59+
AM_CFLAGS = @GC_CFLAGS@
60+
61+
check_PROGRAMS = gctest
62+
# The following hack produces a warning from automake, but we need it in order
63+
# to build a file from a subdirectory. FIXME.
64+
test.o: tests/test.c
65+
$(COMPILE) -c $<
66+
gctest_OBJECTS = test.o
67+
gctest_LDADD = ./libgc.la $(THREADLIBS) $(EXTRA_TEST_LIBS)
68+
TESTS_ENVIRONMENT = LD_LIBRARY_PATH=../../$(MULTIBUILDTOP)gcc
69+
TESTS = gctest
70+
71+
## FIXME: relies on internal code generated by automake.
72+
all_objs = @addobjs@ $(libgc_la_OBJECTS)
73+
$(all_objs) : include/private/gcconfig.h include/private/gc_priv.h \
74+
include/private/gc_hdrs.h include/gc.h include/gc_gcj.h include/gc_mark.h
75+
76+
## FIXME: we shouldn't have to do this, but automake forces us to.
77+
.s.lo:
78+
## We use -Wp,-P to strip #line directives. Irix `as' chokes on
79+
## these.
80+
$(LTCOMPILE) -Wp,-P -x assembler-with-cpp -c $<
81+
82+
## We have our own definition of LTCOMPILE because we want to use our
83+
## CFLAGS, not those passed in from the top level make.
84+
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) \
85+
$(AM_CPPFLAGS) $(CPPFLAGS) \
86+
$(AM_CFLAGS) $(MY_CFLAGS) $(GC_CFLAGS)
87+
LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(MY_CFLAGS) $(LDFLAGS) -o $@
88+
89+
AM_CFLAGS = @GC_CFLAGS@
90+
91+
# Work around what appears to be a GNU make bug handling MAKEFLAGS
92+
# values defined in terms of make variables, as is the case for CC and
93+
# friends when we are called from the top level Makefile.
94+
AM_MAKEFLAGS = \
95+
"AR_FLAGS=$(AR_FLAGS)" \
96+
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
97+
"CFLAGS=$(CFLAGS)" \
98+
"CXXFLAGS=$(CXXFLAGS)" \
99+
"CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
100+
"CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
101+
"INSTALL=$(INSTALL)" \
102+
"INSTALL_DATA=$(INSTALL_DATA)" \
103+
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
104+
"INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
105+
"LDFLAGS=$(LDFLAGS)" \
106+
"LIBCFLAGS=$(LIBCFLAGS)" \
107+
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
108+
"MAKE=$(MAKE)" \
109+
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
110+
"PICFLAG=$(PICFLAG)" \
111+
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
112+
"SHELL=$(SHELL)" \
113+
"EXPECT=$(EXPECT)" \
114+
"RUNTEST=$(RUNTEST)" \
115+
"RUNTESTFLAGS=$(RUNTESTFLAGS)" \
116+
"exec_prefix=$(exec_prefix)" \
117+
"infodir=$(infodir)" \
118+
"libdir=$(libdir)" \
119+
"prefix=$(prefix)" \
120+
"tooldir=$(tooldir)" \
121+
"AR=$(AR)" \
122+
"AS=$(AS)" \
123+
"CC=$(CC)" \
124+
"CXX=$(CXX)" \
125+
"LD=$(LD)" \
126+
"LIBCFLAGS=$(LIBCFLAGS)" \
127+
"NM=$(NM)" \
128+
"PICFLAG=$(PICFLAG)" \
129+
"RANLIB=$(RANLIB)" \
130+
"DESTDIR=$(DESTDIR)"
131+
132+
CONFIG_STATUS_DEPENDENCIES = $(srcdir)/configure.host
133+
134+
# Multilib support.
135+
.PHONY: all-multi mostlyclean-multi clean-multi distclean-multi \
136+
maintainer-clean-multi
137+
138+
all-am: all-multi
139+
install-am: install-multi
140+
mostlyclean-am: mostlyclean-multi
141+
clean-am: clean-multi
142+
distclean-am: distclean-multi
143+
maintainer-clean-am: maintainer-clean-multi
144+
145+
all-multi:
146+
$(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do
147+
install-multi:
148+
$(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do
149+
mostlyclean-multi:
150+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean
151+
clean-multi:
152+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean
153+
distclean-multi:
154+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean
155+
maintainer-clean-multi:
156+
$(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean
157+
158+
MAKEOVERRIDES=

0 commit comments

Comments
 (0)