aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2023-11-28 13:51:47 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2023-11-28 13:51:47 +0100
commitf5f885dd29846a7aa3e3551b74e2f8d68241e4a0 (patch)
tree2603cbe58298bd3e6150ff27561017c49e256cc8 /gcc/testsuite
parent19cc5857e2cb0fb7c637a35a956f902d44286c2d (diff)
downloadgcc-f5f885dd29846a7aa3e3551b74e2f8d68241e4a0.zip
gcc-f5f885dd29846a7aa3e3551b74e2f8d68241e4a0.tar.gz
gcc-f5f885dd29846a7aa3e3551b74e2f8d68241e4a0.tar.bz2
testsuite: Fix gcc.dg/pr111409.c on Solaris/SPARC with as
gcc.dg/pr111409.c FAILs on Solaris/SPARC with the native as: FAIL: gcc.dg/pr111409.c scan-assembler-times .section\\\\s+.debug_macro 1 Unlike most other ELF targets, that assembler requires the section name to be double-quoted. This patch allows for that. It also expects \t to separate .section directive and name like other similar tests, and escapes literal dots. Tested on sparc-sun-solaris2.11 (as and gas) and i386-pc-solaris2.11 (as and gas). 2023-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> gcc/testsuite: * gcc.dg/pr111409.c: Allow for " before .debug_macro. Quote literals dots.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.dg/pr111409.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr111409.c b/gcc/testsuite/gcc.dg/pr111409.c
index 1a79d81..82912c4 100644
--- a/gcc/testsuite/gcc.dg/pr111409.c
+++ b/gcc/testsuite/gcc.dg/pr111409.c
@@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-skip-if "split DWARF unsupported" { *-*-darwin* } } */
/* { dg-options "-gsplit-dwarf -g3 -dA" } */
-/* { dg-final { scan-assembler-times {.section\s+.debug_macro} 1 } } */
-/* { dg-final { scan-assembler-not {.byte\s+0x7\s*#\s*Import} } } */
+/* { dg-final { scan-assembler-times {\.section\t"?\.debug_macro} 1 } } */
+/* { dg-final { scan-assembler-not {\.byte\s+0x7\s*#\s*Import} } } */
#define foo 1