Rockbox mail archiveSubject: Re: Segfault with Faster MDCT patch and -fPIC
Re: Segfault with Faster MDCT patch and -fPIC
From: Dave Hooper <dave_at_beermex.com>
Date: Mon, 20 Sep 2010 18:27:18 +0100
Oh sorry, you mean changing the register used for pic. I got mixed up. I
personally don't know if that's expected to work for r11 or not, although
that's not really the actual problem (or solution) here
> More like bad (or at least) ambiguous code that I'm not surprised gcc
> treated differently to how the author expected/intended (see all the
> subsequent replies on the thread)
>> On 20.09.2010 11:02, Slawomir Testowy wrote:
>>> 2010/9/18 Nils Wallménius<nils.wallmenius_at_gmail.com>:
>>>> gcc lets you specify the pic register with -mpic-register= so it would
>>>> be a qucick test to try with r11 or something.
>>> Unfortunately, this doesn't work:
>>> configure:3276: checking whether the C compiler works
>>> -std=gnu89 -g -ffast-math -fsingle-precision-constant
>>> -mpic-register=r11 -fPIC -DPIC conftest.c>&5
>>> conftest.c:1: error: unable to use 'r11' for PIC register
>>> configure:3302: $? = 1
>>> configure:3340: result: no
>>> The same happends with r12 register. Registers r1-10 are used directly
>>> in the assembly.
>> Is this a bug in gcc? It's supposed to work.
>> Best regards.
Received on 2010-09-20