[LLVMbugs] [Bug 21613] New: Clang MIPS: invalid input constraint '0' in asm
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 20 02:39:30 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=21613
Bug ID: 21613
Summary: Clang MIPS: invalid input constraint '0' in asm
Product: clang
Version: 3.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: npennequ at cisco.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling a file that includes linux_syscall_support.h[1] for MIPS
(-target mipsel-linux-uclibc -march=mips32), the following errors occur:
./linux_syscall_support.h:2977:14: error: invalid input constraint '0' in asm
LSS_INLINE _syscall1(void *, brk, void *, e)
^
./linux_syscall_support.h:2596:27: note: expanded from macro '_syscall1'
LSS_REG(4, arg1); LSS_BODY(type, name, "=r", "r"(__r4)); \
^
./linux_syscall_support.h:2583:35: note: expanded from macro 'LSS_BODY'
: "0"(__v0), ##__VA_ARGS__ \
^
./linux_syscall_support.h:2978:14: error: invalid input constraint '0' in asm
LSS_INLINE _syscall1(int, chdir, const char *,p)
^
./linux_syscall_support.h:2596:27: note: expanded from macro '_syscall1'
LSS_REG(4, arg1); LSS_BODY(type, name, "=r", "r"(__r4)); \
^
./linux_syscall_support.h:2583:35: note: expanded from macro 'LSS_BODY'
: "0"(__v0), ##__VA_ARGS__ \
^
(many more of the same follow)
The same code compiles without error using mipsel-linux-uclibc-gcc 4.5.3 and
4.8.3.
$ clang --version
clang version 3.5.0 (trunk 214024)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[1]
https://code.google.com/p/linux-syscall-support/source/browse/trunk/lss/linux_syscall_support.h
--
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/20141120/c2c2316a/attachment.html>
More information about the llvm-bugs
mailing list