https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94717
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:cb76fcd7fb4a4f1e4d1688deca87969124f16fef commit r10-7926-gcb76fcd7fb4a4f1e4d1688deca87969124f16fef Author: Eric Botcazou <ebotca...@gcc.gnu.org> Date: Thu Apr 23 22:25:04 2020 +0200 Fix segfault with -O2 -fnon-call-exceptions -ftracer The GIMPLE SSA store merging pass blows up when it is rewriting the stores because it didn't realize that they don't belong to the same EH region. Fixed by refusing to merge them. PR tree-optimization/94717 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one of the stores doesn't have the same landing pad number as the first. (coalesce_immediate_stores): Do not try to coalesce the store using bswap if it doesn't have the same landing pad number as the first.