[PATCH] Fix RTL checking ICE during LRA remove_scratches (PR middle-end/70326)

Jeff Law law@redhat.com
Mon Mar 21 20:50:00 GMT 2016


On 03/21/2016 02:19 PM, Jakub Jelinek wrote:
> Hi!
>
> An instruction with scratches is deleted during LRA inheritance,
> and we ICE because restore_scratches wants to query its
> lra_get_insn_recog_data even when it is a NOTE, but insn_extract
> doesn't work on notes.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
>
> 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR middle-end/70326
> 	* lra.c (restore_scratches): Ignore deleted insns.
>
> 	* gcc.dg/pr70326.c: New test.
OK.
jeff



More information about the Gcc-patches mailing list