This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [gfortran] Fix gfortran include problem


On Wed, Nov 16, 2005 at 05:49:30PM +0100, Fran?ois-Xavier Coudert wrote:
> >> What happens in the presence of symlinks?  Does
> >> this patch (correctly?) follow the a symlink?
> >
> > I don't understand what you mean. Could you give an example along with
> > the behaviour you expect?
> 
> Sorry, I should have added that the patch doesn't make any difference
> between a symlink and a regular file in the same directory as the
> symlink. That is, as far as I tested, the behaviour of this patch wrt
> symlinks is exactly the same as g77.
> 

If it replicates g77 behavior, then it should be fine.
I'll go over the patch later today for review if no one
beats me to it.

What I'm thinking about is a case where file.f is a
symlink to tmp/fileA.f.  In tmp/ we have fileB.f such
that fileA.f has "include fileB.f".  Will gfortran
find fileB.f?

ls -l .
file.f -> tmp/fileA.f

ls -l tmp
tmp/fileA.f
tmp/fileB.f

-- 
Steve


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