Message ID | 20161130120254.GP3541@tucnak.redhat.com |
---|---|
State | New |
Headers | show |
On 11/30/2016 01:02 PM, Jakub Jelinek wrote: > I've discovered today that RTL sharing verification has been disabled for > the last 3.5 years. My --enable-checking=yes,rtl,extra bootstraps on > x86_64-linux and i686-linux revealed only two bugs. Ok for both patches. Bernd
--- gcc/ira.c.jj 2016-11-18 18:11:24.000000000 +0100 +++ gcc/ira.c 2016-11-30 10:53:48.061704159 +0100 @@ -2647,7 +2647,7 @@ ira_update_equiv_info_by_shuffle_insn (i } if (find_reg_note (insn, REG_EQUIV, x) == NULL_RTX) { - note = set_unique_reg_note (insn, REG_EQUIV, x); + note = set_unique_reg_note (insn, REG_EQUIV, copy_rtx (x)); gcc_assert (note != NULL_RTX); if (internal_flag_ira_verbose > 3 && ira_dump_file != NULL) {