gcc/libgomp/testsuite/libgomp.oacc-fortran
Tobias Burnus 417ea5c02c Fortran: Fix -Wno-missing-include-dirs handling [PR55534]
gcc/fortran/ChangeLog:

	PR fortran/55534
	* cpp.c: Define GCC_C_COMMON_C for #include "options.h" to make
	cpp_reason_option_codes available.
	(gfc_cpp_register_include_paths): Make static, set pfile's
	warn_missing_include_dirs and move before caller.
	(gfc_cpp_init_cb): New, cb code moved from ...
	(gfc_cpp_init_0): ... here.
	(gfc_cpp_post_options): Call gfc_cpp_init_cb.
	(cb_cpp_diagnostic_cpp_option): New. As implemented in c-family
	to match CppReason flags to -W... names.
	(cb_cpp_diagnostic): Use it to replace single special case.
	* cpp.h (gfc_cpp_register_include_paths): Remove as now static.
	* gfortran.h (gfc_check_include_dirs): New prototype.
	(gfc_add_include_path): Add new bool arg.
	* options.c (gfc_init_options): Don't set -Wmissing-include-dirs.
	(gfc_post_options): Set it here after commandline processing. Call
	gfc_add_include_path with defer_warn=false.
	(gfc_handle_option): Call it with defer_warn=true.
	* scanner.c (gfc_do_check_include_dir, gfc_do_check_include_dirs,
	gfc_check_include_dirs): New. Diagnostic moved from ...
	(add_path_to_list): ... here, which came before cmdline processing.
	Take additional bool defer_warn argument.
	(gfc_add_include_path): Take additional defer_warn arg.
	* scanner.h (struct gfc_directorylist): Reorder for alignment issues,
	add new 'bool warn'.

libgfortran/ChangeLog:
	PR fortran/55534
	* configure.ac (AM_FCFLAGS): Add -Wno-missing-include-dirs.
	* configure: Regenerate.

libgomp/ChangeLog:
	PR fortran/55534
	* testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
	to ALWAYS_CFLAGS.
	* testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.

gcc/testsuite/ChangeLog:
	* gfortran.dg/include_6.f90: Change dg-error to
	dg-warning and update pattern.
	* gfortran.dg/include_14.f90: New test.
	* gfortran.dg/include_15.f90: New test.
	* gfortran.dg/include_16.f90: New test.
	* gfortran.dg/include_17.f90: New test.
	* gfortran.dg/include_18.f90: New test.
	* gfortran.dg/include_19.f90: New test.
	* gfortran.dg/include_20.f90: New test.
	* gfortran.dg/include_21.f90: New test.
