[PATCH] [Java]: Build a new Java-specific ggc-none.c
Mohan Embar
gnustuff@thisiscool.com
Mon Sep 6 22:00:00 GMT 2004
Hi People,
> > I suppose that's fair. Let's hear what the Java maintainers think is
> > the Right Thing, though.
>
>I think your alternative 1 is perhaps more intrusive than I'd like.
>Your alternative 2 seems quite reasonable. But I'm happy to consider
>a patch that does either of these.
This is the second of two patches to fix the (i686-pc-linux-gnu,i686-pc-mingw32,i686-pc-mingw32)
build (or any build!=host build) for Java as discussed here:
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00586.html
It builds and uses a host-specific ggc-none.o within the java directory for
use by gcjh and jcf-dump.
I tested this in conjunction with my first patch for the following builds using
cvs -D 2004-09-01:
- (i686-pc-linux-gnu,i686-pc-linux-gnu,i686-pc-linux-gnu)
- (i686-pc-linux-gnu,i686-pc-linux-gnu,i686-pc-mingw32)
- (i686-pc-linux-gnu,i686-pc-mingw32,i686-pc-mingw32)
...and successfully building and running both C++ and Java executables
on these. (The patch itself is written against current CVS HEAD but applies
cleanly to 2004-09-01. I can't test this against CVS HEAD because it doesn't
build.)
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
* Make-lang.in (GCJH_OBJS): Change dependency from
ggc-none.o to java/ggc-none.o
(JCFDUMP_OBJS): Likewise.
(java/ggc-none.o): New target.
Index: Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Make-lang.in,v
retrieving revision 1.141
diff -u -2 -r1.141 Make-lang.in
--- Make-lang.in 5 Aug 2004 19:29:09 -0000 1.141
+++ Make-lang.in 6 Sep 2004 14:52:40 -0000
@@ -109,5 +109,5 @@
GCJH_OBJS = java/gjavah.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
- java/win32-host.o java/zextract.o version.o errors.o ggc-none.o \
+ java/win32-host.o java/zextract.o version.o errors.o java/ggc-none.o \
intl.o
@@ -115,5 +115,5 @@
JCFDUMP_OBJS = java/jcf-dump.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
- java/win32-host.o java/zextract.o errors.o version.o ggc-none.o intl.o
+ java/win32-host.o java/zextract.o errors.o version.o java/ggc-none.o intl.o
JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o intl.o
@@ -343,4 +343,9 @@
java/lex.h input.h $(GGC_H) debug.h gt-java-parse.h gtype-java.h target.h
+# ggc-none.c is in the parent directory
+java/ggc-none.o: ggc-none.c $(CONFIG_H) $(SYSTEM_H) coretypes.h ggc.h
+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+ $(srcdir)/ggc-none.c $(OUTPUT_OPTION)
+
# jcf-io.o needs $(ZLIBINC) added to cflags.
java/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
More information about the Gcc-patches
mailing list