This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Add -Wc++-compat warning for va_arg with enum type
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 May 2009 20:42:17 +0000 (UTC)
- Subject: Re: PATCH RFA: Add -Wc++-compat warning for va_arg with enum type
- References: <m3ljohkqmu.fsf@google.com>
On Thu, 28 May 2009, Ian Lance Taylor wrote:
> 2009-05-28 Ian Lance Taylor <iant@google.com>
>
> * 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.
>
> gcc/testsuite/ChangeLog:
>
> 2009-05-28 Ian Lance Taylor <iant@google.com>
>
> * gcc.dg/Wcxx-compat-11.c: New testcase.
These C changes are OK.
--
Joseph S. Myers
joseph@codesourcery.com