Skip LTO tests for --disable-plugin
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Aug 2016 23:41:12 +0000 (16:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 9 Aug 2016 23:41:29 +0000 (16:41 -0700)
commit5ff559107a34a664abf7db01cc9db93e3597d466
tree6890b5555a3a0ed61f8a22f8e5ce4fe36782165d
parent3eb7562a983bab4c768983bcd85708852d171121
Skip LTO tests for --disable-plugin

Don't run LTO tests if compiler is configured with --disable-plugin.

PR ld/20436
* testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): New
proc.
(check_lto_available): Return 0 if check_gcc_plugin_enabled
returns 0.
(check_lto_fat_available): Likewise.
(check_lto_shared_available): Likewise.
ld/ChangeLog
ld/testsuite/lib/ld-lib.exp