From e6c1dbbfe8bed2b9396f74e3594701c8abe875ad Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 7 Jan 2021 01:57:35 -0500 Subject: [PATCH] sim: cris: disable test that crashes the linker PR ld/13900 Linking this test crashes the linker, so disable it. The crash was reported about 9 years ago but haven't made progress, so lets avoid the failures in test runs. --- sim/testsuite/sim/cris/ChangeLog | 5 +++++ sim/testsuite/sim/cris/c/helloaout.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/sim/testsuite/sim/cris/ChangeLog b/sim/testsuite/sim/cris/ChangeLog index 5ff077c486d..e9444bd18d8 100644 --- a/sim/testsuite/sim/cris/ChangeLog +++ b/sim/testsuite/sim/cris/ChangeLog @@ -1,3 +1,8 @@ +2021-01-07 Mike Frysinger + + PR ld/13900 + * c/helloaout.c: Disable test + 2021-01-07 Mike Frysinger * c/c.exp [cris*-*-elf] (CFLAGS_FOR_TARGET): Add -sim. diff --git a/sim/testsuite/sim/cris/c/helloaout.c b/sim/testsuite/sim/cris/c/helloaout.c index 0f774593121..c71a658c18c 100644 --- a/sim/testsuite/sim/cris/c/helloaout.c +++ b/sim/testsuite/sim/cris/c/helloaout.c @@ -4,7 +4,11 @@ doesn't help. Adjust as needed to get a.out which says "pass". If necessary, move to the asm subdir. By design, it doesn't work with CRIS v32.) -#target: cris-*-elf + +NB: We'd rely on kfail, but that doesn't skip compilation, and that's where +the crash in ld happens to break the testcase. +#target: disabled-cris-*-elf +#kfail: ld/13900 cris-*-elf #cc: ldflags=-Wl,-mcrisaout\ -sim\ -Ttext=0 */ #include "hello.c" -- 2.30.2