]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp: Add -Wno-c-binding-type for omp_lib.f90 compilation
authorTobias Burnus <tburnus@baylibre.com>
Tue, 8 Apr 2025 10:04:59 +0000 (12:04 +0200)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 8 Apr 2025 10:04:59 +0000 (12:04 +0200)
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.

libgomp/Makefile.am
libgomp/Makefile.in

index 855f0affddf562825869a2ff43e1cfa0eca19802..e3202aeb0e054bae96fb0bd3b39c3c2c8dca6e1f 100644 (file)
@@ -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
index 25cb6fcd3c14293c378e00c8c943a3c981a8bf6e..2a0a842af52d8863ecd04f6f7ec94cb49365eef3 100644 (file)
@@ -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