gcc/libgomp/testsuite/libgomp.c
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
..
appendix-a re PR c/6940 (taking sizeof array parameter should trigger a warning) 2014-07-06 19:00:10 +00:00
affinity-1.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
atomic-1.c
atomic-2.c
atomic-3.c
atomic-4.c
atomic-5.c
atomic-6.c
atomic-10.c
atomic-11.c
atomic-12.c
atomic-13.c
atomic-14.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-15.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-16.c target.c: New file. 2013-10-11 11:26:50 +02:00
atomic-17.c c-parser.c (c_parser_omp_atomic): Allow seq_cst before atomic-clause... 2014-04-24 23:20:28 +02:00
autopar-1.c
barrier-1.c
c.exp libgomp.exp (libgomp_target_compile): If $source matches regex $lang_source_re, add $lang_include_flags to options. 2014-07-03 20:45:35 +02:00
cancel-for-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-for-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-parallel-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-sections-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
cancel-taskgroup-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
collapse-1.c
collapse-2.c
collapse-3.c
copyin-1.c
copyin-2.c
copyin-3.c
critical-1.c
critical-2.c
debug-1.c
depend-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
depend-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
for-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
for-1.h target.c: New file. 2013-10-11 11:26:50 +02:00
for-2.c gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
for-2.h gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
for-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
icv-1.c
icv-2.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
lib-1.c lib-1.c (main): Add missing error check. 2013-10-11 12:43:15 +02:00
lib-2.c
lock-1.c
lock-2.c
lock-3.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
loop-1.c
loop-2.c
loop-3.c
loop-4.c
loop-5.c
loop-6.c
loop-7.c
loop-8.c
loop-9.c
loop-10.c
loop-11.c
loop-12.c
loop-13.c
loop-14.c
loop-15.c
loop-16.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
nested-1.c
nested-2.c
nested-3.c
nestedfn-1.c
nestedfn-2.c
nestedfn-3.c
nestedfn-4.c
nestedfn-5.c
nestedfn-6.c
nqueens-1.c
omp_hello.c
omp_matvec.c
omp_orphan.c
omp_reduction.c
omp_workshare1.c
omp_workshare2.c
omp_workshare3.c
omp_workshare4.c
omp-loop01.c
omp-loop02.c
omp-loop03.c
omp-nested-1.c
omp-parallel-for.c
omp-parallel-if.c
omp-single-1.c
omp-single-2.c
omp-single-3.c
ordered-1.c
ordered-2.c
ordered-3.c
parallel-1.c
pr24455-1.c
pr24455.c
pr26171.c
pr26943-1.c
pr26943-2.c
pr26943-3.c
pr26943-4.c
pr29947-1.c
pr29947-2.c
pr30494.c
pr32362-1.c
pr32362-2.c
pr32362-3.c
pr32468.c
pr33880.c
pr34513.c
pr35130.c
pr35196.c
pr35549.c
pr35625.c
pr36802-1.c
pr36802-2.c
pr36802-3.c
pr38650.c
pr39154.c
pr39591-1.c
pr39591-2.c
pr39591-3.c
pr42029.c
pr42942.c
pr43893.c
pr46886.c
pr48591.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
pr49897-1.c
pr49897-2.c
pr49898-1.c
pr49898-2.c
pr52547.c
pr58392.c target.c: New file. 2013-10-11 11:26:50 +02:00
pr58756.c re PR libgomp/58756 (FAIL: libgomp.c/pr58392.c execution test) 2013-12-16 11:34:28 +01:00
private-1.c
reduction-1.c
reduction-2.c
reduction-3.c
reduction-4.c
reduction-5.c
reduction-6.c
sections-1.c
sections-2.c omp-low.c (expand_omp_sections): Always pass len - 1 to GOMP_sections_start, even if !exit_reachable. 2013-09-19 13:52:52 +02:00
shared-1.c
shared-2.c
shared-3.c
simd-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-5.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-6.c target.c: New file. 2013-10-11 11:26:50 +02:00
simd-7.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-8.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-9.c tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define. 2014-04-24 23:17:32 +02:00
simd-10.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-11.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-12.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-13.c gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. 2014-05-02 19:43:40 +02:00
simd-14.c gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd-15.c gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd-16.c gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
simd-17.c gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator not mentioned in clauses use private clause if... 2014-06-24 09:53:52 +02:00
single-1.c
single-2.c
sort-1.c Update copyright years in libgomp/ 2014-01-02 22:25:54 +00:00
target-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-4.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-5.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-6.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-7.c target.c: New file. 2013-10-11 11:26:50 +02:00
target-8.c 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
task-1.c
task-2.c
task-3.c
task-4.c
task-5.c
taskgroup-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-2.c target.c: New file. 2013-10-11 11:26:50 +02:00
udr-3.c target.c: New file. 2013-10-11 11:26:50 +02:00
vla-1.c