]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] Fix gcc.dg/pr115066.c fail on aarch64
authorTom de Vries <tdevries@suse.de>
Tue, 14 May 2024 13:26:39 +0000 (15:26 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 14 May 2024 14:39:28 +0000 (16:39 +0200)
On aarch64, I get this failure:
...
FAIL: gcc.dg/pr115066.c scan-assembler \\.byte\\t0xb\\t# Define macro strx
...

This happens because we expect to match:
...
        .byte   0xb     # Define macro strx
...
but instead we get:
...
        .byte   0xb     // Define macro strx
...

Fix this by not explicitly matching the comment marker.

Tested on aarch64 and x86_64.

gcc/testsuite/ChangeLog:

2024-05-14  Tom de Vries  <tdevries@suse.de>

* gcc.dg/pr115066.c: Don't match comment marker.

gcc/testsuite/gcc.dg/pr115066.c

index 645757df209283f0b0a0e9fb1ad2bfe2c1cad25c..780767ac29529a2d55e91a8849c13325b79eecdc 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-skip-if "split DWARF unsupported" { hppa*-*-hpux* powerpc*-ibm-aix* *-*-darwin* } } */
 /* { dg-options "-gsplit-dwarf -g3 -dA -gdwarf-4" } */
 /* { dg-final { scan-assembler-times {\.section\t"?\.debug_macro} 1 } } */
-/* { dg-final { scan-assembler-not {\.byte\t0x5\t# Define macro strp} } } */
-/* { dg-final { scan-assembler {\.byte\t0xb\t# Define macro strx} } } */
+/* { dg-final { scan-assembler-not {\.byte\t0x5\t[^\n\r]* Define macro strp} } } */
+/* { dg-final { scan-assembler {\.byte\t0xb\t[^\n\r]* Define macro strx} } } */
 
 #define foo 1