re PR tree-optimization/18828 (Extraneous warning with var_start and optimization)
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Jan 2005 09:01:00 +0000 (10:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 7 Jan 2005 09:01:00 +0000 (10:01 +0100)
commit8870e2121de6b86e33178bfc4646aa10bbe7069b
tree9ca4a80106abc12d7faa84a20a89676b90effb70
parent4f1cfe85af8f53bdf31aa5b27cd6b5a7998f17bd
re PR tree-optimization/18828 (Extraneous warning with var_start and optimization)

PR tree-optimization/18828
* builtins.c (expand_builtin_next_arg): Remove argument and all
the argument checking.
(expand_builtin): Adjust caller.
(expand_builtin_va_start): Likewise.  Remove error for too many
arguments.
(fold_builtin_next_arg): Issue error for too many arguments.
After checking arguments, replace them with magic arguments that
prevent further checking of the args.

* gcc.dg/20050105-2.c: New test.

From-SVN: r93040
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20050105-2.c [new file with mode: 0644]