diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-06-04 15:15:38 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2010-06-04 15:15:38 +0000 |
commit | 49706e39a2b65519ef173e55637c41c899e0b968 (patch) | |
tree | 2537a481171fe231924d117a943f8cd28aebff61 /gcc/ChangeLog | |
parent | b13ea8bd6dc138446ad640d934fc22498d915e82 (diff) | |
download | gcc-49706e39a2b65519ef173e55637c41c899e0b968.zip gcc-49706e39a2b65519ef173e55637c41c899e0b968.tar.gz gcc-49706e39a2b65519ef173e55637c41c899e0b968.tar.bz2 |
re PR c/25880 (improve message of warning for discarding qualifiers)
2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/25880
* c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
* c-format.c (gcc_diag_flag_specs): Add hash.
(gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
(gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
* c-pretty-print.c (pp_c_cv_qualifier): Rename as
pp_c_cv_qualifiers. Handle qualifiers spelling here.
(pp_c_type_qualifier_list): Call the function above.
* c-pretty-print.h (pp_c_cv_qualifiers): Declare.
* c-typeck.c (handle_warn_cast_qual): Print qualifiers.
(WARN_FOR_QUALIFIERS): New macro.
(convert_for_assignment): Use it.
testsuite/
* gcc.dg/assign-warn-2.c: Update.
* gcc.dg/cpp/line3.c: Update.
* gcc.dg/c99-array-lval-8.c: Update.
* gcc.dg/cast-qual-2.c: Update.
* gcc.dg/c99-arraydecl-3.c: Update.
* gcc.dg/assign-warn-1.c: Update.
* gcc.dg/format/gcc_diag-1.c: Update.
From-SVN: r160274
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 968ccda..72d52ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,18 @@ +2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org> + + PR c/25880 + * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v. + * c-format.c (gcc_diag_flag_specs): Add hash. + (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly. + (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v. + * c-pretty-print.c (pp_c_cv_qualifier): Rename as + pp_c_cv_qualifiers. Handle qualifiers spelling here. + (pp_c_type_qualifier_list): Call the function above. + * c-pretty-print.h (pp_c_cv_qualifiers): Declare. + * c-typeck.c (handle_warn_cast_qual): Print qualifiers. + (WARN_FOR_QUALIFIERS): New macro. + (convert_for_assignment): Use it. + 2010-06-04 Kai Tietz <kai.tietz@onevision.com> * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix |