<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 --- - clang crashed when using LTO"
href="http://llvm.org/bugs/show_bug.cgi?id=18641">18641</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang crashed when using LTO
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>191919@gmail.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>clang svn trunk gave the following message when linking the executable:
Intrinsic name not mangled correctly for type arguments!
i64 (i8*, i1)* @llvm.objectsize.i64.p0i8
Broken module found, compilation aborted!
Stack dump:
0. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
1. Running pass 'Module Verifier' on function '@XXX_CallbackProc'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: linker command failed due to signal (use -v to see invocation)
then failed.
It worked fine without -flto. The version which came with Xcode 5.0.2 also
works fine.
Please let me know what information is needed for further investigation.
---
clang version:
$ /opt/bin/clang -v
clang version 3.5 (trunk 200285)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
OS version:
$ uname -a
Darwin localhost 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT
2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
clang configuration:
$ ../llvm/configure --enable-optimized=YES --enable-assertions=NO --prefix=/opt
--enable-targets=host,x86,arm,aarch64</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>