2021-09-21 08:28:30 +02:00
..
abort-1.f90
abort-2.f90
acc_get_property.f90
acc_on_device-1-1.f90 Add 'acc_device_radeon' testing to 'libgomp.oacc-*/acc_on_device-*' 2021-06-08 11:28:53 +02:00
acc_on_device-1-2.f Add 'acc_device_radeon' testing to 'libgomp.oacc-*/acc_on_device-*' 2021-06-08 11:28:53 +02:00
acc_on_device-1-3.f Add 'acc_device_radeon' testing to 'libgomp.oacc-*/acc_on_device-*' 2021-06-08 11:28:53 +02:00
allocatable-1-1.f90
allocatable-1-2.f90
allocatable-array-1.f90
array-stride-dt-1.f90 openacc: Strided array sections and components of derived-type arrays 2021-02-17 06:13:55 -08:00
asyncwait-1.f90
asyncwait-2.f90
asyncwait-3.f90
atomic_capture-1.f90
atomic_rw-1.f90
atomic_update-1.f90
attach-descriptor-1.f90
attach-descriptor-2.f90
cache-1.f95
class-ptr-param.f95
classtypes-1.f95
classtypes-2.f95
clauses-1.f90
collapse-1.f90
collapse-2.f90
collapse-3.f90
collapse-4.f90
collapse-5.f90
collapse-6.f90
collapse-7.f90
collapse-8.f90
combined-directives-1.f90
combined-reduction.f90
common-block-1.f90
common-block-2.f90
common-block-3.f90
cublas-fixed.h
data-1.f90
data-2.f90
data-3.f90
data-4-2.f90
data-4.f90
data-5.f90
declare-1.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
declare-2.f90
declare-3.f90
declare-4.f90
declare-5.f90
deep-copy-1.f90
deep-copy-3.f90
deep-copy-4.f90
deep-copy-5.f90
deep-copy-6-no_finalize.F90
deep-copy-6.f90
deep-copy-7.f90
deep-copy-8.f90
default-1.f90
derived-type-1.f90
derivedtype-1.f95
derivedtype-2.f95
derivedtypes-arrays-1.f90 'libgomp.oacc-fortran/derivedtypes-arrays-1.f90' OpenACC 'serial' construct diagnostic for nvptx offloading 2021-03-25 12:49:44 +01:00
dummy-array.f90
dynamic-incr-structural-1.f90
dynamic-pointer-1.f90
error_stop-1.f
error_stop-2.f
error_stop-3.f
firstprivate-1.f90
fortran.exp Fortran: Fix -Wno-missing-include-dirs handling [PR55534] 2021-09-21 08:28:30 +02:00
gang-static-1.f90
gemm-2.f90
gemm.f90
host_data-1.f90
host_data-2.f90 libgomp: Add openacc_{cuda,cublas,cudart} effective targets and use them in openacc testsuite 2021-05-27 22:44:36 +02:00
host_data-3.f libgomp: Add openacc_{cuda,cublas,cudart} effective targets and use them in openacc testsuite 2021-05-27 22:44:36 +02:00
host_data-4.f90 libgomp: Add openacc_{cuda,cublas,cudart} effective targets and use them in openacc testsuite 2021-05-27 22:44:36 +02:00
host_data-5.F90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
if-1.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
implicit-firstprivate-ref.f90
kernels-acc-loop-reduction-2.f90
kernels-acc-loop-reduction.f90
kernels-collapse-3.f90
kernels-collapse-4.f90
kernels-independent.f90
kernels-loop-1.f90
kernels-loop-2.f95
kernels-loop-data-2.f95
kernels-loop-data-enter-exit-2.f95
kernels-loop-data-enter-exit.f95
kernels-loop-data-update.f95
kernels-loop-data.f95
kernels-loop.f95
kernels-map-1.f90
kernels-parallel-loop-data-enter-exit.f95
kernels-private-vars-loop-gang-1.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-gang-2.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-gang-3.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-gang-6.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-vector-1.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-vector-2.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-1.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-2.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-3.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-4.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-5.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-6.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-private-vars-loop-worker-7.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
kernels-reduction-1.f90
lib-1.f90
lib-2.f
lib-3.f
lib-4.f90
lib-5.f90 Enable more 'libgomp.oacc-*/lib-*' testcases for non-'openacc_nvidia_accel_selected' 2021-06-08 11:51:45 +02:00
lib-6.f90
lib-7.f90 Enable more 'libgomp.oacc-*/lib-*' testcases for non-'openacc_nvidia_accel_selected' 2021-06-08 11:51:45 +02:00
lib-8.f90 Enable more 'libgomp.oacc-*/lib-*' testcases for non-'openacc_nvidia_accel_selected' 2021-06-08 11:51:45 +02:00
lib-10.f90 Enable more 'libgomp.oacc-*/lib-*' testcases for non-'openacc_nvidia_accel_selected' 2021-06-08 11:51:45 +02:00
lib-12.f90
lib-13.f90
lib-14.f90 Enable more 'libgomp.oacc-*/lib-*' testcases for non-'openacc_nvidia_accel_selected' 2021-06-08 11:51:45 +02:00
lib-15.f90
lib-16-2.f90 Fix OpenACC 'async'/'wait' issues in 'libgomp.oacc-c-c++-common/lib-{94,95}.c', 'libgomp.oacc-fortran/lib-16{,-2}.f90' 2021-07-27 11:16:24 +02:00
lib-16.f90 Fix OpenACC 'async'/'wait' issues in 'libgomp.oacc-c-c++-common/lib-{94,95}.c', 'libgomp.oacc-fortran/lib-16{,-2}.f90' 2021-07-27 11:16:24 +02:00
lib-32-1.f
lib-32-2.f
map-1.f90
mdc-refcount-1-1-1.f90
mdc-refcount-1-1-2.F90
mdc-refcount-1-2-1.f90
mdc-refcount-1-2-2.f90
mdc-refcount-1-3-1.f90
mdc-refcount-1-3-2.f90
mdc-refcount-1-4-1.f90
mdc-refcount-1-4-2.f90
multidim-slice.f95
nested-function-1.f90
nested-function-2.f90
nested-function-3.f90
no_create-1.f90
no_create-2.f90
no_create-3.F90
non-scalar-data.f90
openacc_version-1.f
openacc_version-2.f90
optional-cache.f95
optional-data-copyin-by-value.f90
optional-data-copyin.f90
optional-data-copyout.f90
optional-data-enter-exit.f90
optional-declare.f90
optional-firstprivate.f90
optional-host_data.f90
optional-nested-calls.f90
optional-private.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
optional-reduction.f90 amdgcn: Enable OpenACC worker partitioning for AMD GCN 2021-08-09 15:08:44 +02:00
optional-update-device.f90
optional-update-host.f90
par-reduction-2-1.f OpenACC: Fix pattern in dg-bogus in Fortran testcases again 2021-04-26 23:13:22 +02:00
par-reduction-2-2.f OpenACC: Fix pattern in dg-bogus in Fortran testcases again 2021-04-26 23:13:22 +02:00
parallel-dims-aux.c Fix 'libgomp.oacc-fortran/parallel-dims.f90' for 'acc_device_radeon' 2021-06-08 11:41:52 +02:00
parallel-dims.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
parallel-loop-1.f90
parallel-reduction.f90 OpenACC: Fix pattern in dg-bogus in Fortran testcases again 2021-04-26 23:13:22 +02:00
pointer-align-1.f90
pr68813.f90
pr70289.f90
pr70643.f90
pr81352.f90
pr83920.f90
pr84028.f90 Add '-Wopenacc-parallelism' 2021-04-26 12:32:00 +02:00
pr84955.f90
pr94358-1.f90 [OpenACC 'kernels'] '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]' 2021-04-19 14:29:48 +02:00
pr96628-part1.f90
pr96628-part2.f90
print-1-nvptx.f90
print-1.f90
private-atomic-1-gang.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
private-atomic-1-vector.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
private-atomic-1-worker.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
private-variables.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
privatized-ref-2.f90 [OpenACC privatization] Prune uninteresting/varying diagnostics in 'libgomp.oacc-fortran/privatized-ref-2.f90' 2021-05-22 10:37:17 +02:00
pset-1.f90
reduction-1.f90 Add '-Wopenacc-parallelism' 2021-04-26 12:32:00 +02:00
reduction-2.f90
reduction-3.f90
reduction-4.f90
reduction-5.f90 Add '-Wopenacc-parallelism' 2021-04-26 12:32:00 +02:00
reduction-6.f90 Add '-Wopenacc-parallelism' 2021-04-26 12:32:00 +02:00
reduction-7.f90 amdgcn: Enable OpenACC worker partitioning for AMD GCN 2021-08-09 15:08:44 +02:00
reduction-8.f90
reference-reductions.f90
routine-1.f90
routine-2.f90
routine-3.f90
routine-4.f90
routine-5.f90
routine-7.f90 [OpenACC privatization] Largely extend diagnostics and corresponding testsuite coverage [PR90115] 2021-05-21 20:09:59 +02:00
routine-9.f90
routine-10.f90
routine-nohost-1.f90 [OpenACC] Extract 'pass_oacc_loop_designation' out of 'pass_oacc_device_lower' 2021-07-29 09:19:44 +02:00
stop-1.f
stop-2.f
stop-3.f
subarrays-1.f90
subarrays-2.f90
update-1.f90
update-2.f90
update-dt-array.f90 openacc: Fix lowering for derived-type mappings through array elements 2021-02-17 06:13:55 -08:00
vector-routine.f90