This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Fix -findirect-dispatch Java failures on SPARC/Linux
Richard Henderson wrote:
> 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.
Oh, I see. Thanks.
Andrew.