gcc/libcpp
Marek Polacek 177cce463d c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat.
gcc/c-family/
	* c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
	to warn_c90_c99_compat.
	* c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
	to -1.
gcc/c/
	* c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
	to pedwarn_c90.
	* c-errors.c: Include "opts.h".
	(pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
	* c-parser.c (disable_extension_diagnostics): Handle negative value
	of warn_c90_c99_compat, too.
	(restore_extension_diagnostics): Likewise.
	(c_parser_compound_statement_nostart): Pass
	OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
gcc/testsuite/
	* gcc.dg/Wc90-c99-compat-4.c: Remove all dg-warnings.
	* gcc.dg/Wc90-c99-compat-5.c: Remove all dg-errors.
	* gcc.dg/Wc90-c99-compat-7.c: New test.
	* gcc.dg/Wc90-c99-compat-8.c: New test.
	* gcc.dg/Wdeclaration-after-statement-4.c: New test.
libcpp/
	* charset.c (_cpp_valid_ucn): Warn only if -Wc90-c99-compat.
	* lex.c (_cpp_lex_direct): Likewise.
	* macro.c (replace_args): Likewise.
	(parse_params): Likewise.
	* include/cpplib.h (cpp_options): Change cpp_warn_c90_c99_compat
	to char.

From-SVN: r214131
2014-08-19 05:34:31 +00:00
..
include c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat. 2014-08-19 05:34:31 +00:00
po * de.po: Update. 2014-03-18 16:04:06 +00:00
ChangeLog c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat. 2014-08-19 05:34:31 +00:00
Makefile.in Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
aclocal.m4 Undo inadvertent commit in rev 160105. 2010-06-01 10:20:24 -04:00
charset.c c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat. 2014-08-19 05:34:31 +00:00
config.in configure.ac: Remove long long and __int64 type checks... 2014-05-26 08:19:02 +00:00
configure configure.ac: Remove long long and __int64 type checks... 2014-05-26 08:19:02 +00:00
configure.ac configure.ac: Remove long long and __int64 type checks... 2014-05-26 08:19:02 +00:00
directives-only.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
directives.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
errors.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
expr.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
files.c re PR c/61212 (gcc build failure on "dos file system" due to warnings treated as errors) 2014-05-21 18:54:12 +00:00
identifiers.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
init.c files.c (find_file_in_dir): Always try to shorten for DOS non-system headers. 2014-05-09 08:50:22 +00:00
internal.h Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
lex.c c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat. 2014-08-19 05:34:31 +00:00
line-map.c Support location tracking for built-in macro tokens 2014-07-16 12:33:27 +02:00
macro.c c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according to warn_c90_c99_compat. 2014-08-19 05:34:31 +00:00
makeucnid.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
mkdeps.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
pch.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
symtab.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
system.h Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
traditional.c Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
ucnid.h Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00
ucnid.tab Update copyright years in libcpp/ 2014-01-02 22:24:45 +00:00