[PATCH] Fix up handling of REG_EH_REGION notes in LRA (PR middle-end/69838)

Vladimir Makarov vmakarov@redhat.com
Fri Feb 19 16:17:00 GMT 2016


On 02/19/2016 10:08 AM, Jakub Jelinek wrote:
> Hi!
>
> For -fnon-call-exceptions, if an instruction with REG_EH_REGION note is
> reloaded, we should copy or move it to the instruction(s) corresponding to
> the original one that could throw.  reload1.c apparently does this, but LRA
> does not, so we can end up with REG_EH_REGION notes being dropped, or not
> present on insns that actually can throw etc.
>
> Fixed by calling the functions reload1.c does for this purpose.
>
> Bootstrapped/regtested on x86_64-linux (including Ada) and i686-linux
> (without Ada), and Dominik has kindly tested this on s390x-linux
> (presumably with Ada, but don't know for sure).  Ok for trunk?
>
>
Yes.  Thanks, Jakub.



More information about the Gcc-patches mailing list