Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With optimizations enabled "alloca(len)" generates code which depends on "len > 0". If "len == 0" then the stack pointer becomes botched. This fix simply avoids a call to "alloca(len)" in the latter case. The root of this problem may be deeper than this, hence I am calling this an "emergency fix" for now but at least it fixes the crashes in the Ruby interface that appear when compiling on Mac OS X 10.7.
- Loading branch information