mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
44ed80923a
The ld testsuite includes numerous tests that depend on being able to compile and link programs with the C compiler. Some of these tests use [which $CC] to check for the presence of the compiler before proceeding with the test, but run_ld_link_exec_tests and run_cc_link_tests give ERRORs if compilation fails. Also, even if $CC is defined and present, it may not be usable due to missing libraries, etc. This patch adds a new procedure check_compiler_available that attempts to build an empty program and caches the result. Uses of [which $CC] are replaced with calls to this procedure, and run_ld_link_exec_tests and run_cc_link_tests now also guard attempts to use $CC. 2019-04-24 Sandra Loosemore <sandra@codesourcery.com> ld/ * testsuite/config/default.exp: Use [check_compiler_available] instead of [which $CC]. * testsuite/ld-auto-import/auto-import.exp: Likewise. * testsuite/ld-cygwin/exe-export.exp: Likewise. * testsuite/ld-elf/audit.exp: Likewise. * testsuite/ld-elf/compress.exp: Likewise. * testsuite/ld-elf/dwarf.exp: Likewise. * testsuite/ld-elf/elf.exp: Likewise. * testsuite/ld-elf/indirect.exp: Likewise. * testsuite/ld-elf/linux-x86.exp: Likewise. * testsuite/ld-elf/shared.exp: Likewise. * testsuite/ld-elf/tls.exp: Likewise. * testsuite/ld-elf/wrap.exp: Likewise. * testsuite/ld-elfcomm/elfcomm.exp: Likewise. * testsuite/ld-elfvers/vers.exp: Likewise. * testsuite/ld-elfvsb/elfvsb.exp: Likewise. * testsuite/ld-elfweak/elfweak.exp: Likewise. * testsuite/ld-gc/gc.exp: Likewise. * testsuite/ld-i386/i386.exp: Likewise. * testsuite/ld-i386/no-plt.exp: Likewise. * testsuite/ld-i386/tls.exp: Likewise. * testsuite/ld-ifunc/ifunc.exp: Likewise. * testsuite/ld-mn10300/mn10300.exp: Likewise. * testsuite/ld-pe/pe-compile.exp: Likewise. * testsuite/ld-pe/pe-run.exp: Likewise. * testsuite/ld-pe/pe-run2.exp: Likewise. * testsuite/ld-pie/pie.exp: Likewise. * testsuite/ld-plugin/lto.exp: Likewise. * testsuite/ld-plugin/plugin.exp: Likewise. * testsuite/ld-scripts/crossref.exp: Likewise. * testsuite/ld-sh/sh.exp: Likewise. * testsuite/ld-shared/shared.exp: Likewise. * testsuite/ld-size/size.exp: Likewise. * testsuite/ld-srec/srec.exp: Likewise. * testsuite/ld-undefined/undefined.exp: Likewise. * testsuite/ld-unique/unique.exp: Likewise. * testsuite/ld-x86-64/mpx.exp: Likewise. * testsuite/ld-x86-64/no-plt.exp: Likewise. * testsuite/ld-x86-64/tls.exp: Likewise. * testsuite/ld-x86-64/x86-64.exp: Likewise. * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call check_compiler_available before trying to use the compiler. (run_cc_link_tests): Likewise. (check_compiler_available): New. Use it instead of [which $CC]. |
||
---|---|---|
.. | ||
vers1.c | ||
vers1.dsym | ||
vers1.map | ||
vers1.sym | ||
vers1.ver | ||
vers2.c | ||
vers2.dsym | ||
vers2.map | ||
vers2.ver | ||
vers3.c | ||
vers3.dsym | ||
vers3.ver | ||
vers4.c | ||
vers4.sym | ||
vers4a.dsym | ||
vers4a.sym | ||
vers4a.ver | ||
vers5.c | ||
vers6.c | ||
vers6.dsym | ||
vers6.sym | ||
vers6.ver | ||
vers7.c | ||
vers7.map | ||
vers7a.c | ||
vers7a.dsym | ||
vers7a.sym | ||
vers7a.ver | ||
vers8.c | ||
vers8.map | ||
vers8.ver | ||
vers9.c | ||
vers9.dsym | ||
vers9.sym | ||
vers9.ver | ||
vers13.asym | ||
vers15.c | ||
vers15.dsym | ||
vers15.sym | ||
vers15.ver | ||
vers16.c | ||
vers16.dsym | ||
vers16.map | ||
vers16a.c | ||
vers16a.dsym | ||
vers16a.ver | ||
vers17.c | ||
vers17.dsym | ||
vers17.map | ||
vers17.ver | ||
vers18.c | ||
vers18.dsym | ||
vers18.map | ||
vers18.sym | ||
vers18.ver | ||
vers19.c | ||
vers19.dsym | ||
vers19.ver | ||
vers20.c | ||
vers20.dsym | ||
vers20.map | ||
vers20.ver | ||
vers20a.ver | ||
vers21.c | ||
vers21.dsym | ||
vers21.map | ||
vers21.sym | ||
vers21.ver | ||
vers22.c | ||
vers22.dsym | ||
vers22.map | ||
vers22.ver | ||
vers22a.c | ||
vers22a.dsym | ||
vers22a.sym | ||
vers22a.ver | ||
vers22b.c | ||
vers22b.dsym | ||
vers22b.ver | ||
vers23.c | ||
vers23.dsym | ||
vers23.ver | ||
vers23a.c | ||
vers23a.dsym | ||
vers23a.map | ||
vers23a.sym | ||
vers23a.ver | ||
vers23b.c | ||
vers23b.dsym | ||
vers23b.map | ||
vers23b.ver | ||
vers23c.ver | ||
vers23d.dsym | ||
vers24.map | ||
vers24.rd | ||
vers24a.c | ||
vers24b.c | ||
vers24c.c | ||
vers25a.c | ||
vers25a.dsym | ||
vers25a.map | ||
vers25a.ver | ||
vers25b.c | ||
vers25b.dsym | ||
vers25b.ver | ||
vers26a.c | ||
vers26a.dsym | ||
vers26a.map | ||
vers26a.ver | ||
vers26b.c | ||
vers26b.dsym | ||
vers26b.ver | ||
vers27a.c | ||
vers27a.dsym | ||
vers27a.map | ||
vers27a.ver | ||
vers27b.c | ||
vers27b.dsym | ||
vers27b.ver | ||
vers27c.c | ||
vers27c.dsym | ||
vers27c.ver | ||
vers27d1.c | ||
vers27d2.c | ||
vers27d3.c | ||
vers27d4.dsym | ||
vers27d4.ver | ||
vers27d.dsym | ||
vers27d.sym | ||
vers27d.ver | ||
vers28a.c | ||
vers28a.dsym | ||
vers28a.ver | ||
vers28b.c | ||
vers28b.dsym | ||
vers28b.map | ||
vers28b.ver | ||
vers28c.c | ||
vers28c.dsym | ||
vers28c.ver | ||
vers29.c | ||
vers29.dsym | ||
vers29.ver | ||
vers30.c | ||
vers30.dsym | ||
vers30.map | ||
vers30.ver | ||
vers31.c | ||
vers31.dsym | ||
vers31.map | ||
vers31.ver | ||
vers32.map | ||
vers32a.c | ||
vers32a.dsym | ||
vers32a.ver | ||
vers32b.c | ||
vers32b.dsym | ||
vers32b.ver | ||
vers.exp | ||
vers.h |