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/40585] [4.3/4.4/4.5 Regression] tracer duplicates blocks w/o adjusting EH tree



------- 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


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