This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -remap: Should we remap before / after simplification?
- To: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: -remap: Should we remap before / after simplification?
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Fri, 16 Mar 2001 00:50:46 +0000 (GMT)
- Cc: neil at daikokuya dot demon dot co dot uk (Neil Booth), gcc at gcc dot gnu dot org,zackw at Stanford dot EDU (Zack Weinberg)
> IMHO, you should only simplify a pathname when you can prove the
> simplified path and the original one get you the same file.
Or if you can use the OS to make the simplification for you.
I.e. get the current working directory, cd to the basename of the
file, get the current directory for the simplified basename of the
file (might want to check if it's really simpler...), and cd back
to the original directory.