This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [ecj] Patch: FYI: enable tools
- From: Andrew Haley <aph at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 13 Dec 2006 17:51:35 +0000
- Subject: Re: [ecj] Patch: FYI: enable tools
- References: <m3fybk9182.fsf@localhost.localdomain>
Tom Tromey writes:
> I'm checking this in on the gcj-eclipse-merge-branch.
>
> This fixes up the tools:
>
> * Re-enables the tools that were disabled in a previous merge
> * Adds tools that were in Classpath but not libgcj (e.g., javah)
> * Removes libgcj's copy of rmic
A couple of bugs with debuginfo.
1. No "-g".
2. You need to pass to gcj the command -fsource-filename=
This is how I did it for libgcj.lo:
2006-07-07 Andrew Haley <aph@redhat.com>
* Makefile.am: Use -fsource-filename when compiling libgcj.
* Makefile.in: Regenerate.
Index: Makefile.am
===================================================================
--- Makefile.am (revision 115263)
+++ Makefile.am (revision 115264)
@@ -324,7 +324,7 @@
## Compiling a list of java sources to a single .o.
%.lo: %.list
- $(LTGCJCOMPILE) -c -o $@ -MT $@ -MD -MP -MF $(basename $@).deps @$<
+ $(LTGCJCOMPILE) -c -o $@ -fsource-filename=$(here)/classpath/lib/classes -MT $@ -MD -MP -MF $(basename $@).deps @$<
java/lang/Object.lo: classpath/lib/java/lang/Object.class
$(LTGCJCOMPILE) -c -o $@ $<