This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [PATCH] libjava: Add option to disable BC ABI in libgcj.
- From: Andrew Haley <aph at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 22 Dec 2007 11:19:32 +0000
- Subject: Re: [PATCH] libjava: Add option to disable BC ABI in libgcj.
- References: <476C3D6A.6060704@avtrex.com>
David Daney writes:
> Static linking with libgcj does not work well when portions are compiled
> with the BC ABI. The problem is that the compile time linker is not
> able to resolve all the needed dependencies.
>
> This patch adds a new configure option (--disable-libgcj-bc) that forces
> all code in libgcj to be compiled with the C++ ABI. The default is to
> compile libgcj 'normally'. This option would only be used by those
> statically linking to libgcj.
>
> Tested on i686-pc-linux-gnu with no failures in libjava testsuite. I
> also verified by inspecting build output that -findirect-dispatch
> -fno-indirect-classes is being passed when compiling the BC ABI files.
>
> OK to commit?
>
> gcc/
> 2007-12-21 David Daney <ddaney@avtrex.com>
>
> * doc/install.texi (disable-libgcj-bc): Document new option.
>
> libjava/
> 2007-12-21 David Daney <ddaney@avtrex.com>
>
> * scripts/makemake.tcl (emit_bc_rule): Use $(LIBGCJ_BC_FLAGS)
> instead of -findirect-dispatch -fno-indirect-classes.
> * configure.ac (libgcj-bc): New AC_ARG_ENABLE.
> (SUPPRESS_LIBGCJ_BC): New AM_CONDITIONAL.
> * Makefile.am (LIBGCJ_BC_FLAGS): New variable.
> * Makefile.in: Regenerate.
> * include/Makefile.in: Same.
> * testsuite/Makefile.in: Same.
> * configure: Same.
> * gcj/Makefile.in: Same.
> * sources.am: Same.
This is fine, thanks.
Andrew.
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903