This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ld-plugin/lto.exp: Disable tests with gcc older than 4.7.0.


The test for ld/12942 fails with gcc versions before 4.7.0. This patch
disables running the LTO tests with these versions of gcc. Disabling
the test in a more fine-grained way would be a bit more complex and it
appears that binutils developers are all using newer gccs anyway.

ld/testsuite/ChangeLog:

2013-04-22  Will Newton  <will.newton@linaro.org>

	* ld-plugin/lto.exp: Disable tests with gcc older than 4.7.0.
---
 ld/testsuite/ld-plugin/lto.exp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 09474a6..b8e6d68 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -21,7 +21,8 @@

 # These tests require plugin and LTO.
 if { ![check_plugin_api_available]
-     || ![check_lto_available] } {
+     || ![check_lto_available]
+     || ![at_least_gcc_version 4 7] } {
     return
 }

-- 
1.8.1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]