https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96820
Bug ID: 96820
Summary: ICE on x86_64-linux-gnu with `-m32` and from `-O0` to
`-O3` (internal compiler error: in
verify_sra_access_forest, at tree-sra.c:2358)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: cnsun at uwaterloo dot ca
Target Milestone: ---
$ gcc-trunk -m32 -O1 t.c
during GIMPLE pass: esra
t.c: In function ‘main’:
t.c:9:1: internal compiler error: in verify_sra_access_forest, at
tree-sra.c:2358
9 | }
| ^
0x733fa0 verify_sra_access_forest(access*)
/tmp/tmp.fduh3vs4H1-gcc-builder/gcc/gcc/tree-sra.c:2358
0xf43062 verify_all_sra_access_forests()
/tmp/tmp.fduh3vs4H1-gcc-builder/gcc/gcc/tree-sra.c:2409
0xf47094 analyze_all_variable_accesses
/tmp/tmp.fduh3vs4H1-gcc-builder/gcc/gcc/tree-sra.c:3456
0xf475c1 perform_intra_sra
/tmp/tmp.fduh3vs4H1-gcc-builder/gcc/gcc/tree-sra.c:4533
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$
$ cat t.c
struct a {
int b;
};
int main() {
struct a d[][6] = {4};
struct a e;
d[1955249013][1955249013] = e;
return e.b;
}
$
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.fduh3vs4H1-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.0.0 20200827 (experimental) [master revision
:1121fa585:3ae0cd94abc15e33dc06ca7a5f76f14b1d74129f] (GCC)