This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r180794 - in /trunk: gcc/ChangeLog gcc/c-family...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 02 Nov 2011 20:16:44 -0000
- Subject: r180794 - in /trunk: gcc/ChangeLog gcc/c-family...
Author: jason
Date: Wed Nov 2 20:16:43 2011
New Revision: 180794
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180794
Log:
PR c++/50810
gcc/c-family
* c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
Wnarrowing for C++0x and C++98.
* c.opt ([Wnarrowing]): Update.
gcc/cp
* typeck2.c (check_narrowing): Adjust OPT_Wnarrowing diagnostics.
(digest_init_r): Call check_narrowing irrespective of the C++ dialect.
* decl.c (check_initializer): Likewise.
* semantics.c (finish_compound_literal): Likewise.
gcc/
* configure.ac: Add -Wno-narrowing to warning options.
libcpp/
* configure.ac: Add -Wno-narrowing to warning options.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x2.C
trunk/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x3.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-opts.c
trunk/gcc/c-family/c.opt
trunk/gcc/configure
trunk/gcc/configure.ac
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck2.c
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
trunk/libcpp/ChangeLog
trunk/libcpp/configure
trunk/libcpp/configure.ac