aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-05-22 10:06:10 +0200
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2024-05-22 10:06:10 +0200
commit6c97934fde7caf483ffc5079eb8ca4af04354a2c (patch)
tree03a1c542fdf5760e436a5c67ae9936deab5687fc /gcc
parentdbc9b45a3c2468ad134b3a9bd4961f7ae6bc1e67 (diff)
downloadgcc-6c97934fde7caf483ffc5079eb8ca4af04354a2c.zip
gcc-6c97934fde7caf483ffc5079eb8ca4af04354a2c.tar.gz
gcc-6c97934fde7caf483ffc5079eb8ca4af04354a2c.tar.bz2
testsuite: Allow for non-SECTION_MERGE systems in gcc.dg/pr115066.c [PR115066]
gcc.dg/pr115066.c currently FAILs on Solaris/SPARC with the native as: FAIL: gcc.dg/pr115066.c scan-assembler \\\\.byte\\\\t0xb\\\\t# Define macro strx Instead of the expected .byte 0xb ! Define macro strx the assembler output contains .byte 0x1 ! Define macro Apparently this happens because the Solaris as/ld combo doesn't support SHF_MERGE. While I initially meant to just skip the test on sparc*-*-solaris2* && !gas, Tom suggested to allow for both forms instead, which is what his patch does. Tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11 (as and gas each) and x86_64-pc-linux-gnu. 2024-05-21 Tom de Vries <tdevries@suse.de> gcc/testsuite: PR debug/115066 * gcc.dg/pr115066.c (scan-assembler): Allow for alternative form of Define macro.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr115066.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/pr115066.c b/gcc/testsuite/gcc.dg/pr115066.c
index 780767a..aadc490 100644
--- a/gcc/testsuite/gcc.dg/pr115066.c
+++ b/gcc/testsuite/gcc.dg/pr115066.c
@@ -3,6 +3,6 @@
/* { 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[^\n\r]* Define macro strp} } } */
-/* { dg-final { scan-assembler {\.byte\t0xb\t[^\n\r]* Define macro strx} } } */
+/* { dg-final { scan-assembler {\.byte\t0xb\t[^\n\r]* Define macro strx|\.byte\t0x1\t[^\n\r]* Define macro} } } */
#define foo 1