diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2021-08-10 17:26:32 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2021-08-10 17:26:32 +0200 |
commit | 2ba0376ac40447ce7ee09fcef00511c18db25dfa (patch) | |
tree | d225598b1425327a5f743877f00433ae6c3315f1 /gcc/genmodes.c | |
parent | 557d06f8b3ddb54bca134695e117c40c6e2267ab (diff) | |
download | gcc-2ba0376ac40447ce7ee09fcef00511c18db25dfa.zip gcc-2ba0376ac40447ce7ee09fcef00511c18db25dfa.tar.gz gcc-2ba0376ac40447ce7ee09fcef00511c18db25dfa.tar.bz2 |
gfortran: Fix in-build-tree testing [PR101305, PR101660]
ISO_Fortran_binding.h is written in the build dir - hence, a previous commit
added it as include directory for in-build-tree testing. However,
it turned out that -I$specdir/libgfortran interferes with reading .mod files
as they are then no longer regareded as intrinsic modules. Solution: Create
an extra include/ directory in the libgfortran build dir and copy
ISO_Fortran_binding.h to that directory. As -B$specdir/libgfortran already
causes gfortran to read that include subdirectory, the -I flag is no longer
needed.
PR libfortran/101305
PR fortran/101660
PR testsuite/101847
libgfortran/ChangeLog:
* Makefile.am (ISO_Fortran_binding.h): Create include/ in the build dir
and copy the include file to it.
(clean-local): Add for removing the 'include' directory.
* Makefile.in: Regenerate.
gcc/testsuite/ChangeLog:
* lib/gfortran.exp (gfortran_init): Remove -I$specpath/libgfortran
from the string used to set GFORTRAN_UNDER_TEST.
Diffstat (limited to 'gcc/genmodes.c')
0 files changed, 0 insertions, 0 deletions