public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch][boehm-gc update] Define GC_GCJ_SUPPORT when boehm-gc is used
@ 2012-12-02  2:10 Matthias Klose
  0 siblings, 0 replies; only message in thread
From: Matthias Klose @ 2012-12-02  2:10 UTC (permalink / raw)
  To: GCJ-patches

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

seen that GC_hblkfreelist is not declared by default. It is guarded by a
GC_GCJ_SUPPORT define. Just add this define, when built using boehm-gc.

Committed to the boehm-gc merge branch,

  Matthias


[-- Attachment #2: gc-gcj-support.diff --]
[-- Type: text/x-diff, Size: 1268 bytes --]

libjava/ChangeLog.merge

2012-12-01  Matthias Klose  <doko@ubuntu.com>

	* configure.ac: Define and substitute GCDEFS.
	Add -DGC_GCJ_SUPPORT when built for boehm-gc.
	* Makefile.am (AM_CXXFLAGS): Add @GCDEFS@.
	* configure, Makefile.in: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac	(Revision 194043)
+++ configure.ac	(Arbeitskopie)
@@ -987,6 +987,7 @@
   [GC=boehm])
 GCLIBS=
 GCINCS=
+GCDEFS=
 GCDEPS=
 GCSPEC=
 JC1GCSPEC=
@@ -994,6 +995,7 @@
 case "$GC" in
  boehm)
     AC_MSG_RESULT(boehm)
+    GCDEFS=-DGC_GCJ_SUPPORT
     GCLIBS=../boehm-gc/libgc_convenience.la
     JC1GCSPEC='-fuse-boehm-gc'
     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
@@ -1013,6 +1015,7 @@
 esac
 AC_SUBST(GCLIBS)
 AC_SUBST(GCINCS)
+AC_SUBST(GCDEFS)
 AC_SUBST(GCDEPS)
 AC_SUBST(GCSPEC)
 AC_SUBST(JC1GCSPEC)
Index: Makefile.am
===================================================================
--- Makefile.am	(Revision 194043)
+++ Makefile.am	(Arbeitskopie)
@@ -361,6 +361,7 @@
 	@LIBGCJ_CXXFLAGS@ \
 	$(WARNINGS) \
 	-D_GNU_SOURCE \
+	@GCDEFS@ \
 	-DPREFIX="\"$(prefix)\"" \
 	-DTOOLEXECLIBDIR="\"$(toolexeclibdir)\"" \
         -DJAVA_HOME="\"$(JAVA_HOME_DIR)\"" \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-02  2:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-02  2:10 [patch][boehm-gc update] Define GC_GCJ_SUPPORT when boehm-gc is used Matthias Klose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).