2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2004 14:11:45 +0000 (14:11 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 4 Dec 2004 14:11:45 +0000 (14:11 +0000)
commit743b0c6afc7593e469c1350e4d6ac62753275188
treecbf7c78afc4e2cbb6aeed7f265db741b9c045876
parenta9b22d67e41dbf12d64eea7f33455a2da23cc43e
2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>

        PR middle-end/17909
        * builtins.c (fold_builtin_next_arg): Export and return true
        when there is a warning or an error.
        (expand_builtin_va_start): When fold_builtin_next_arg returns true,
        return const0_rtx.
        (expand_builtin): Likewise.
        * gimplify.c (gimplify_call_expr): Error out if there is not
        enough arguments to va_start. Call fold_builtin_next_arg also
        on the second argument.
        * tree.h (fold_builtin_next_arg): Prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91727 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/builtins.c
gcc/gimplify.c
gcc/tree.h