Hi Tobias, > I have also an alternative version: > > * For in-build-dir test runs, do as with previous patch, i.e. add > "-lquadmath" to the "xgcc" call if the directory is available. > > * For installed-compiler test runs, the new patch uses GFORTRAN_UNDER_TEST > / GXX_UNDER_TEST > (It would also use them with in-build-dir runs, but nothing sets them. I > have kept the -lgfortran / -lstdg++ flags, though they could be left out > iff {GXX,GFORTRAN}_UNDER_TEST is set. Presumably, some linker will complain > if they appear twice.)
TBH, this whole dance of always using xgcc/gcc and repeating everything the real language drivers (xg++/g++ resp. gfortran) and their spec files do and know in the testsuite seems extremly fragile. The only variant that makes sense to me is one letting the correct drivers do their work (as is done e.g. in single-language lib testing like libstdc++) and have the testsuite provide the necessary -L and -B flags for in-tree builds. While this how I believe things should work, I've been practically unable to do any useful testsuite patch review let alone testsuite work for quite some time, so take this with a large grain of salt... The testsuite as a whole is riddled with immense amounts of duplication and diverging almost-copies of code. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University