OSDN Git Service

./:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 May 2009 22:45:54 +0000 (22:45 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 May 2009 22:45:54 +0000 (22:45 +0000)
commitd62e827b1a7a6485b9fe39cf1917708172874358
tree86965b7acc5db54a702c131ce74a286eef70f176
parent3dbaf01be556fe89ae11efc1ac76726810baf51f
./:
* builtins.c (validate_gimple_arglist): Don't use va_arg with
enum type.
* calls.c (emit_library_call_value_1): Likewise.

* c-typeck.c (c_build_va_arg): New function.
* c-tree.h (c_build_va_arg): Declare.
* c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
instead of build_va_arg.
cp/:
* error.c (cp_printer): Don't use va_arg with enum type.
testsuite/:
* gcc.dg/Wcxx-compat-11.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147989 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/c-parser.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/calls.c
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wcxx-compat-11.c [new file with mode: 0644]