From: Iain Sandoe Date: Sat, 13 Jan 2024 12:49:28 +0000 (+0000) Subject: testsuite, jit: Handle whitespace in test-link-section-assembler.c. X-Git-Tag: releases/gcc-13.3.0~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b17c87414f0caa00b7b799258db91b1251e406c;p=thirdparty%2Fgcc.git testsuite, jit: Handle whitespace in test-link-section-assembler.c. Darwin has a different .section directive that has more fields and uses different whitespace. Amend the whitespace in the scan-asm to be more flexible. gcc/testsuite/ChangeLog: * jit.dg/test-link-section-assembler.c: Accept any whitespace between the .section directive and its arguments. Signed-off-by: Iain Sandoe (cherry picked from commit 2b0abfd3f8dbe3e9af79bb6bdc06d727d36f1946) --- diff --git a/gcc/testsuite/jit.dg/test-link-section-assembler.c b/gcc/testsuite/jit.dg/test-link-section-assembler.c index a90b00e9a823..a78e9fd26eff 100644 --- a/gcc/testsuite/jit.dg/test-link-section-assembler.c +++ b/gcc/testsuite/jit.dg/test-link-section-assembler.c @@ -34,4 +34,4 @@ create_code (gcc_jit_context *ctxt, void *user_data) } /* { dg-final { jit-verify-output-file-was-created "" } } */ -/* { dg-final { jit-verify-assembler-output ".section .my_section" } } */ +/* { dg-final { jit-verify-assembler-output ".section\\s.my_section" } } */