[pypy-svn] r45936 - pypy/branch/pypy-more-rtti-inprogress/translator/c/src
xoraxax at codespeak.net
xoraxax at codespeak.net
Thu Aug 23 17:56:38 CEST 2007
Author: xoraxax
Date: Thu Aug 23 17:56:37 2007
New Revision: 45936
Modified:
pypy/branch/pypy-more-rtti-inprogress/translator/c/src/stack.h
Log:
Added a non-inlining hint for the stack growing stack to avoid gcc breaking it on ppc. Thanks to Anton Korobeynikov.
Modified: pypy/branch/pypy-more-rtti-inprogress/translator/c/src/stack.h
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/translator/c/src/stack.h (original)
+++ pypy/branch/pypy-more-rtti-inprogress/translator/c/src/stack.h Thu Aug 23 17:56:37 2007
@@ -11,12 +11,21 @@
#ifndef PYPY_NOT_MAIN_FILE
+#ifndef PYPY_NOINLINE
+# if defined __GNUC__
+# define PYPY_NOINLINE __attribute__((noinline))
+# else
+// add hints for other compilers here ...
+# define PYPY_NOINLINE
+# endif
+#endif
+
void LL_stack_unwind(void)
{
RPyRaiseSimpleException(PyExc_RuntimeError, "Recursion limit exceeded");
}
-long _LL_stack_growing_direction(char *parent)
+long PYPY_NOINLINE _LL_stack_growing_direction(char *parent)
{
char local;
if (parent == NULL)
More information about the Pypy-commit
mailing list