summaryrefslogtreecommitdiff
path: root/gcc/c/ChangeLog
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-10 06:10:49 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-10 06:10:49 +0000
commit890c2e2f1c0bc4461c6d606549394a536e386845 (patch)
treead84805c19739010caa9af61cb0d2c384e5aa852 /gcc/c/ChangeLog
parent25544eba8dcf50a87678709edc0c5e8414d759ed (diff)
downloadgcc-890c2e2f1c0bc4461c6d606549394a536e386845.tar.gz
PR c/51849
gcc/ * gcc/doc/invoke.texi: Document -Wc90-c99-compat. gcc/c-family/ * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp. * c.opt (Wc90-c99-compat): Add option. gcc/c/ * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. Call pedwarn_c90 instead of pedwarn. (check_bitfield_type_and_width): Likewise. (declspecs_add_qual): Likewise. (declspecs_add_type): Likewise. (warn_variable_length_array): Unify function for -pedantic and -Wvla. Adjust to only call pedwarn_c90. (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call pedwarn_c90 instead of pedwarn. * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. * c-parser.c (disable_extension_diagnostics): Handle warn_c90_c99_compat. (restore_extension_diagnostics): Likewise. (c_parser_enum_specifier): Remove check for !flag_isoc99. Call pedwarn_c90 instead of pedwarn. (c_parser_initelt): Likewise. (c_parser_postfix_expression): Likewise. (c_parser_postfix_expression_after_paren_type): Likewise. (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. * c-tree.h: Fix formatting. * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call pedwarn_c90 instead of pedwarn. gcc/testsuite/ * gcc.dg/Wc90-c99-compat-1.c: New test. * gcc.dg/Wc90-c99-compat-2.c: New test. * gcc.dg/Wc90-c99-compat-3.c: New test. * gcc.dg/Wc90-c99-compat-4.c: New test. * gcc.dg/Wc90-c99-compat-5.c: New test. * gcc.dg/Wc90-c99-compat-6.c: New test. * gcc.dg/wvla-1.c: Adjust dg-warning. * gcc.dg/wvla-2.c: Adjust dg-warning. * gcc.dg/wvla-4.c: Adjust dg-warning. * gcc.dg/wvla-6.c: Adjust dg-warning. libcpp/ * lex.c (_cpp_lex_direct): Warn when -Wc90-c99-compat is in effect. * charset.c (_cpp_valid_ucn): Likewise. * include/cpplib.h (cpp_options): Add cpp_warn_c90_c99_compat. * macro.c (replace_args): Warn when -Wc90-c99-compat is in effect. (parse_params): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r--gcc/c/ChangeLog26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index 3dcd81f9c45..154768b2a49 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,29 @@
+2014-08-10 Marek Polacek <polacek@redhat.com>
+
+ PR c/51849
+ * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
+ Call pedwarn_c90 instead of pedwarn.
+ (check_bitfield_type_and_width): Likewise.
+ (declspecs_add_qual): Likewise.
+ (declspecs_add_type): Likewise.
+ (warn_variable_length_array): Unify function for -pedantic and -Wvla.
+ Adjust to only call pedwarn_c90.
+ (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
+ pedwarn_c90 instead of pedwarn.
+ * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
+ * c-parser.c (disable_extension_diagnostics): Handle
+ warn_c90_c99_compat.
+ (restore_extension_diagnostics): Likewise.
+ (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
+ pedwarn_c90 instead of pedwarn.
+ (c_parser_initelt): Likewise.
+ (c_parser_postfix_expression): Likewise.
+ (c_parser_postfix_expression_after_paren_type): Likewise.
+ (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
+ * c-tree.h: Fix formatting.
+ * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
+ pedwarn_c90 instead of pedwarn.
+
2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
* c-typeck.c: Remove include of pointer-set.h.