<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - WebAssembly backend wrongly exports static functions"
href="https://bugs.llvm.org/show_bug.cgi?id=35428">35428</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WebAssembly backend wrongly exports static functions
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Backend: WebAssembly
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chen.pang.he@jdh8.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19476" name="attach_19476" title="Assembly output with -O3">attachment 19476</a> <a href="attachment.cgi?id=19476&action=edit" title="Assembly output with -O3">[details]</a></span>
Assembly output with -O3
I've been working on a libc implementation for WebAssembly.
This source file triggers the bug.
<a href="https://github.com/jdh8/metallic/blob/master/math/float/tgammaf.c">https://github.com/jdh8/metallic/blob/master/math/float/tgammaf.c</a>
The static function _right is so bulky that it compiles to a
standalone function, but it's exported as an extern function,
which probably causes name clashes.
No minimal example was conceived due to difficulties to write
a bulky enough function.</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>