Fix PR20425, multilib paths for -print-search-dirs

Joseph S. Myers joseph@codesourcery.com
Fri Dec 9 17:00:00 GMT 2005


On Thu, 8 Dec 2005, Mark Mitchell wrote:

> I believe that we (CodeSourcery) proposed patches for Solaris that made
> the compiler search *only* the correct multilib directories (so, that,
> for example, with -m64 on AMD64, the 32-bit directories were no longer
> searched).  I don't remember if these patches were ever checked in, and
> when I looked at the tree I wasn't sure, but Joseph will know, so I've
> cc'd him.  Assuming that we did in fact check in this Solaris patch,
> then it seems that this patch should avoid mentioning the un-searched
> directories on systems that behave like that, since the goal is to
> really list the actual directories.

Yes, they were checked in.

------------------------------------------------------------------------
r96915 | jsm28 | 2005-03-23 01:23:51 +0000 (Wed, 23 Mar 2005) | 8 lines

2005-03-23  Mark Mitchell  <mark@codesourcery.com>

        * gcc.c (do_spec_1): Do not add a -L path for a directory in
        the prefix list if we have already added a multilib directory
        based on that path.
        (main): Do not add MD_EXEC_PREFIX to the list of directories to
        search with -L.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)



More information about the Gcc-patches mailing list