When running a riscv(32|64)-elf-targeting compiler on a
x86_64-linux-gnu with valgrind-3.18.1, it prints a multi-line warning
about an unhandled syscall, but the test works if we ignore those
lines to avoid an excess errors failure.

I've thus arranged for relevant pieces of the valgrind warning to be
pruned.


for  gcc/testsuite/ChangeLog

        * gcc.target/riscv/pr122215.c: Prune valgrind unhandled
        syscall multi-line warning.
---
 gcc/testsuite/gcc.target/riscv/pr122215.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.target/riscv/pr122215.c 
b/gcc/testsuite/gcc.target/riscv/pr122215.c
index cdc1ed7c4e749..444d9d42a6027 100644
--- a/gcc/testsuite/gcc.target/riscv/pr122215.c
+++ b/gcc/testsuite/gcc.target/riscv/pr122215.c
@@ -2,6 +2,7 @@
 /* { dg-require-effective-target valgrind } */
 /* { dg-additional-files "sparseset.supp" } */
 /* { dg-options "-wrapper 
valgrind,-q,--exit-on-first-error=yes,--error-exitcode=1,--suppressions=${srcdir}/sparseset.supp"
 } */
+/* { dg-prune-output ".*(WARNING: unhandled.*syscall|own 
handler|README_MISSING_SYSCALL|Please report|valgrind.org).*" } */
 
 typedef signed int int32_t;
 typedef signed long int int64_t;

-- 
Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
More tolerance and less prejudice are key for inclusion and diversity.
Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to