]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: fix an obvious build error
authorVineet Gupta <vineetg@rivosinc.com>
Tue, 20 May 2025 21:15:53 +0000 (14:15 -0700)
committerVineet Gupta <vineetg@rivosinc.com>
Tue, 10 Jun 2025 20:42:23 +0000 (13:42 -0700)
For a non-multilib build, I see following errors.

| FAIL: gcc.target/riscv/rvv/vtype-call-clobbered.c (test for excess errors)
| Excess errors:
| TC-INSTxyz/sysroot/usr/include/gnu/stubs.h:14:11: fatal error: gnu/stubs-lp64.h: No such file or directory compilation terminated.

The test selects non default ABI lp64 (vs. lp64d) for no real reason.
Fix that.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vtype-call-clobbered.c: Fix -mabi.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
gcc/testsuite/gcc.target/riscv/rvv/vtype-call-clobbered.c

index be9f312aa5085ef2399d1e13182e6d5fd136aa9d..78c8a4af81663cd23e21d1fd3b5466c01580d366 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-march=rv64gcv -mabi=lp64 -O2" } */
+/* { dg-options "-march=rv64gcv -mabi=lp64d -O2" } */
 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */
 
 #include "riscv_vector.h"