PATCH: sjlj exceptions

Jeffrey A Law
Tue Dec 5 18:52:00 GMT 2000

  In message <>you write:
  > This patch resolves to some extent the problems noted in these two postings
  > :
  > < > and
  > < >.  My investigation
  > revealed that the problem is only present when sjlj exceptions are used.
  > The memory expansion occured in the gcse pass and was a result of the
  > large number of edges present in functions using sjlj exceptions.
I believe if you look at Richard's recent changes to the SJLJ exception
handling code you'll find that we now build a better CFG (specifically we
don't have nearly as many useless edges).

For a testcase I'm dealing with right now it's drastically reduced both the
memory requirements and compile times.  To give you some idea, the test
takes > 40 minutes to compile without the patch and > 200M of memory
(I didn't bother waiting for it to complete, so I have no idea how long
it would take to finish or whether or not the peak memory usage would
increase).  After Richard's patch we're on the order of 7 minutes and
100M of memory.

There is one bug introduced by Richard's patch that I'll post a fix for


More information about the Gcc-bugs mailing list