This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/48611] [4.6/4.7 Regression] ICE: SIGSEGV in remap_eh_region_nr (tree-inline.c:1194) with -Os -fopenmp -fexceptions -fno-tree-ccp -fno-tree-copy-prop on basic code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48611

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-18 13:36:23 UTC ---
Created attachment 24030
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24030
gcc46-pr48611.patch

While the bug is most probably elsewhere, I wonder why
note_eh_region_may_contain_throw doesn't stop propagating on ERT_MUST_NOT_THROW
regions.  In my understanding no exception is ever propagated out of those
regions, the program would be terminated instead, so I wonder why we should be
trying to handle thrown exceptions in the outer regions.

The patch makes the ICE go away, as we don't needlessly try to handle
exceptions in the outer try {} finally {}.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]