https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101305

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>:

https://gcc.gnu.org/g:2ba0376ac40447ce7ee09fcef00511c18db25dfa

commit r12-2839-g2ba0376ac40447ce7ee09fcef00511c18db25dfa
Author: Tobias Burnus <tob...@codesourcery.com>
Date:   Tue Aug 10 17:26:32 2021 +0200

    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.

Reply via email to