[PATCH 3/3] Ensure calls to test_compiler_info will use the Fortran compiler

Tom Tromey tom@tromey.com
Fri Oct 30 19:02:48 GMT 2020


>>>>> "Gary" == Gary Benson via Gdb-patches <gdb-patches@sourceware.org> writes:

Gary> This commit adds a call to get_compiler_info within lib/fortran.exp
Gary> with "f90" as the language argument.  This causes calls to
Gary> test_compiler_info in all tests that include lib/fortran.exp to
Gary> refer to the Fortran compiler rather than the C compiler.

This seems strange to me.  If simply loading fortran.exp changes
test_compiler_info, then it seems like a runtest that includes multiple
tests could have different results depending on the order:

runtest fortran-test.exp cxx-test.exp
-vs-
runtest cxx-test.exp fortran-test.exp

Tom


More information about the Gdb-patches mailing list