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]

Re: [RFA] Append / to -B


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


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