ld: Pass -fno-lto to non LTO tests
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2020 13:04:21 +0000 (06:04 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2020 13:04:36 +0000 (06:04 -0700)
commitc6d47bff77db79b1ad99cd7911f7e1807874be55
treebc57be9e8e0f4e3e660b455411c5fecdae6401b5
parent63aa0ac0fd8f4d46507a12c1a38217f8d7d1ee33
ld: Pass -fno-lto to non LTO tests

* testsuite/config/default.exp (NOLTO_CFLAGS): New.
* ld/testsuite/ld-elfcomm/elfcomm.exp: Add $NOLTO_CFLAGS to CC.
* testsuite/ld-elfvers/vers.exp: Likewise.
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
* testsuite/ld-gc/gc.exp: Likewise.
* testsuite/ld-plugin/plugin.exp: Likewise.
* testsuite/ld-scripts/crossref.exp: Likewise.
* testsuite/ld-selective/selective.exp: Likewise.
* testsuite/ld-undefined/undefined.exp: Likewise.
* testsuite/ld-srec/srec.exp: Add $NOLTO_CFLAGS to CC.  Override
CXXFLAGS.
* testsuite/lib/ld-lib.exp (run_ld_link_tests): Prepend -fno-lto
to cflags.
12 files changed:
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-elfcomm/elfcomm.exp
ld/testsuite/ld-elfvers/vers.exp
ld/testsuite/ld-elfvsb/elfvsb.exp
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-plugin/plugin.exp
ld/testsuite/ld-scripts/crossref.exp
ld/testsuite/ld-selective/selective.exp
ld/testsuite/ld-srec/srec.exp
ld/testsuite/ld-undefined/undefined.exp
ld/testsuite/lib/ld-lib.exp