aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Burnus <tburnus@baylibre.com>2025-04-08 12:04:59 +0200
committerTobias Burnus <tburnus@baylibre.com>2025-04-08 12:04:59 +0200
commit649b3cf32aee7c22f24033d0f6f8c74196b74a19 (patch)
tree5009e125ca5b22319ef618413b410929d9086819
parent1a8e821577dfb535aa54df311ccb282363a93355 (diff)
downloadgcc-649b3cf32aee7c22f24033d0f6f8c74196b74a19.zip
gcc-649b3cf32aee7c22f24033d0f6f8c74196b74a19.tar.gz
gcc-649b3cf32aee7c22f24033d0f6f8c74196b74a19.tar.bz2
libgomp: Add -Wno-c-binding-type for omp_lib.f90 compilation
Silence the overeager "Warning: Variable 'depobj_list' at (1) is a dummy argument of the BIND(C) procedure ... but may not be C interoperable [-Wc-binding-type]" when compiling omp_lib.f90(.in). The argument is of integer kind 'omp_depend_kind = @OMP_DEPEND_KIND@'. libgomp/ChangeLog: * Makefile.am (%.mod): Add -Wno-c-binding-type. * Makefile.in: Regenerate.
-rw-r--r--libgomp/Makefile.am2
-rw-r--r--libgomp/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/Makefile.am b/libgomp/Makefile.am
index 855f0af..e3202ae 100644
--- a/libgomp/Makefile.am
+++ b/libgomp/Makefile.am
@@ -97,7 +97,7 @@ openacc_kinds.mod: openacc.mod
openacc.mod: openacc.lo
:
%.mod: %.f90
- $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only $<
+ $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only -Wno-c-binding-type $<
fortran.lo: libgomp_f.h
fortran.o: libgomp_f.h
env.lo: libgomp_f.h
diff --git a/libgomp/Makefile.in b/libgomp/Makefile.in
index 25cb6fc..2a0a842 100644
--- a/libgomp/Makefile.in
+++ b/libgomp/Makefile.in
@@ -1388,7 +1388,7 @@ openacc_kinds.mod: openacc.mod
openacc.mod: openacc.lo
:
%.mod: %.f90
- $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only $<
+ $(FC) $(FCFLAGS) -cpp -fopenmp -fsyntax-only -Wno-c-binding-type $<
fortran.lo: libgomp_f.h
fortran.o: libgomp_f.h
env.lo: libgomp_f.h