https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124101
Bug ID: 124101
Summary: XFAIL of gcc.dg/array-quals-1.c is now XPASS on mingw
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: nightstrike at gmail dot com
Target Milestone: ---
Created attachment 63669
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63669&action=edit
patch to remove XFAIL and fix remaining tests
The testcase
https://gcc.gnu.org/cgit/gcc/tree/gcc/testsuite/gcc.dg/array-quals-1.c was
XFAIL'd in r134659 (r0-87000-g22b98f356efeed60cb90d5be33f613dcf6e2acff).
Through bisecting, it started to pass after r189254
(r0-117659-g463d5aa029d128de82fac1bfd85bd10376673808). The XFAIL can now be
removed.
However, all of the remaining tests fail, because commit
r11-5027-g8270a7238ba1b535cc81848ef026d30e9d96447f added individual tests on
each line that do not include a check for the PE/COFF readonly section name,
.rdata. The attached example patch removes the xfail and adds rdata to a
section search, based on the following asm output:
.file "array-quals-1.c"
.text
.section .rdata,"dr"
.align 8
a:
...etc.
Going forward, it would be nice if there was an abstraction for all of the
possible read only section names, because this isn't the first test we fixed
for this breakage.