]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-plugin/lto.exp
plugin: Don't invoke LTO-wrapper
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-plugin / lto.exp
index 31da465d002600269d62aa72784851797c145a34..8ffc03f01a2538fc695bc5c6079e4ef7fcbd717c 100644 (file)
@@ -234,13 +234,18 @@ set lto_link_tests [list \
   [list "Build pr24406-2b.o" \
    "" "-O2 -fno-lto" \
    {pr24406-2b.c}] \
-  [list "pr25355.o" \
-   "" \
-   "-flto -fno-common $lto_no_fat" \
-   {pr25355.c} \
-   [list [list "nm" "$plug_opt" "pr25355.d"]]] \
 ]
 
+if { [at_least_gcc_version 10 0] } {
+    set lto_link_tests [concat $lto_link_tests [list \
+       [list "pr25355.o" \
+        "" \
+        "-flto -fno-common $lto_no_fat" \
+        {pr25355.c} \
+        [list [list "nm" "$plug_opt" "pr25355.d"]]] \
+    ]]
+}
+
 if { [at_least_gcc_version 4 7] } {
     set lto_link_tests [concat $lto_link_tests [list \
       [list "Compile PR ld/12942 (1)" \