Skip to content

Commit

Permalink
Merged GC 5.0alpha4 with local changes, plus:
Browse files Browse the repository at this point in the history
	* Makefile.in: Rebuilt.
	* Makefile.am (gctest_LDADD): Added THREADLIB.
	(TESTS): New macro.
	* configure: Rebuilt.
	* configure.in (INCLUDES): New subst.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30332 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
tromey committed Nov 1, 1999
1 parent 79eaf78 commit 9bc8642
Show file tree
Hide file tree
Showing 60 changed files with 3,741 additions and 1,927 deletions.
2 changes: 1 addition & 1 deletion boehm-gc/BCC_MAKEFILE
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ OBJS= $(XXXOBJS:XXX=)

all: gctest.exe cord\de.exe test_cpp.exe

$(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h config.h MAKEFILE
$(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h gcconfig.h MAKEFILE

gc.lib: $(OBJS)
-del gc.lib
Expand Down
8 changes: 8 additions & 0 deletions boehm-gc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1999-11-01 Tom Tromey <[email protected]>

* Makefile.in: Rebuilt.
* Makefile.am (gctest_LDADD): Added THREADLIB.
(TESTS): New macro.
* configure: Rebuilt.
* configure.in (INCLUDES): New subst.

1999-09-29 Steve Chamberlain <[email protected]>

* config.h: Added picoJava target.
Expand Down
2 changes: 1 addition & 1 deletion boehm-gc/EMX_MAKEFILE
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ SPECIALCFLAGS =
all: gc.a gctest.exe

$(OBJS) test.o: $(srcdir)/gc_priv.h $(srcdir)/gc_hdrs.h $(srcdir)/gc.h \
$(srcdir)/config.h $(srcdir)/gc_typed.h
$(srcdir)/gcconfig.h $(srcdir)/gc_typed.h
# The dependency on Makefile is needed. Changing
# options such as -DSILENT affects the size of GC_arrays,
# invalidating all .o files that rely on gc_priv.h
Expand Down
17 changes: 17 additions & 0 deletions boehm-gc/MacOS.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,20 @@ void GC_MacFreeTemporaryMemory()
# endif
}
}

#if __option(far_data)

void* GC_MacGetDataEnd()
{
CodeZeroHandle code0 = (CodeZeroHandle)GetResource('CODE', 0);
if (code0) {
long aboveA5Size = (**code0).aboveA5;
ReleaseResource((Handle)code0);
return (LMGetCurrentA5() + aboveA5Size);
}
fprintf(stderr, "Couldn't load the jump table.");
exit(-1);
return 0;
}

#endif /* __option(far_data) */
3 changes: 2 additions & 1 deletion boehm-gc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ AM_CFLAGS = @BOEHM_GC_CFLAGS@

check_PROGRAMS = gctest
gctest_SOURCES = test.c
gctest_LDADD = ./libgcjgc.la
gctest_LDADD = ./libgcjgc.la $(THREADLIB)

TESTS = gctest

## FIXME: relies on internal code generated by automake.
all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)
Expand Down
344 changes: 242 additions & 102 deletions boehm-gc/Makefile.dj

Large diffs are not rendered by default.

41 changes: 35 additions & 6 deletions boehm-gc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ NM = @NM@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
RANLIB = @RANLIB@
THREADLIB = @THREADLIB@
VERSION = @VERSION@
addobjs = @addobjs@
boehm_gc_basedir = @boehm_gc_basedir@
Expand Down Expand Up @@ -131,7 +132,9 @@ AM_CFLAGS = @BOEHM_GC_CFLAGS@

check_PROGRAMS = gctest
gctest_SOURCES = test.c
gctest_LDADD = ./libgcjgc.la
gctest_LDADD = ./libgcjgc.la $(THREADLIB)

TESTS = gctest

all_objs = @addobjs@ $(libgcjgc_la_OBJECTS)

Expand Down Expand Up @@ -400,11 +403,37 @@ distdir: $(DISTFILES)
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
check-TESTS: $(TESTS)
@failed=0; all=0; \
srcdir=$(srcdir); export srcdir; \
for tst in $(TESTS); do \
if test -f $$tst; then dir=.; \
else dir="$(srcdir)"; fi; \
if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
all=`expr $$all + 1`; \
echo "PASS: $$tst"; \
elif test $$? -ne 77; then \
all=`expr $$all + 1`; \
failed=`expr $$failed + 1`; \
echo "FAIL: $$tst"; \
fi; \
done; \
if test "$$failed" -eq 0; then \
banner="All $$all tests passed"; \
else \
banner="$$failed of $$all tests failed"; \
fi; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"; \
test "$$failed" -eq 0
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: $(check_PROGRAMS)
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-am
installcheck-am:
installcheck: installcheck-am
Expand Down Expand Up @@ -477,11 +506,11 @@ maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool mostlyclean-checkPROGRAMS \
distclean-checkPROGRAMS clean-checkPROGRAMS \
maintainer-clean-checkPROGRAMS tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
check-am installcheck-am installcheck install-info-am install-info \
install-exec-am install-exec install-data-am install-data install-am \
install uninstall-am uninstall all-redirect all-am all installdirs \
mostlyclean-generic distclean-generic clean-generic \
clean-tags maintainer-clean-tags distdir check-TESTS info-am info \
dvi-am dvi check check-am installcheck-am installcheck install-info-am \
install-info install-exec-am install-exec install-data-am install-data \
install-am install uninstall-am uninstall all-redirect all-am all \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean

$(all_objs) : config.h gc_priv.h gc_hdrs.h gc.h gc_mark.h
Expand Down
2 changes: 1 addition & 1 deletion boehm-gc/PCR-Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mach_dep.o: mach_dep.c mips_mach_dep.s rs6000_mach_dep.s if_mach if_not_there
./if_mach SPARC SUNOS5 as -o mach_dep.o sparc_mach_dep.s
./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) mach_dep.c

if_mach: if_mach.c config.h
if_mach: if_mach.c gcconfig.h
$(CC) $(CFLAGS) -o if_mach if_mach.c

if_not_there: if_not_there.c
Expand Down
Loading

0 comments on commit 9bc8642

Please sign in to comment.