Library specs for compiler

FX fxcoudert@gmail.com
Wed Nov 20 15:09:00 GMT 2013


OK, I’m nearly ready to submit my IEEE patch. Last remaining thing: move the tests into the testsuite. This doesn’t work so far, because the compiler called by the testsuite cannot find the intrinsic modules.

I explain: the gfortran driver adds an option -fintrinsic-modules-path when it calls f951, to let the compiler know where to find its intrinsic external modules (before IEEE, the only ones where the omp modules). This is done in gcc/fortran/lang-specs.h. This mechanism works fine, but not inside the testsuite: for a reason I do not understand, when the compiler is run from the testsuite, the path given by the specs is not expanded to the full path, but remains a literal “finclude”.

Does anyone know how this works? The libgomp testsuite, being a target library, explicitly passes extra flags to the compiler: that’s done in libgomp/testsuite/libgomp.fortran/fortran.exp. But I have not managed to understand how to do that from the front-end testsuite.

Thanks in advance for any help you might give me.

FX


More information about the Fortran mailing list