Rid libdummy.a from lto.exp
authorAlan Modra <amodra@gmail.com>
Sat, 5 Jul 2014 02:29:53 +0000 (11:59 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 5 Jul 2014 03:24:40 +0000 (12:54 +0930)
commitabc868c6090192b9bf3059da81e518bd744b8da3
tree31f7da024f989c7ae138efff67d937f99dbd0e91
parent878f7dc7d15cd4f47943bef53c8201f4781d1807
Rid libdummy.a from lto.exp

libdummy.a is used to make run_cc_link_tests compile objects and
archive them.  libdummy.a isn't used.  What we're really doing is
preventing a final link.  So do that directly.

* lib/ld-lib.exp (run_ld_link_tests): Stop after assembling objects
if binfile is empty.
(run_ld_link_exec_tests, run_cc_link_tests): Likewise.  Tidy
status checks.
* ld-plugin/lto.exp: Don't use libdummy.a trick to compile objects.
Instead use an empty output file.
ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/lib/ld-lib.exp