[gcc r15-487] [testsuite] Fix gcc.dg/pr115066.c fail on aarch64

Tom de Vries vries@gcc.gnu.org
Tue May 14 14:38:59 GMT 2024


https://gcc.gnu.org/g:c1356e8cc9a8c869ab936c927b1812b4691265b6

commit r15-487-gc1356e8cc9a8c869ab936c927b1812b4691265b6
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue May 14 15:26:39 2024 +0200

    [testsuite] Fix gcc.dg/pr115066.c fail on aarch64
    
    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.

Diff:
---
 gcc/testsuite/gcc.dg/pr115066.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/pr115066.c b/gcc/testsuite/gcc.dg/pr115066.c
index 645757df2092..780767ac2952 100644
--- a/gcc/testsuite/gcc.dg/pr115066.c
+++ b/gcc/testsuite/gcc.dg/pr115066.c
@@ -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


More information about the Gcc-cvs mailing list