gcc/libgomp/testsuite/libgomp.c
Jakub Jelinek 9b65e171ed c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERNAL VAR_DECLs.
* c-decl.c (c_decl_attributes): Also add "omp declare target"
	attribute for DECL_EXTERNAL VAR_DECLs.

	* decl2.c (cplus_decl_attributes): Also add "omp declare target"
	attribute for DECL_EXTERNAL VAR_DECLs.

	* testsuite/libgomp.c/target-10.c: New test.
	* testsuite/libgomp.c++/target-4.C: New test.

From-SVN: r221520
2015-03-19 20:12:43 +01:00
..
appendix-a affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
examples-4 e.53.4.c: Add -DITESTITERS=20 to dg-options unless expensive testing is on. 2014-11-26 20:36:36 +01:00
affinity-1.c Update copyright years. 2015-01-05 13:33:28 +01:00
atomic-1.c Check ia32 instead of ilp32 for ia32 tests. 2011-07-28 13:35:32 -07:00
atomic-2.c cpuid.h: New file. 2007-09-05 19:43:01 +02:00
atomic-3.c gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes for the same VAR_DECL. 2008-03-06 18:28:54 +01:00
atomic-4.c re PR middle-end/35611 (FAIL: libgomp.c/omp-nested-1.c execution test) 2008-03-18 13:21:02 +01:00
atomic-5.c atomic-5.c: Cleanup cpuid usage. 2009-03-25 14:36:02 +01:00
atomic-6.c Check ia32 instead of ilp32 for ia32 tests. 2011-07-28 13:35:32 -07:00
atomic-10.c default.exp: New file. 2007-03-22 08:00:08 +01:00
atomic-11.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-12.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
atomic-13.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
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
atomic-18.c re PR middle-end/64824 (ICE in gimple verification) 2015-02-11 14:40:31 +01:00
autopar-1.c re PR middle-end/36106 (#pragma omp atomic issues with floating point types) 2008-05-07 09:28:14 +02:00
barrier-1.c barrier-1.c: Change timestamp tests from '<' to '<='. 2006-10-06 08:32:33 +00:00
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 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause. 2008-12-27 16:20:28 +01:00
collapse-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
collapse-3.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
copyin-1.c
copyin-2.c
copyin-3.c
critical-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
critical-2.c
debug-1.c re PR debug/36617 (Debug info for OpenMP code is almost non-existent) 2008-06-27 21:42:32 +02:00
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
depend-5.c libgomp.h (struct gomp_task_depend_entry): Add redundant_out field. 2014-08-01 10:05:13 +02:00
depend-6.c task.c (GOMP_taskgroup_end): If taskgroup->num_children is not zero... 2014-08-04 17:45:50 +02:00
depend-7.c task.c (GOMP_taskgroup_end): If taskgroup->num_children is not zero... 2014-08-04 17:45:50 +02:00
depend-8.c task.c (GOMP_taskgroup_end): If taskgroup->num_children is not zero... 2014-08-04 17:45:50 +02:00
depend-9.c task.c (GOMP_taskgroup_end): If taskgroup->num_children is not zero... 2014-08-04 17:45:50 +02:00
depend-10.c task.c (GOMP_taskgroup_end): If taskgroup->num_children is not zero... 2014-08-04 17:45: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 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
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 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-1.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
lock-3.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
loop-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
loop-2.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
loop-3.c gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma... 2008-06-27 21:45:14 +02:00
loop-4.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-5.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-6.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-7.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-8.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-9.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
loop-10.c gimplify.c (omp_is_private): Don't return true if decl is not already private on #pragma omp for or #pragma... 2008-06-27 21:45:14 +02:00
loop-11.c re PR c/39495 (OMP parallel loop w/ unsigned index var rejected) 2009-03-23 22:05:30 +01:00
loop-12.c re PR c/39495 (OMP parallel loop w/ unsigned index var rejected) 2009-03-23 22:05:30 +01:00
loop-13.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-14.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
loop-15.c omp-low.c (extract_omp_for_data): For collapsed loops... 2013-05-16 12:43:33 +02:00
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 c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nestedfn-1.c
nestedfn-2.c
nestedfn-3.c
nestedfn-4.c re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks) 2006-09-26 20:10:58 +02:00
nestedfn-5.c re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel blocks) 2006-09-26 20:10:58 +02:00
nestedfn-6.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
nqueens-1.c affinity-1.c: Include <sys/wait.h>. 2014-10-06 11:54:24 +00:00
omp-loop01.c
omp-loop02.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp-loop03.c
omp-nested-1.c
omp-parallel-for.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp-parallel-if.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp-single-1.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp-single-2.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp-single-3.c
omp_hello.c
omp_matvec.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp_orphan.c
omp_reduction.c
omp_workshare1.c
omp_workshare2.c
omp_workshare3.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
omp_workshare4.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
ordered-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
ordered-2.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
ordered-3.c
parallel-1.c
pr24455-1.c
pr24455.c
pr26171.c
pr26943-1.c re PR c++/26943 ([gomp] firstprivate + lastprivate uses inefficient barrier) 2006-05-02 22:03:38 +02:00
pr26943-2.c re PR c/53580 (Internal Segmentation fault in nested "omp parallel", "omp parallel for" and "omp parallel for reduction" Directives) 2012-06-07 08:36:55 +02:00
pr26943-3.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
pr26943-4.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
pr29947-1.c default.exp: New file. 2007-03-22 08:00:08 +01:00
pr29947-2.c default.exp: New file. 2007-03-22 08:00:08 +01:00
pr30494.c re PR middle-end/30494 (ICE with VLA and openmp) 2007-01-24 21:56:45 +01:00
pr32362-1.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32362-2.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32362-3.c re PR middle-end/32362 (ICE: in lookup_decl_in_outer_ctx, at omp-low.c:1508) 2007-06-21 14:11:00 +02:00
pr32468.c re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS) 2007-07-02 21:19:28 +02:00
pr33880.c re PR middle-end/33880 (ICE: in extract_omp_for_data, at omp-low.c:162) 2008-01-25 13:54:42 +01:00
pr34513.c re PR c++/34513 (static variable not found for C++ OpenMP) 2007-12-19 13:58:32 +01:00
pr35130.c re PR middle-end/35130 (OpenMP: Private variable passed to subroutine) 2008-02-15 18:36:43 +01:00
pr35196.c re PR middle-end/35196 (lastprivate broken for static non-ordered loops) 2008-02-15 18:42:25 +01:00
pr35549.c re PR middle-end/35549 (Invalid use of copy-in/out for shared vars in nested parallels) 2008-03-12 10:55:48 +01:00
pr35625.c re PR libgomp/35625 (schedule(guided) loops forever if ((end - start) % incr) != 0) 2008-03-18 10:54:21 +01:00
pr36802-1.c re PR middle-end/36802 (pop_gimplify_context ICE using openmp task construct) 2008-12-08 11:36:01 +01:00
pr36802-2.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
pr36802-3.c affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
pr38650.c re PR c++/38650 (Trouble with volatile and #pragma omp for) 2008-12-28 21:06:00 +01:00
pr39154.c re PR middle-end/39154 (Miscompilation of VLAs in nested parallel regions) 2009-02-11 22:57:52 +01:00
pr39591-1.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr39591-2.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr39591-3.c re PR other/39591 (GOMP_loop_end illegally optmized into GOMP_loop_end_nowait) 2009-04-01 08:54:52 +02:00
pr42029.c re PR middle-end/42029 (ICE with complex data type and openmp for reduction clause) 2009-11-13 19:38:36 +01:00
pr42942.c re PR libgomp/42942 (OpenMP omp_set_max_active_levels(0) isn't resetting value) 2010-03-22 16:16:52 +01:00
pr43893.c re PR c/43893 (Error: Invalid controlling predicate with -fopenmp) 2010-04-26 22:07:10 +02:00
pr46886.c re PR tree-optimization/46886 (wrong code with -ftree-parallelize-loops -fno-tree-ch) 2012-02-08 15:28:01 +00:00
pr48591.c affinity-1.c: Remove alloca.h inlcude. 2013-12-17 19:05:32 +01:00
pr49897-1.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49897-2.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49898-1.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr49898-2.c re PR middle-end/49897 (nesting lastprivate gives incorrect result) 2011-07-29 19:45:42 +02:00
pr52547.c re PR middle-end/52547 (ICE with openmp with nested function which requires a trampoline) 2012-03-22 20:25:36 +01:00
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
pr61200.c re PR libgomp/61200 (internal compiler error: Segmentation fault, assert & openmp) 2014-10-03 09:29:42 +02:00
pr64734.c re PR middle-end/64734 (ICE at omp lowering) 2015-01-23 19:19:50 +01:00
pr64824.c re PR middle-end/64824 (ICE in gimple verification) 2015-02-04 23:32:36 +01:00
pr64868.c re PR middle-end/64824 (ICE in gimple verification) 2015-02-04 23:32:36 +01:00
private-1.c omp-low.c (lookup_decl_in_outer_ctx): Allow calling this with !ctx->is_nested. 2007-12-04 00:06:55 +01:00
reduction-1.c
reduction-2.c
reduction-3.c
reduction-4.c
reduction-5.c re PR middle-end/36506 (Broken #pragma omp sections reduction (+:x)) 2008-06-12 13:03:50 +02:00
reduction-6.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
sections-1.c re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
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 affinity-1.c: Fix implicit declarations. 2014-10-06 10:20:45 +00:00
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 re PR libgomp/27612 (Tests use __sync_lock_test_and_set_4') 2006-05-22 19:10:45 +00:00
single-2.c
sort-1.c Update copyright years. 2015-01-05 13:33:28 +01: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 [PATCH 7/7] OpenMP 4.0 offloading infrastructure: testsuite. 2014-11-13 13:56:22 +00: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
target-9.c Make fopenmp an LTO option 2015-01-23 12:53:55 +00:00
target-10.c c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERNAL VAR_DECLs. 2015-03-19 20:12:43 +01:00
target-critical-1.c omp-low.c (lower_omp_critical): Mark critical sections inside target functions as offloadable. 2014-11-28 13:59:49 +00:00
task-1.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-2.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-3.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-4.c c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805. 2008-06-06 15:01:54 +02:00
task-5.c backport: re PR fortran/46752 (OpenMP - Seg fault for unallocated allocatable array in firstprivate clause) 2011-08-02 18:13:29 +02:00
taskgroup-1.c target.c: New file. 2013-10-11 11:26:50 +02:00
thread-limit-1.c affinity-1.c: Include <sys/wait.h>. 2014-10-06 11:54:24 +00:00
thread-limit-2.c affinity-1.c: Include <sys/wait.h>. 2014-10-06 11:54:24 +00: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