This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: make_relative_prefix oddity
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, dj at redhat dot com
- Date: Wed, 14 Mar 2007 02:07:43 -0300
- Subject: Re: PATCH: make_relative_prefix oddity
- References: <200703130547.l2D5lSLE032046@sparrowhawk.codesourcery.com>
On Mar 13, 2007, Mark Mitchell <mark@codesourcery.com> wrote:
> It treats only "/opt" as a common component of the two paths, rathe
> than "/opt/foo". If you use "/opt/foo/" (instead of "/opt/foo") for
> the last argument, the answer is as I expected. This seems odd to me;
> is it the intended behavior?
IIRC this is intended behavior, to enable stuff such as
"/some/dir-suffix" and "/another/different-suffix" to generate the
correct relative pathnames, when given "/some/dir" as prefix.
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}