]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, jit: Handle whitespace in test-link-section-assembler.c.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 13 Jan 2024 12:49:28 +0000 (12:49 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 20 Apr 2024 14:43:03 +0000 (15:43 +0100)
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 <iain@sandoe.co.uk>
(cherry picked from commit 2b0abfd3f8dbe3e9af79bb6bdc06d727d36f1946)

gcc/testsuite/jit.dg/test-link-section-assembler.c

index a90b00e9a823162ea22376039af9d3c35a4c0b68..a78e9fd26effddac601d05f84427ce555e898e51 100644 (file)
@@ -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" } } */