This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Zap tree EH table once expanded to RTL
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 May 2008 11:06:36 +0200
- Subject: [PATCH] Zap tree EH table once expanded to RTL
Hi,
We have this patchlet in our tree for quite some time (it was initially aimed
at eliminating a GC problem in our 4.1 compiler) but I think it can be useful
on its own.
Tested on i586-suse-linux, OK for mainline?
2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
* cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
once finished.
--
Eric Botcazou
Index: cfgexpand.c
===================================================================
--- cfgexpand.c (revision 135525)
+++ cfgexpand.c (working copy)
@@ -1920,9 +1920,9 @@ 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. */
convert_from_eh_region_ranges ();
+ set_eh_throw_stmt_table (cfun, NULL);
rebuild_jump_labels (get_insns ());
find_exception_handler_labels ();