This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch,fortran] Fix INCLUDE with full path (PR30276)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]