Skip to content

Commit 010af10

Browse files
testsuite: btf: Fix btf-datasec-1.c for RISC-V
Similar to 37e6564 ("testsuite/101269: fix testcase when used with -m32"), RISC-V needs to be told not to put symbols in the sdata/srodata/sbss sections. gcc/testsuite/ChangeLog * gcc.dg/debug/btf/btf-datasec-1.c: Don't use small data on RISC-V.
1 parent dc32901 commit 010af10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gcc/testsuite/gcc.dg/debug/btf/btf-datasec-1.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/* { dg-do compile ) */
1313
/* { dg-options "-O0 -gbtf -dA" } */
1414
/* { dg-options "-O0 -gbtf -dA -msdata=none" { target { { powerpc*-*-* } && ilp32 } } } */
15+
/* { dg-options "-O0 -gbtf -dA -msmall-data-limit=0" { target { riscv*-*-* } } } */
1516
/* { dg-options "-O0 -gbtf -dA -G0" { target { nios2-*-* } } } */
1617

1718
/* Check for two DATASEC entries with vlen 3, and one with vlen 1. */

0 commit comments

Comments
 (0)