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]
Other format: [Raw text]

Re: [PATCH][RFH] (3/3) Vectorize some builtins on x86_64 by using libgcc-math


On Fri, 17 Nov 2006, Richard Guenther wrote:

> Index: testsuite/lib/libgcc-math-dg.exp

This looks like it could have problems with installed toolchain testing.  
With installed testing there is no build directory, but you don't need to 
pass any special -B, -L etc. options or set LD_LIBRARY_PATH; instead the 
user creates site.exp (with most of the variables gcc/Makefile.in puts 
there, but not "rootme" or "TESTING_IN_BUILD_TREE") and arranges for the 
compilers to be in the PATH and any necessary directories to be in 
LD_LIBRARY_PATH, then runs "runtest --srcdir=whatever/testsuite 
--tool=libgcc-math".  This should then run the compilers in the manner a 
normal toolchain user would, rather than with lots of special options to 
find things in the build tree.

Disabling most of the special handling if the appropriate directories 
aren't found should suffice.  The libstdc++ testsuite definitely works for 
installed testing.

> +     # Compute what needs to be put into LD_LIBRARY_PATH
> +     set ld_library_path ".:${blddir}/.libs"

For example, don't do this if blddir wasn't found.

-- 
Joseph S. Myers
joseph@codesourcery.com


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