[Bug tree-optimization/94224] [10 Regression] ICE: SIGSEGV in output_merged_store (gimple-ssa-store-merging.c:4304) with -O2 -fnon-call-exceptions testcase.C
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 20 08:34:20 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94224
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:4119cd693d27e9dd87c547de75283edd45bf6dce
commit r10-7287-g4119cd693d27e9dd87c547de75283edd45bf6dce
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Mar 20 09:33:38 2020 +0100
store-merging: Fix up -fnon-call-exceptions handling [PR94224]
When we are adding a single store into a store group, we are already
checking that store->lp_nr matches, but we have also code to add further
INTEGER_CST stores into the group right away if the ordering requires that
either we put there all or none from a certain set of stores. And in those
cases we weren't doing these lp_nr checks, which means we could end up with
stores with different lp_nr in the same group, which then ICEs during
output_merged_store.
2020-03-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/94224
* gimple-ssa-store-merging.c
(imm_store_chain_info::coalesce_immediate): Don't consider
overlapping
or adjacent INTEGER_CST rhs_code stores as mergeable if they have
different lp_nr.
* g++.dg/tree-ssa/pr94224.C: New test.
More information about the Gcc-bugs
mailing list