[LLVMdev] Stack overflow in EarlyCSE
Lenny Maiorani
lenny at Colorado.EDU
Tue Jan 17 16:32:01 PST 2012
Hi Chris (or anyone else),
Today I ran across a stack overflow in EarlyCSE::processNode().
Basically, the issue is that EarlyCSE::processNode() is recursive and with a very large function, such as the machine generated one I have, it blows the stack.
The attached script generates a function which re-creates the problem. On my 64-bit FreeBSD 7.3 build machine I come across this issue with a function as short as 5800 lines, possibly shorter. gcc 4.3 does not display the same issue.
Is there an easy fix for this?
Thanks,
-Lenny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-earlycse-generator.py
Type: text/x-python-script
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120117/bdae0ca1/attachment.bin>
More information about the llvm-dev
mailing list