------- Comment #17 from ebotcazou at gcc dot gnu dot org 2007-03-28 11:46 ------- > Don't remember what fixed comment #13. Possibly, a change just > made the issue latent.
OK, thanks. Here is what I needed on my 4.1 branch: Index: cfgexpand.c =================================================================== --- cfgexpand.c (revision 123291) +++ cfgexpand.c (working copy) @@ -1630,9 +1634,10 @@ tree_expand_cfg (void) /* We're done expanding trees to RTL. */ currently_expanding_to_rtl = 0; - /* Convert tree EH labels to RTL EH labels, and clean out any unreachable - EH regions. */ + /* Convert tree EH labels to RTL EH labels and zap the tree + EH table to avoid dangling references during GC. */ convert_from_eh_region_ranges (); + set_eh_throw_stmt_table (cfun, NULL); rebuild_jump_labels (get_insns ()); find_exception_handler_labels (); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24994