testsuite/lib/gfortran.exp: Add -I for ISO*.h [PR101305, PR101660]
authorTobias Burnus <tobias@codesourcery.com>
Mon, 9 Aug 2021 10:35:23 +0000 (12:35 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 9 Aug 2021 10:35:23 +0000 (12:35 +0200)
commit527a1cf32c27a3fbeaf6be7596241570d864cc4c
treec76fece24ae8ac75a0b82baccc16aeeb3d058af2
parenta5e78ee60cd54dcceb9e7cfa42edd0c29c280f5c
testsuite/lib/gfortran.exp: Add -I for ISO*.h [PR101305, PR101660]

This patch adds -I$specdir/libgfortran to GFORTRAN_UNDER_TEST, when
set by proc gfortran_init. As the $specdir depends on the multilib
setting, it has to be re-set for a different multilib; hence, we track
whether a previous call to gfortran_init set that var or whether it
was set differently.

gcc/testsuite/
PR libfortran/101305
PR fortran/101660

* lib/gfortran.exp (gfortran_init): Add -I $specdir/libgfortran to
GFORTRAN_UNDER_TEST; update it when set by previous gfortran_init call.
* gfortran.dg/ISO_Fortran_binding_1.c: Use <...> not "..." for
ISO_Fortran_binding.h's #include.
* gfortran.dg/ISO_Fortran_binding_10.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_11.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_12.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_15.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_16.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_17.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_18.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_3.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_5.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_6.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_7.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_8.c: Likewise.
* gfortran.dg/ISO_Fortran_binding_9.c: Likewise.
* gfortran.dg/PR94327.c: Likewise.
* gfortran.dg/PR94331.c: Likewise.
* gfortran.dg/bind_c_array_params_3_aux.c: Likewise.
* gfortran.dg/iso_fortran_binding_uint8_array_driver.c: Likewise.
* gfortran.dg/pr93524.c: Likewise.
20 files changed:
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_10.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_11.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_12.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_15.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_16.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_18.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_3.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_5.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_6.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_7.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_8.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.c
gcc/testsuite/gfortran.dg/PR94327.c
gcc/testsuite/gfortran.dg/PR94331.c
gcc/testsuite/gfortran.dg/bind_c_array_params_3_aux.c
gcc/testsuite/gfortran.dg/iso_fortran_binding_uint8_array_driver.c
gcc/testsuite/gfortran.dg/pr93524.c
gcc/testsuite/lib/gfortran.exp