]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/gcc.dg/debug/btf/btf-datasec-1.c: Handle leading-underscore
authorHans-Peter Nilsson <hp@axis.com>
Thu, 4 Apr 2024 23:36:54 +0000 (01:36 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 5 Apr 2024 01:54:58 +0000 (03:54 +0200)
I noticed my autotester for cris-elf flagging this as a regression.

* gcc.dg/debug/btf/btf-datasec-1.c: Adjust pattern for targets with
symbols having a leading underscore.

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

index 782216d3cb12df8542bd04d6f2bb6c7e6d1f62c6..c8ebe5d07ca061fcb8fee1adbc4cce5e5ccabdb7 100644 (file)
@@ -20,7 +20,7 @@
 /* { dg-final { scan-assembler-times "0xf000001\[\t \]+\[^\n\]*btt_info" 1 } } */
 
 /* The offset entry for each variable in a DATSEC should contain a label.  */
-/* { dg-final { scan-assembler-times "(?:(?:\\.4byte|\\.long|data4\\.ua|\\.ualong|\\.uaword|\\.dword|long|dc\\.l|\\.word)\[\t \]|\\.vbyte\t4,\[\t \]?)\[a-e\]\[\t \]+\[^\n\]*bts_offset" 5 } } */
+/* { dg-final { scan-assembler-times "(?:(?:\\.4byte|\\.long|data4\\.ua|\\.ualong|\\.uaword|\\.dword|long|dc\\.l|\\.word)\[\t \]|\\.vbyte\t4,\[\t \]?)_?\[a-e\]\[\t \]+\[^\n\]*bts_offset" 5 } } */
 /* { dg-final { scan-assembler-times "my_cstruct\[\t \]+\[^\n\]*bts_offset" 1 } } */
 /* { dg-final { scan-assembler-times "bigarr\[\t \]+\[^\n\]*bts_offset" 1 } } */