[py-dev] error building greenlets
Bob Ippolito
bob at redivi.com
Sun Aug 28 23:31:36 CEST 2005
On Aug 27, 2005, at 9:39 AM, Armin Rigo wrote:
> Hi Alain,
>
> On Wed, Aug 24, 2005 at 11:31:57PM +0200, Alain Poirier wrote:
>
>> A code compiled with the -fPIC option must preserve the ebx register.
>>
>
> Indeed.
>
>
>> So, if
>> it's noted as "clobbered", the new versions of gcc emit an error.
>>
>
> This implication is not clear to me. The goal of the "clobbered" is
> precisely to force gcc to save the register to the stack and
> restore it.
> The fact that newer versions of gcc doesn't like 'ebx' in the
> clobbered
> list any more is an annoyance.
gcc4 also complains about this with r31 on PPC, in
switch_ppc_macosx.h anyway. Removing it from the clobbered list
doesn't seem to make any difference in the generated code.
I'm not sure the PIC register needs to be preserved anyway, if it got
mangled then it should crash when trying to call slp_restore_state.
-bob
More information about the py-dev
mailing list