Modify gold testsuite to disable plugins added by GCC driver.
authorCary Coutant <ccoutant@google.com>
Wed, 2 Apr 2014 22:04:36 +0000 (15:04 -0700)
committerCary Coutant <ccoutant@google.com>
Wed, 2 Apr 2014 22:04:36 +0000 (15:04 -0700)
commitae447ddd12cf05bc5bef90c4a3f53239b5bcf2f9
treecf2c145cc7017f573dbe7e37b39d201f373a1570
parent0a899fd5acf97c0c9af7c6548e2c0e132148cf78
Modify gold testsuite to disable plugins added by GCC driver.

GCC 4.8 now adds linker plugin options by default, which conflict with the
--incremental tests in the testsuite. This patch checks whether the compiler
supports the -fno-use-linker-plugin option, and adds it to all link
commands.

2014-04-02  Cary Coutant  <ccoutant@google.com>

* configure.ac (HAVE_PUBNAMES): Use C instead of C++.
(HAVE_NO_USE_LINKER_PLUGIN): Check for -fno-use-linker-plugin.
* configure: Regenerate.
* testsuite/Makefile.am (OPT_NO_PLUGINS): New macro for
-fno-use-linker-plugin.
(LINK1, CXXLINK1): Add it to the link command.
* testsuite/Makefile.in: Regenerate.
gold/ChangeLog
gold/configure
gold/configure.ac
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in