Fix -findirect-dispatch Java failures on SPARC/Linux

Eric Botcazou ebotcazou@adacore.com
Sun Dec 6 15:36:00 GMT 2009


The problem is

LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"

but you cannot compile with -fPIC without assembling with -K PIC on the SPARC.

Hence the attached kludge, which yields:

Native configuration is sparc-unknown-linux-gnu

                === libjava tests ===


Running target unix

                === libjava Summary ===

# of expected passes            2574


Does anyone have a better idea?


2009-12-06  Eric Botcazou  <ebotcazou@adacore.com>

	* config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
	* config/sparc/linux64.h (ASM_SPEC): Likewise.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_specs.diff
Type: text/x-diff
Size: 1258 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20091206/c65f80bd/attachment.bin>


More information about the Java-patches mailing list