gcc/libgomp
Marek Polacek 773ec47fe6 re PR c/6940 (taking sizeof array parameter should trigger a warning)
PR c/6940
	* doc/invoke.texi: Document -Wsizeof-array-argument.
c-family/
	* c.opt (Wsizeof-array-argument): New option.
c/
	* c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
	* c-tree.h (C_ARRAY_PARAMETER): Define.
	* c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
	function parameter.
cp/
	* cp-tree.h (DECL_ARRAY_PARAMETER_P): Define.
	* decl.c (grokdeclarator): Set DECL_ARRAY_PARAMETER_P.
	* typeck.c (cxx_sizeof_expr): Warn when using sizeof on an array
	function parameter.
testsuite/
	* c-c++-common/Wsizeof-pointer-memaccess1.c: Use
	-Wno-sizeof-array-argument.
	* c-c++-common/Wsizeof-pointer-memaccess2.c: Likewise.
	* g++.dg/warn/Wsizeof-pointer-memaccess-1.C: Likewise.
	* gcc.dg/Wsizeof-pointer-memaccess1.c: Likewise.
	* g++.dg/torture/Wsizeof-pointer-memaccess1.C: Likewise.
	* g++.dg/torture/Wsizeof-pointer-memaccess2.C: Likewise.
	* gcc.dg/torture/Wsizeof-pointer-memaccess1.c: Likewise.
	* c-c++-common/sizeof-array-argument.c: New test.
	* gcc.dg/vla-5.c: Add dg-warnings.
../libgomp/	* testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.

From-SVN: r212312
2014-07-06 19:00:10 +00:00
..
config libgomp: Fix default futex vs errno 2014-04-02 13:27:29 -07:00
testsuite re PR c/6940 (taking sizeof array parameter should trigger a warning) 2014-07-06 19:00:10 +00:00
acinclude.m4
aclocal.m4
alloc.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
barrier.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
ChangeLog re PR c/6940 (taking sizeof array parameter should trigger a warning) 2014-07-06 19:00:10 +00:00
ChangeLog.graphite
config.h.in
configure Generally link to libgomp for -ftree-parallelize-loops=*. 2013-11-07 16:07:34 +01:00
configure.ac Generally link to libgomp for -ftree-parallelize-loops=*. 2013-11-07 16:07:34 +01:00
configure.tgt
critical.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
env.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
error.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
fortran.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
hashtab.h Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
iter_ull.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
iter.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
libgomp_f.h.in Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
libgomp_g.h Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
libgomp.h Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
libgomp.map
libgomp.spec.in Generally link to libgomp for -ftree-parallelize-loops=*. 2013-11-07 16:07:34 +01:00
libgomp.texi libgomp.texi (Runitme Library Routines): Remove multiple @menu. 2014-05-18 12:29:30 +02:00
loop_ull.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
loop.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
Makefile.am
Makefile.in
omp_lib.f90.in gimplify.c (omp_notice_variable): If n is non-NULL and no flags change in ORT_TARGET region, don't jump to do_outer. 2014-06-18 09:16:12 +02:00
omp_lib.h.in gimplify.c (omp_notice_variable): If n is non-NULL and no flags change in ORT_TARGET region, don't jump to do_outer. 2014-06-18 09:16:12 +02:00
omp.h.in Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
ordered.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
parallel.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
sections.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
single.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
target.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
task.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
team.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
work.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00