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: [libcpp] maybe canonicalize system paths in line-map


Manuel LÃpez-IbÃÃez <lopezibanez@gmail.com> a Ãcrit:

> Another drawback I didn't realize until now is that in this way the
> canonicalize every path, instead of only touching those that belong to
> system headers.

Ah.  Good catch.

I guess file->dir->sysp should tell us if we are in a system directory,
so that we can avoid canonicalizing in that case.

> I am not sure if it is important or not.

I don't know either.  But I guess we could err on the safe side by
limiting the change to system just headers like you were initially
proposing.

-- 
		Dodji


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