gcc/gcc/c
Martin Uecker 768952be25 invoke.texi: Document -Wdiscarded-array-qualifiers.
2014-12-20  Martin Uecker <uecker@eecs.berkeley.edu>

	* doc/invoke.texi: Document -Wdiscarded-array-qualifiers.
	* doc/extend.texi: Document new behavior for pointers to arrays
	with qualifiers.

c/
	* c-typeck.c: New behavious for pointers to arrays with qualifiers
        (common-pointer-type): For pointers to arrays take qualifiers from
	element type.
        (build_conditional_expr): Add warnings for lost qualifiers.
	(comp-target-types): Allow pointers to arrays with different qualifiers.
        (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
	WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
        to PEDWARN_FOR_QUALIFIERS.

c-family/
	* c.opt (Wdiscarded-array-qualifiers): New option.

testsuite/
	* gcc.dg/Wwrite-strings-1.c: Change dg-warning.
	* gcc.dg/array-quals-1.c: Use -Wno-discarded-array-qualifiers.
	* gcc.dg/array-quals-2.c: Change dg-options, dg-warning.
	* gcc.dg/pointer-array-atomic.c: New test.
	* gcc.dg/pointer-array-quals-1.c: New test.
	* gcc.dg/pointer-array-quals-2.c: New test (-pedantic-errors).
	* gcc.dg/qual-component-1.c: Change dg-options, dg-warnings.

From-SVN: r218985
2014-12-20 00:29:16 +00:00
..
ChangeLog invoke.texi: Document -Wdiscarded-array-qualifiers. 2014-12-20 00:29:16 +00:00
Make-lang.in Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
c-array-notation.c gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument. 2014-11-29 12:35:30 +01:00
c-aux-info.c c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes... 2014-08-27 15:19:54 -06:00
c-convert.c re PR sanitizer/64289 (ICE with -fsanitize=float-cast-overflow) 2014-12-17 10:26:49 +01:00
c-decl.c re PR c/63877 (- -Wmissing-declarations produces false alarms for C99 inline functions) 2014-11-25 08:28:45 +00:00
c-errors.c invoke.texi: Document -Wc99-c11-compat. 2014-08-19 06:04:38 +00:00
c-lang.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
c-lang.h use templates instead of gengtype for typed allocation functions 2014-05-17 23:07:23 +00:00
c-objc-common.c c-objc-common.c (c_tree_printer): For a typedef name, print the stripped version as well, if they're not the same. 2014-10-30 17:22:12 +00:00
c-objc-common.h Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
c-parser.c Allow the static chain to be set from C 2014-11-19 05:31:24 -08:00
c-tree.h decl.c, [...]: Remove redundant enum from machine_mode. 2014-10-29 12:02:45 +00:00
c-typeck.c invoke.texi: Document -Wdiscarded-array-qualifiers. 2014-12-20 00:29:16 +00:00
config-lang.in Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00
gccspec.c Update copyright years in gcc/ 2014-01-02 22:23:26 +00:00