Patch for gcjlib ant task

Hannes Wallnoefer hannesw@gmail.com
Tue Aug 2 10:54:00 GMT 2005


Hi,
This is a patch against libgcj ant task 0.7 which fixes some problems
and adds some features. I hope you find it useful enough to include
some or all of it in the next gcjlib release. I'm also CCing this to
the gcj list in case somebody else has some need for it.
* Fix bug in DepClassLister which expected class file constant pools
to be ordered in the sense that entries were defined first and
referenced later. This is true for class files generated by gcj, but
not for files compiled with Sun javac and possibly other compilers.
The fix is to extract constant names first and then do the lookup work
in a second loop, rather than doing all in one go.
* Add boolean indirectDispatch attribute to gcjlib task to cause
classes to be compiled with -findirect-dispatch flag.
* Enable compilation of .jar files in addition to .class and .java files.
* Implement special single source file compilation mode where the .o
file isn't deleted after compilation, and the input file is only
compiled if no .o file exists or if it is newer than the .o file. This
is particularly handy when compiling large third party .jar files
which do not change a lot and don't need to be recompiled in each
build.
Especially the last item is a bit of a hack, but I find it
indispensable for the kind of project I'm working on.
best,
Hannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcjlib-hw.patch
Type: text/x-patch
Size: 8081 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050802/790350bf/attachment.bin>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /