This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/40585] [4.3/4.4/4.5 Regression] tracer duplicates blocks w/o adjusting EH tree
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2009 10:54:08 -0000
- Subject: [Bug tree-optimization/40585] [4.3/4.4/4.5 Regression] tracer duplicates blocks w/o adjusting EH tree
- References: <bug-40585-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenther at suse dot de 2009-07-01 10:54 -------
Subject: Re: [4.3/4.4/4.5 Regression] tracer
duplicates blocks w/o adjusting EH tree
On Wed, 1 Jul 2009, hubicka at ucw dot cz wrote:
> ------- Comment #4 from hubicka at ucw dot cz 2009-07-01 10:47 -------
> Subject: Re: [4.3/4.4/4.5 Regression] tracer duplicates blocks w/o adjusting
> EH tree
>
> Hi,
> the following patch should prevent tracer from copying resx. It is
> remarkably ugly I need to unconstify all the copy_bb_p predicates, so
> perhaps I will look into fixing the RTL expanders to allow multiple RESX
> blocks instead.
Less ugly would be to 'inline' gsi_last_bb by using
gimple_seq seq = bb_seq (bb);
gimple_seq_node last = gimple_seq_last (seq);
if (last && gimple_code (last->stmt) == GIMPLE_RESX)
...
but yes, for trunk allowing mutliple RESX works for me as well.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40585