[LLVMbugs] [Bug 17439] New: builtin_malloc missing
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 2 11:33:49 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17439
Bug ID: 17439
Summary: builtin_malloc missing
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: rkotler at mips.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11316
--> http://llvm.org/bugs/attachment.cgi?id=11316&action=edit
test case from gcc suite
rkotler at mipssw006:~/rt-rk-4doug/tmp$ cp ../tests-c/20071018-1.c.skip
20071018-1.c
rkotler at mipssw006:~/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang 20071018-1.c
20071018-1.c:14:8: error: use of unknown builtin '__builtin_malloc'
[-Wimplicit-function-declaration]
*f = __builtin_malloc(sizeof(struct foo));
^
20071018-1.c:14:6: warning: incompatible integer to pointer conversion
assigning to 'struct foo *' from 'int' [-Wint-conversion]
*f = __builtin_malloc(sizeof(struct foo));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20071018-1.c:18:9: warning: incompatible integer to pointer conversion
initializing 'void *' with an expression of type 'int' [-Wint-conversion]
void *x = __builtin_malloc(sizeof(struct mem));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131002/9a2acefb/attachment.html>
More information about the llvm-bugs
mailing list