This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA] Append / to -B
- To: Nick Clifton <nickc at cambridge dot redhat dot com>
- Subject: Re: [RFA] Append / to -B
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Jun 2001 03:44:19 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <m3ofr7xp9p.fsf@north-pole.nickc.cambridge.redhat.com>
On Jun 29, 2001, Nick Clifton <nickc@cambridge.redhat.com> wrote:
> The patch is careful to only append the forward-slash (actually a
> DIR_SEPARATOR) if one is missing and if doing so would create a
> valid path to a directory. So -B can still be used to define a
> prefix to the names of executables.
Consider -B/foo- given that both /foo- is a directory but /foo-cc1 is
the C compiler. Do we really want to change the semantics of this
admittedly convoluted example?
Or should we perhaps change the treatment of the lack of a trailing
DIR_SEPARATOR from the command-line switch handling to the various
uses, attempting to append DIR_SEPARATOR only if we don't find what we
want without it?
But then comes the question of whether we'd try appending
DIR_SEPARATOR to each component of the search path after searching all
of the search path, or after trying each component?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me