[llvm-bugs] [Bug 34544] New: cc1as chokes on assembly from clang's `-S` option when WebAssembly is the target
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Sep 10 18:17:18 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34544
Bug ID: 34544
Summary: cc1as chokes on assembly from clang's `-S` option when
WebAssembly is the target
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: mvogelsang at rocketmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 19129
--> https://bugs.llvm.org/attachment.cgi?id=19129&action=edit
wasm-main.s
If we have the file `main.c` with the contents
'''
int main() { return 1; }
'''
and $CC is a clang built to target wasm32-unknown-unknown-wasm, we can produce
assembly with `$CC -S main.c`.
However, clang can't process the resulting main.s file, although it's contents
seem perfectly valid. Running `$CC main.s` results in
`clang -cc1as: error: unknown target triple 'wasm32-unknown-unknown-wasm',
please use -triple or -arch`
Doing the same process with a clang set to target aarch64-unknown-linux-gnu
results in perfectly fine code built for ARM.
The relevant .s files are attached
--
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/20170911/9a530370/attachment-0001.html>
More information about the llvm-bugs
mailing list