[gcc r15-9308] libgomp: Add -Wno-c-binding-type for omp_lib.f90 compilation
Tobias Burnus
burnus@gcc.gnu.org
Tue Apr 8 10:06:05 GMT 2025
https://gcc.gnu.org/g:649b3cf32aee7c22f24033d0f6f8c74196b74a19
commit r15-9308-g649b3cf32aee7c22f24033d0f6f8c74196b74a19
Author: Tobias Burnus <tburnus@baylibre.com>
Date: Tue Apr 8 12:04:59 2025 +0200
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.
Diff:
---
libgomp/Makefile.am | 2 +-
libgomp/Makefile.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libgomp/Makefile.am b/libgomp/Makefile.am
index 855f0affddf5..e3202aeb0e05 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 25cb6fcd3c14..2a0a842af52d 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
More information about the Gcc-cvs
mailing list