gcc/libcpp
Jason Merrill 25339f1097 re PR c++/50810 (c++0x-compat does not warn about narrowing conversions)
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.

From-SVN: r180794
2011-11-02 16:16:43 -04:00
..
include re PR c++/50920 (add a -std=c++11 option to the driver) 2011-10-31 15:34:14 -04:00
po be.po, [...]: Update. 2011-07-08 20:29:04 +01:00
ChangeLog re PR c++/50810 (c++0x-compat does not warn about narrowing conversions) 2011-11-02 16:16:43 -04:00
Makefile.in Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
aclocal.m4 Undo inadvertent commit in rev 160105. 2010-06-01 10:20:24 -04:00
charset.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
config.in re PR bootstrap/45538 (--enable-build-with-cxx compiling gcc/libcpp/charset.c) 2010-11-18 07:35:34 +00:00
configure re PR c++/50810 (c++0x-compat does not warn about narrowing conversions) 2011-11-02 16:16:43 -04:00
configure.ac re PR c++/50810 (c++0x-compat does not warn about narrowing conversions) 2011-11-02 16:16:43 -04:00
directives-only.c LINEMAP_POSITION_FOR_COLUMN had the exact same effect as linemap_position_for_column... 2011-08-15 20:35:58 +00:00
directives.c Generate virtual locations for tokens 2011-10-17 11:59:12 +02:00
errors.c Update Copyright years for files modified in 2010. 2011-01-03 21:52:22 +01:00
expr.c Implement C++11 user-defined literals. 2011-10-26 15:30:59 -04:00
files.c Linemap infrastructure for virtual locations 2011-10-17 11:58:56 +02:00
identifiers.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
init.c re PR libstdc++/1773 (__cplusplus defined to 1, should be 199711L) 2011-10-31 15:34:26 -04:00
internal.h Fix cpp_peek_token behaviour (PR bootstrap/50778) 2011-10-22 19:49:18 +02:00
lex.c Implement C++11 user-defined literals. 2011-10-26 15:30:59 -04:00
line-map.c Fix lookup of macro maps 2011-10-25 10:59:07 +02:00
macro.c Fix bootstrap on !NO_IMPLICIT_EXTERN_C and ia32 targets 2011-10-18 10:44:49 +02:00
makeucnid.c Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
mkdeps.c files.c (file_hash_eq): Use filename_cmp instead of strcmp. 2011-03-25 20:11:26 +01:00
pch.c remove useless if-before-free tests 2011-04-20 18:19:03 +00:00
symtab.c directives.c (do_linemarker, do_line): Use CPP_STRING for ignored enum value. 2009-07-18 03:22:16 +00:00
system.h system.h [...]: Wrap C function declarations in extern "C". 2011-07-25 14:26:58 +00:00
traditional.c Generate virtual locations for tokens 2011-10-17 11:59:12 +02:00
ucnid.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
ucnid.tab Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00