aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-08-10 17:26:32 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-08-10 17:26:32 +0200
commit2ba0376ac40447ce7ee09fcef00511c18db25dfa (patch)
treed225598b1425327a5f743877f00433ae6c3315f1 /gcc
parent557d06f8b3ddb54bca134695e117c40c6e2267ab (diff)
downloadgcc-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')
-rw-r--r--gcc/testsuite/lib/gfortran.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/lib/gfortran.exp b/gcc/testsuite/lib/gfortran.exp
index cae6738..43f4d4e 100644
--- a/gcc/testsuite/lib/gfortran.exp
+++ b/gcc/testsuite/lib/gfortran.exp
@@ -184,7 +184,7 @@ proc gfortran_init { args } {
set specpath [get_multilibs]
}
set gfortran_init_set_GFORTRAN_UNDER_TEST 1
- set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/ -I$specpath/libgfortran" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
+ set GFORTRAN_UNDER_TEST [findfile $base_dir/../../gfortran "$base_dir/../../gfortran -B$base_dir/../../ -B$specpath/libgfortran/" [findfile $base_dir/gfortran "$base_dir/gfortran -B$base_dir/" [transform gfortran]]]
}
}
}