http://llvm.org/bugs/show_bug.cgi?id=8679
Summary: -O1 compilation uses all memory and fails on 32- and
64-bit Ubuntu 10.10 installs
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5825)
--> (http://llvm.org/bugs/attachment.cgi?id=5825)
GPLed C99 code after clang -E, fails with -O1
clang -c -o /dev/null naco_img_jitter_cpp.c
succeeds in about 0.3s. However,
clang -c -o /dev/null naco_img_jitter_cpp.c -O1
will run and allocate memory via brk() and later also mmap()
until mmap() returns ENOMEM and the compilation fails.
The problem also occurs with -O2.
The system runs 64-bit Ubuntu 10.10 with
$ clang --version
clang version 2.8 (branches/release_28)
Target: x86_64-pc-linux-gnu
Thread model: posix
The problem is also present on a 32-bit Ubuntu 10.10 with
$ clang --version
clang version 2.8 (branches/release_28)
Target: i386-pc-linux-gnu
Thread model: posix
The attached source code example has been generated with clang -E from GPL C99
source code that compiles and runs as expected with various versions of gcc.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs