This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: make_relative_prefix oddity
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, dj at redhat dot com
- Date: Tue, 13 Mar 2007 10:01:02 -0400
- Subject: Re: PATCH: make_relative_prefix oddity
- References: <200703130547.l2D5lSLE032046@sparrowhawk.codesourcery.com>
On Mon, Mar 12, 2007 at 10:47:28PM -0700, Mark Mitchell 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?
>
> The patch below (which is against an older version of libiberty, and
> might need updating) fixes it. Assuming you agree that this is a bug,
> would this patch (with updating and testing) be OK?
I believe that at the time your patch was first written, we decided to
fix this in the driver instead and leave make_relative_prefix
unchanged:
2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
* gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
value before passing to make_relative_prefix.
--
Daniel Jacobowitz
CodeSourcery