gcc/gcc/c-family
Jakub Jelinek 1a4049e7c5 invoke.texi (-Wsizeof-pointer-memaccess): Document.
* doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
c/
	* c-tree.h (c_last_sizeof_arg): Declare.
	* c-parser.c (struct c_tree_loc_pair): New type.
	(c_parser_expr_list): Add sizeof_arg argument.  Fill it in if
	non-NULL.
	(c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
	(c_parser_postfix_expression_after_primary): Likewise.  Call
	sizeof_pointer_memaccess_warning if needed.
	(sizeof_ptr_memacc_comptypes): New function.
	* c-typeck.c (c_last_sizeof_arg): New global variable.
	(c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
cp/
	* cp-tree.def (SIZEOF_EXPR): Move to c-common.def.
c-family/
	* c-common.c (sizeof_pointer_memaccess_warning): New function.
	* c.opt (-Wsizeof-pointer-memaccess): Add new option.
	* c-opts.c (c_common_handle_option): Enable it for -Wall.
	* c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
	* c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
fortran/
	* array.c (gfc_match_array_ref): Fix up memset arguments.
testsuite/
	* gcc.dg/torture/Wsizeof-pointer-memaccess1.c: New test.

From-SVN: r190467
2012-08-17 09:17:56 +02:00
..
ChangeLog invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
c-ada-spec.c system.h (dump_file): Do not define. 2012-07-16 11:32:42 +00:00
c-ada-spec.h
c-common.c invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
c-common.def invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
c-common.h invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
c-cppbuiltin.c output.h (merge_weak, [...]): Move protos from here... 2012-06-04 11:17:58 +00:00
c-dump.c system.h (dump_file): Do not define. 2012-07-16 11:32:42 +00:00
c-format.c invoke.texi (Wmissing-format-attribute): Document as an alias of Wsuggest-attribute=format. 2012-04-30 07:42:42 +00:00
c-format.h NS/CF String format syntax parsing. 2010-11-06 10:48:18 +00:00
c-gimplify.c system.h (dump_file): Do not define. 2012-07-16 11:32:42 +00:00
c-lex.c target.def (output_ident): New hook. 2012-06-19 19:55:33 +00:00
c-objc.h c-decl.c (finish_decl): Don't call get_pending_sizes. 2011-05-05 11:20:31 +01:00
c-omp.c Convert standard builtin functions from being arrays to using a functional interface 2011-10-11 19:55:09 +00:00
c-opts.c invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
c-pch.c toplev.c (init_asm_output): Open asm_out_file in 'w' mode. 2012-07-14 17:28:31 +00:00
c-ppoutput.c re PR preprocessor/37215 (ICE on 'gcc -E -dM -fpreprocessed - < /dev/null') 2012-06-27 16:03:08 +02:00
c-pragma.c backport: As described in http://gcc.gnu.org/ml/gcc/2012-08/msg00015.html... 2012-08-14 21:56:07 -04:00
c-pragma.h c-pragma.h (pragma_extern_prefix): Declare. 2011-11-15 10:22:55 +00:00
c-pretty-print.c tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE is recorded as var. 2012-08-10 08:29:29 +00:00
c-pretty-print.h c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator. 2012-06-04 17:52:42 +00:00
c-semantics.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
c-target-def.h tm.texi.in: Document C target hooks as separate from general target hooks. 2011-04-06 12:08:17 +01:00
c-target.def tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE, [...]): Add @hooks. 2012-06-19 20:44:47 +00:00
c-target.h tm.texi.in: Document C target hooks as separate from general target hooks. 2011-04-06 12:08:17 +01:00
c.opt invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
cppspec.c configure.ac: Skip C if explicitly selected. 2012-06-29 16:12:35 +00:00
stub-objc.c c-decl.c (finish_decl): Don't call get_pending_sizes. 2011-05-05 11:20:31 +01:00