https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89084
Bug ID: 89084 Summary: [9 Regression] ICE in get_partitioning_class, at symtab.c:1892 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-checking, ice-on-valid-code, lto Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: marxin at gcc dot gnu.org Target Milestone: --- gfortran-9.0.0-alpha20190127 snapshot (r268327) ICEs when compiling the following testcase extracted from gcc/testsuite/gfortran.dg/block_16.f08 w/ -flto: MODULE sparse_matrix_csx_benchmark_utils IMPLICIT NONE CONTAINS SUBROUTINE sparse_matrix_csr_benchmark ( ) WRITE(*,*) 'At*x: t' block integer, dimension(1), parameter :: idxs=[1] integer :: i, idx do i = 1, size(idxs) idx = idxs(i) enddo end block END SUBROUTINE sparse_matrix_csr_benchmark END MODULE sparse_matrix_csx_benchmark_utils % powerpc-e300c3-linux-gnu-gfortran-9.0.0-alpha20190127 -flto -c cgze3e1i.f08 during IPA pass: fnsummary cgze3e1i.f08:13: internal compiler error: in get_partitioning_class, at symtab.c:1892 13 | END SUBROUTINE sparse_matrix_csr_benchmark | 0x5a6e79 symtab_node::get_partitioning_class() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/symtab.c:1892 0xc3c5b5 lto_output_varpool_node /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/lto-cgraph.c:618 0xc3c5b5 output_symtab() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/lto-cgraph.c:981 0xc4e0d4 lto_output() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/lto-streamer-out.c:2476 0xcc26fe write_lto /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/passes.c:2593 0xcc6090 ipa_write_summaries_1 /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/passes.c:2657 0xcc6090 ipa_write_summaries() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/passes.c:2720 0x98211c ipa_passes /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/cgraphunit.c:2529 0x98211c symbol_table::compile() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/cgraphunit.c:2617 0x984ad8 symbol_table::finalize_compilation_unit() /var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-9.0.0_alpha20190127/work/gcc-9-20190127/gcc/cgraphunit.c:2862 (While my target here is powerpc, the ICE is not target-specific.)