From cb8e01c6bbe1da1c6e6553e2bf20f0d6e48e1d42 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 18 Aug 2014 18:38:24 +0930 Subject: [PATCH] LTO plugin with older gcc * ld-plugin/lto.exp: Use gcc -print-file-name to find lto plugin. --- ld/testsuite/ChangeLog | 4 ++++ ld/testsuite/ld-plugin/lto.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6b6e8f7ad43..1b43c1f6128 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-08-18 Alan Modra + + * ld-plugin/lto.exp: Use gcc -print-file-name to find lto plugin. + 2014-08-18 Alan Modra * ld-plugin/needed3.c: New file. diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index 7ff5bfb5cdc..3a4f661daf7 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -45,7 +45,7 @@ set plugin_names { } set plug_opt "" foreach plug $plugin_names { - set plug_so [run_host_cmd $CC "--print-prog-name $plug"] + set plug_so [run_host_cmd $CC "--print-file-name $plug"] if { $plug_so ne $plug } then { set plug_opt "--plugin $plug_so" break -- 2.30.2