<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 .s format can omit .globaltype for __stack_pointer"
href="https://bugs.llvm.org/show_bug.cgi?id=51555">51555</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WebAssembly .s format can omit .globaltype for __stack_pointer
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>keithw@cs.stanford.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25178" name="attach_25178" title="bug.s">attachment 25178</a> <a href="attachment.cgi?id=25178&action=edit" title="bug.s">[details]</a></span>
bug.s
After commit 9647a6f, the WebAssemblyAsmPrinter can omit the .globaltype for
__stack_pointer, leading to a .s file that the assembler rejects.
To reproduce:
```
$ cat > bug.c
void unused_function(void) {}
void function(int x, int y) {}
void dosomething(void)
{
function(0, 0);
}
$ clang -S -o bug.s bug.c && clang -c -o bug.o bug.s
bug.s:23:2: error: symbol __stack_pointer missing .globaltype
global.get __stack_pointer
^
```</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>