aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-09-22 18:14:27 +0930
committerAlan Modra <amodra@gmail.com>2014-09-22 19:04:48 +0930
commit4dea914eb19fe30278afad9133121634b3e04484 (patch)
tree8e65d038dd612aeddf48186702f89bb2df7f5a29
parent28a0da39c6db871d66b945d3025f69d56e487aa9 (diff)
downloadgdb-4dea914eb19fe30278afad9133121634b3e04484.zip
gdb-4dea914eb19fe30278afad9133121634b3e04484.tar.gz
gdb-4dea914eb19fe30278afad9133121634b3e04484.tar.bz2
Find lto plugin when using gcc-5.0
I originally had this as --print-prog-name and changed back to --print-file-name to suit older gcc, neglecting to check whether gcc-5.0 --print-file-name finds the lto plugin. It doesn't. * ld-plugin/lto.exp: Use both --print-file-name and --print-prog-name when looking for lto plugin.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/ld-plugin/lto.exp5
2 files changed, 9 insertions, 1 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 556ee1a..a03dd71 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-22 Alan Modra <amodra@gmail.com>
+
+ * ld-plugin/lto.exp: Use both --print-file-name and --print-prog-name
+ when looking for lto plugin.
+
2014-09-16 Terry Guo <terry.guo@arm.com>
* ld-arm/attr-merge-arch-2.d: New test case.
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 3a4f661..031752d 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -45,7 +45,10 @@ set plugin_names {
}
set plug_opt ""
foreach plug $plugin_names {
- set plug_so [run_host_cmd $CC "--print-file-name $plug"]
+ set plug_so [run_host_cmd $CC "--print-prog-name $plug"]
+ if { $plug_so eq $plug } then {
+ set plug_so [run_host_cmd $CC "--print-file-name $plug"]
+ }
if { $plug_so ne $plug } then {
set plug_opt "--plugin $plug_so"
break