[LLVMbugs] [Bug 87] llvm-gcc runs out of memory
bugzilla-daemon at zion.cs.uiuc.edu
bugzilla-daemon at zion.cs.uiuc.edu
Tue Nov 4 10:34:39 PST 2003
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=87
sabre at nondot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |compile-fail
Resolution| |FIXED
Target Milestone|--- |1.1
Version|trunk |1.0
------- Additional Comments From sabre at nondot.org 2003-11-04 12:34 -------
This is now fixed. Testcase: test/Regression/CFrontend/2003-11-04-OutOfMemory.c
Here's a CFE patch:
$ diff -u llvm-expand.c~ llvm-expand.c
--- llvm-expand.c~ 2003-11-03 23:49:27.000000000 -0600
+++ llvm-expand.c 2003-11-04 12:31:40.000000000 -0600
@@ -1738,7 +1738,7 @@
Low = (int)TREE_INT_CST_LOW(low);
High = (int)TREE_INT_CST_LOW(high);
- for (; Low <= High; ++Low) {
+ for (; Low != High+1; ++Low) {
llvm_switch_case *NewCase = xmalloc(sizeof(llvm_switch_case));
NewCase->Next = SwitchInst->x.Switch.Cases;
SwitchInst->x.Switch.Cases = NewCase;
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list