<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - builtin_malloc missing"
href="http://llvm.org/bugs/show_bug.cgi?id=17439">17439</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>builtin_malloc missing
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rkotler@mips.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11316" name="attach_11316" title="test case from gcc suite">attachment 11316</a> <a href="attachment.cgi?id=11316&action=edit" title="test case from gcc suite">[details]</a></span>
test case from gcc suite
rkotler@mipssw006:~/rt-rk-4doug/tmp$ cp ../tests-c/20071018-1.c.skip
20071018-1.c
rkotler@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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>