[dave@hiauly1.hia.nrc.ca: Incorrect file name simplication]

Neil Booth neil@daikokuya.demon.co.uk
Fri Mar 30 09:24:00 GMT 2001


Zack Weinberg wrote:-

> I'd like some more context.  How do we get a silly path like that in
> the first place?

Surely that's not the point; what matters is that they do occur and we
should get these cases right.

How about _cpp_simplify_pathname doing a lstat () on the path to the left
when about to simplify a ".." segment and not bothering unless S_ISDIR?
Is lstat portable enough?  We could do it iff !VMS && !MSDOS_BLAH.

I could try to implement this, in such a way that the include paths on
the include chain are simplified at most once, and that simplification
on these only occurs lazily.  This way we'd only do the work if we need
to do it, and do it at most once.  Do you think that'd fly and keep
everyone happy?

Neil.



More information about the Gcc-bugs mailing list