Re: [PATCH] Fix bbpart handling of EH pads (PR rtl-optimization/85393)

2018-04-13 Thread Jakub Jelinek
On Fri, Apr 13, 2018 at 09:32:07PM +0200, Eric Botcazou wrote: > > This works nicely if the landing pad bb hasn't been really modified much, > > in particular it still needs to contain only the instructions emitted > > by expand_dw2_landing_pad_for_region function call and then an unconditional > >

Re: [PATCH] Fix bbpart handling of EH pads (PR rtl-optimization/85393)

2018-04-13 Thread Eric Botcazou
> This works nicely if the landing pad bb hasn't been really modified much, > in particular it still needs to contain only the instructions emitted > by expand_dw2_landing_pad_for_region function call and then an unconditional > jump or at least single successor and nothing else in the bb. How is

[PATCH] Fix bbpart handling of EH pads (PR rtl-optimization/85393)

2018-04-13 Thread Jakub Jelinek
Hi! As mentioned in the comments, the .gcc_except_table format doesn't allow the throwing region and corresponding landing pad to be in different partitions, because it uses landing_pad_symbol - the start of the partition in which the throwing region is and we don't generally have relocations for