]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/101269: fix testcase when used with -m32
authorIndu Bhagat <indu.bhagat@oracle.com>
Fri, 9 Jul 2021 16:03:08 +0000 (09:03 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Fri, 9 Jul 2021 16:09:01 +0000 (09:09 -0700)
PR testsuite/101269 - new test case gcc.dg/debug/btf/btf-datasec-1.c
fails with its introduction in r12-1852

BTF datasec records for .rodata/.data are expected for now for all targets.
For powerpc based targets, use -msdata=none when ilp32 is enabled.

2021-07-09  Indu Bhagat  <indu.bhagat@oracle.com>

gcc/testsuite/ChangeLog:

PR testsuite/101269
* gcc.dg/debug/btf/btf-datasec-1.c: Force -msdata=none with ilp32 for
powerpc based targets.

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

index 88ae4c4edfd940eabd8f264af95fa24431135e12..f809d9347cfdf9057f4a41c6051306609d9e7b02 100644 (file)
@@ -11,6 +11,7 @@
 
 /* { dg-do compile )  */
 /* { dg-options "-O0 -gbtf -dA" } */
+/* { dg-options "-O0 -gbtf -dA -msdata=none" { target { { powerpc*-*-* } && ilp32 } } } */
 
 /* Check for two DATASEC entries with vlen 3, and one with vlen 1.  */
 /* { dg-final { scan-assembler-times "0xf000003\[\t \]+\[^\n\]*btt_info" 2 } } */