https://gcc.gnu.org/g:b8b82bb05c10544da05cd0d3d39e6bc3763a8d9f
commit r15-572-gb8b82bb05c10544da05cd0d3d39e6bc3763a8d9f Author: Christoph Müllner <christoph.muell...@vrull.eu> Date: Thu May 16 09:53:47 2024 +0200 RISC-V: testsuite: Drop march-string in cmpmemsi/cpymemsi tests The tests cmpmemsi-1.c and cpymemsi-1.c are execution ("dg-do run") tests, which does not have any restrictions for the enabled extensions. Further, no other listed options are required. Let's drop the options, so that the test can also be executed on non-f and non-d targets. However, we need to set options to the defaults without '-ansi', because the included test file uses the 'asm' keyword, which is not part of ANSI C. gcc/testsuite/ChangeLog: * gcc.target/riscv/cmpmemsi-1.c: Drop options. * gcc.target/riscv/cpymemsi-1.c: Likewise. Signed-off-by: Christoph Müllner <christoph.muell...@vrull.eu> Diff: --- gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c | 3 +-- gcc/testsuite/gcc.target/riscv/cpymemsi-1.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c b/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c index d7e0bc474073..698f27d89fbf 100644 --- a/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c +++ b/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c @@ -1,6 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-march=rv32gc_zbb -save-temps -g0 -fno-lto" { target { rv32 } } } */ -/* { dg-options "-march=rv64gc_zbb -save-temps -g0 -fno-lto" { target { rv64 } } } */ +/* { dg-options "-pedantic-errors" } */ /* { dg-timeout-factor 2 } */ #include "../../gcc.dg/memcmp-1.c" diff --git a/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c b/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c index 983b564ccaf7..30e9f119bedc 100644 --- a/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c +++ b/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c @@ -1,7 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-march=rv32gc -save-temps -g0 -fno-lto" { target { rv32 } } } */ -/* { dg-options "-march=rv64gc -save-temps -g0 -fno-lto" { target { rv64 } } } */ -/* { dg-additional-options "-DRUN_FRACTION=11" { target simulator } } */ +/* { dg-options "-pedantic-errors" } */ /* { dg-timeout-factor 2 } */ #include "../../gcc.dg/memcmp-1.c"