This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,fortran] Fix INCLUDE with full path (PR30276)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Jakub Jelinek <jakub at redhat dot com>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 2 Jan 2007 12:10:24 -0500
- Subject: Re: [patch,fortran] Fix INCLUDE with full path (PR30276)
- References: <459A7BCA.7040403@net-b.de> <20070102155359.GL29911@devserv.devel.redhat.com> <459A8F4D.5070509@net-b.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jan 02, 2007 at 05:58:53PM +0100, Tobias Burnus wrote:
> I use now Jakub's patch which makes more sense. (It also avoids the
> pointless iteration over the include paths, which is pointless for
> absolute pathnames.) Note, patching gfc_open_intrinsic_module is not
> needed as it calls open_included_file.
Putting it in open_included_file rather than gfc_open_included_file
and gfc_open_intrinsic_module is shorter, on the other side
for gfc_open_included_file ("/tmp/foo.inc", true, x) with
non-existent /tmp/foo.inc it will gfc_open_file twice while
only once would be sufficient. But guess that is sufficiently rare not to
care about it much.
Jakub