diff mbox

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

Message ID 51752DE8.6070206@linaro.org
State Superseded
Headers show

Commit Message

Will Newton April 22, 2013, 12:32 p.m. UTC
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(-)

Comments

Alan Modra April 22, 2013, 2:59 p.m. UTC | #1
On Mon, Apr 22, 2013 at 01:32:40PM +0100, Will Newton wrote:
> The test for ld/12942 fails with gcc versions before 4.7.0.

I think it would be better to just disable the failing test.
diff mbox

Patch

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
 }