[LLVMbugs] [Bug 17457] New: builtins va_arg_pack and va_arg_pack_len not implemented
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 2 16:28:06 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17457
Bug ID: 17457
Summary: builtins va_arg_pack and va_arg_pack_len not
implemented
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: rkotler at mips.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11333
--> http://llvm.org/bugs/attachment.cgi?id=11333&action=edit
gcc test
/home/rkotler/llvmw/install/bin/../lib/clang/3.4/include/stdarg.h:33:29: note:
expanded from macro 'va_start'
#define va_start(ap, param) __builtin_va_start(ap, param)
^
1 error generated.
rkotler at mipssw006:~/rt-rk-4doug/tmp$ ~/llvmw/install/bin/clang
../tests-c/va-arg-pack-len-1.c -target mips-linux-gnu-gcc
-gcc-toolchain
/mips/arch/overflow/codesourcery/mips-linux-gnu/lite/release/2011.09-75/Linux
-EL -Os -std=gnu89 -mips16 -lm
../tests-c/va-arg-pack-len-1.c:7:18: warning: unknown attribute '__error__'
ignored [-Wattributes]
__attribute__((__error__ ("open with O_CREAT needs 3 arguments, only ...
^
../tests-c/va-arg-pack-len-1.c:9:18: warning: unknown attribute '__warning__'
ignored [-Wattributes]
__attribute__((__warning__ ("open called with more than 3 arguments")));
^
../tests-c/va-arg-pack-len-1.c:81:7: error: use of unknown builtin
'__builtin_va_arg_pack_len' [-Wimplicit-function-declaration]
if (__builtin_va_arg_pack_len () > 1)
^
../tests-c/va-arg-pack-len-1.c:91:37: error: use of unknown builtin
'__builtin_va_arg_pack' [-Wimplicit-function-declaration]
return myopenva (path, oflag, __builtin_va_arg_pack ());
^
../tests-c/va-arg-pack-len-1.c:91:37: note: did you mean
'__builtin_va_arg_pack_len'?
../tests-c/va-arg-pack-len-1.c:81:7: note: '__builtin_va_arg_pack_len' declared
here
if (__builtin_va_arg_pack_len () > 1)
^
2 warnings and 2 errors generated.
--
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/20131002/4d47fde0/attachment.html>
More information about the llvm-bugs
mailing list