https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119789

            Bug ID: 119789
           Summary: FAIL: gcc.dg/20021029-1.c on Windows
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nightstrike at gmail dot com
  Target Milestone: ---

This test fails on at least x86_64-w64-mingw32:

/* { dg-final { scan-assembler-symbol-section {^_?ar}
{^\.(const|rodata)|\[RO\]} } } */

with the following message:

FAIL: gcc.dg/20021029-1.c scan-assembler-symbol-section symbol ^_?ar (found
ar.0) has section ^\\.(const|rodata)|\\[RO\\] (found .rdata)

The asm that the test generates is:
        .file   "20021029-1.c"
        .text
        .p2align 4
        .globl  foo
        .def    foo;    .scl    2;      .type   32;     .endef
        .seh_proc       foo
foo:
        .seh_endprologue
        leaq    ar.0(%rip), %rax
        leaq    .L2(%rip), %rdx
        movslq  %ecx, %rcx
        movslq  (%rax,%rcx,4), %rax
        addq    %rdx, %rax
        jmp     *%rax
        .p2align 4,,10
        .p2align 3
.L2:
        movl    $1, %eax
        ret
        .p2align 4,,10
        .p2align 3
.L4:
        movl    $2, %eax
        ret
        .seh_endproc
        .section .rdata,"dr"
        .align 8
ar.0:
        .long   0
        .long   .L4-.L2


If I change the test to search for "(const|rodata|rdata)" instead of just
"(const|rodata)", then it passes, but I am unclear if that is the right thing
to do or not.

Reply via email to