aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-07 01:57:35 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-07 12:22:14 -0500
commite6c1dbbfe8bed2b9396f74e3594701c8abe875ad (patch)
tree1d533cb00d02705619baf95fd473108a3c20579e
parentsim: cris: use -sim with C tests for cris-elf targets (diff)
downloadbinutils-gdb-e6c1dbbfe8bed2b9396f74e3594701c8abe875ad.tar.gz
binutils-gdb-e6c1dbbfe8bed2b9396f74e3594701c8abe875ad.tar.bz2
binutils-gdb-e6c1dbbfe8bed2b9396f74e3594701c8abe875ad.zip
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.
-rw-r--r--sim/testsuite/sim/cris/ChangeLog5
-rw-r--r--sim/testsuite/sim/cris/c/helloaout.c6
2 files changed, 10 insertions, 1 deletions
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,5 +1,10 @@
2021-01-07 Mike Frysinger <vapier@gentoo.org>
+ PR ld/13900
+ * c/helloaout.c: Disable test
+
+2021-01-07 Mike Frysinger <vapier@gentoo.org>
+
* c/c.exp [cris*-*-elf] (CFLAGS_FOR_TARGET): Add -sim.
2021-01-07 Mike Frysinger <vapier@gentoo.org>
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"