Fix -findirect-dispatch Java failures on SPARC/Linux

Richard Henderson rth@redhat.com
Sun Dec 6 21:28:00 GMT 2009


On 12/06/2009 11:08 AM, Andrew Haley wrote:
> Eric Botcazou wrote:
>> 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
>
> I don't get it.  Surely this means that -fpic is broken on
> SPARC/Linux everywhere.

No, there's an ASM_SPEC that adds -K PIC in response to -fPIC on the 
command-line.  But the libgcj_bc_spec doesn't add the -fPIC to the 
compiler command-line, but to the jc1 command line, so the ASM_SPEC
pattern doesn't trigger.


r~



More information about the Java-patches mailing list