gcc/gcc/fortran
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
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008 Fix dead e-mail address in ChangeLogs 2011-10-09 16:59:42 +00:00
ChangeLog-2009 Fix dead e-mail address in ChangeLogs 2011-10-09 16:59:42 +00:00
ChangeLog-2010 Fix bogus e-mail address in ChangeLogs 2011-10-09 16:48:25 +00:00
ChangeLog-2011 2012-01-09 Richard Guenther <rguenther@suse.de> 2012-01-09 10:11:38 +00:00
ChangeLog.ptr
Make-lang.in system.h (dump_file): Do not define. 2012-07-16 11:32:42 +00:00
arith.c re PR fortran/51081 ([F03] Proc-pointer assignment: Rejects valid internal proc) 2012-07-17 23:51:20 +02:00
arith.h
array.c invoke.texi (-Wsizeof-pointer-memaccess): Document. 2012-08-17 09:17:56 +02:00
bbt.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
check.c re PR fortran/54234 (-Wconversion or -Wconversion-extra should warn for CMPLX(dp,dp)) 2012-08-14 12:22:06 +02:00
class.c re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3) 2012-07-20 07:56:37 +02:00
config-lang.in
constructor.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
constructor.h re PR fortran/49540 (Memory-hog with large DATA stmt) 2011-06-30 12:25:40 +02:00
convert.c * convert.c (convert): Fold BOOLEAN_TYPE types to the proper variant. 2012-03-10 13:42:46 +00:00
cpp.c Linemap infrastructure for virtual locations 2011-10-17 11:58:56 +02:00
cpp.h
data.c re PR fortran/51081 ([F03] Proc-pointer assignment: Rejects valid internal proc) 2012-07-17 23:51:20 +02:00
data.h re PR fortran/49540 (Memory-hog with large DATA stmt) 2011-06-30 12:25:40 +02:00
decl.c decl.c (match_ppc_decl): Copy the procedure interface's symbol as procedure interface's result. 2012-08-14 16:37:11 +00:00
dependency.c re PR fortran/54134 ([OOP] ICE overriding derived type bound function with allocatable character as result) 2012-07-31 15:03:53 +02:00
dependency.h re PR fortran/49638 ([OOP] length parameter is ignored when overriding type bound character functions with constant length.) 2011-08-07 12:12:09 +02:00
dump-parse-tree.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
error.c re PR fortran/40881 ([F03] warn for obsolescent features) 2012-08-14 12:26:11 +02:00
expr.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
f95-lang.c system.h (dump_file): Do not define. 2012-07-16 11:32:42 +00:00
frontend-passes.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
gfc-internals.texi
gfortran.h revert: re PR bootstrap/54281 (Fails to bootstrap with --disable-nls) 2012-08-16 14:24:22 -04:00
gfortran.texi PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
gfortranspec.c gcc.c (process_command): Update copyright notice dates. 2012-01-01 20:09:46 +01:00
interface.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
intrinsic.c re PR fortran/54199 (Superfluous diagnostic "is also the name of an intrinsic" for internal procedures) 2012-08-09 14:06:31 +02:00
intrinsic.h intrinsic.h (gfc_resolve_rank): New prototype. 2012-06-18 20:37:16 +02:00
intrinsic.texi iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter. 2012-07-21 17:37:46 +02:00
invoke.texi PR 52428 Range checking when reading integer values. 2012-05-14 22:39:23 +03:00
io.c re PR fortran/51081 ([F03] Proc-pointer assignment: Rejects valid internal proc) 2012-07-17 23:51:20 +02:00
ioparm.def
iresolve.c iresolve.c (resolve_bound, [...]): Don't set the shape for assumed rank arrays. 2012-08-02 19:10:38 +00:00
iso-c-binding.def iso-c-binding.def (C_PTRDIFF_T): New TS29113 parameter. 2012-07-21 17:37:46 +02:00
iso-fortran-env.def re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays]) 2011-06-20 23:12:39 +02:00
lang-specs.h
lang.opt re PR fortran/52196 (Add -Wrealloc-lhs) 2012-04-25 08:25:48 +02:00
libgfortran.h re PR fortran/48820 (TR 29113: Implement parts needed for MPI 3) 2012-03-03 09:40:24 +01:00
match.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
match.h PR 51808 Constify binding_label. 2012-01-29 21:01:09 +02:00
matchexp.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
mathbuiltins.def Enable BUILT_IN_IROUND. 2012-03-15 22:27:07 +02:00
misc.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
module.c module.c (mio_array_spec): Don't read as->lower for assumed-rank arrays. 2012-07-26 10:35:55 +02:00
openmp.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
options.c Fix PR 54033, problems with -I, with test cases 2012-08-04 11:26:56 -07:00
parse.c re PR fortran/40881 ([F03] warn for obsolescent features) 2012-08-14 12:26:11 +02:00
parse.h re PR fortran/44646 ([F08] Implement DO CONCURRENT) 2011-09-08 08:38:13 +02:00
primary.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
resolve.c re PR fortran/54243 ([OOP] ICE (segfault) in gfc_type_compatible for invalid BT_CLASS) 2012-08-16 00:11:03 +02:00
scanner.c Fix PR 54033, problems with -I, with test cases 2012-08-04 11:26:56 -07:00
simplify.c iresolve.c (resolve_bound, [...]): Don't set the shape for assumed rank arrays. 2012-08-02 19:10:38 +00:00
st.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
symbol.c re PR fortran/40881 ([F03] warn for obsolescent features) 2012-08-14 12:26:11 +02:00
target-memory.c gfortran.h: Do not include coretypes.h here. 2012-07-08 09:55:02 +00:00
target-memory.h re PR fortran/37211 (TRANSFER to characters: Size checking) 2011-08-05 21:51:59 +00:00
trans-array.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
trans-array.h trans-array.h (gfc_conv_descriptor_rank): New prototype. 2012-08-02 19:20:43 +00:00
trans-common.c output.h (__gcc_host_wide_int__): Move to hwint.h. 2012-05-31 20:19:00 +00:00
trans-const.c trans.h (struct gfc_ss, [...]): Move member struct gfc_ss::data::scalar into newly created union... 2011-11-03 22:10:25 +00:00
trans-const.h
trans-decl.c re PR fortran/54221 (Explicit private access specifier signals "unexpected defined but not used [-Wunused-function]" warning) 2012-08-12 11:52:33 +02:00
trans-expr.c re PR fortran/47586 ([F03] allocatable components: deep copy missing) 2012-08-14 16:45:55 +00:00
trans-intrinsic.c trans-array.h (gfc_conv_descriptor_rank): New prototype. 2012-08-02 19:20:43 +00:00
trans-io.c gfortran.h (gfc_get_proc_ptr_comp): New prototype. 2012-08-14 16:28:29 +00:00
trans-openmp.c f95-lang.c (yyerror, yylex): Remove. 2012-03-06 19:51:42 +00:00
trans-stmt.c re PR fortran/40881 ([F03] warn for obsolescent features) 2012-08-14 12:26:11 +02:00
trans-stmt.h re PR fortran/44646 ([F08] Implement DO CONCURRENT) 2011-09-08 08:38:13 +02:00
trans-types.c trans-types.c (gfc_real16_is_float128): Fix spelling in a comment. 2012-07-25 20:04:25 +02:00
trans-types.h trans-types.c (gfc_real16_is_float128): Fix spelling in a comment. 2012-07-25 20:04:25 +02:00
trans.c expr.h (can_move_by_pieces): Move prototype from here ... 2012-07-11 08:58:58 +00:00
trans.h trans-types.c (gfc_real16_is_float128): Fix spelling in a comment. 2012-07-25 20:04:25 +02:00
types.def Check in patch/merge from cxx-mem-model Branch 2011-11-06 14:55:48 +00:00