python-greenlet/greenlet — pull request #17 by m27315 (2012-07-31 15:33:53+00:00)
Title: fix compilation of greenlet for Linux on PowerPC

Per #16, commit f61a3b06fdc52b7401d39d9aa1708924c2565490 applies a small patch to restrict assembly macro to only use registers instead of potentially also using stack space, which violates PPC's MR opcode requirements. The current fix is for PPC and PPC64 on Linux only. This change may also be helpful on UNIX, AIX, and MacOS platforms, but I do not have them available for testing.

Incidentally, the problem occurs for me with cross-compiler, gcc-4.3.74-eglibc-2.8.74-dp-2 and default optimization flags. Forcing level-2 optimization, `-O2`, also works around the problem, but it seems riskier than refining the memory space requirement, hence this patch.