Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builtins va_arg_pack and va_arg_pack_len not implemented #17831

Closed
llvmbot opened this issue Oct 3, 2013 · 1 comment
Closed

builtins va_arg_pack and va_arg_pack_len not implemented #17831

llvmbot opened this issue Oct 3, 2013 · 1 comment
Labels
bugzilla Issues migrated from bugzilla c++ wontfix Issue is real, but we can't or won't fix it. Not invalid

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Oct 3, 2013

Bugzilla Link 17457
Resolution WONTFIX
Resolved on Oct 02, 2013 18:52
Version 3.2
OS Linux
Attachments gcc test, another gcc test
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@zygoloid

Extended Description

/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@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.

@zygoloid
Copy link
Mannequin

zygoloid mannequin commented Oct 3, 2013

These builtins are a really bad idea. We're not going to implement them.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
@Quuxplusone Quuxplusone added the wontfix Issue is real, but we can't or won't fix it. Not invalid label Jan 20, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++ wontfix Issue is real, but we can't or won't fix it. Not invalid
Projects
None yet
Development

No branches or pull requests

2 participants