1 --- a/gcc/config/avr32/avr32.c
2 +++ b/gcc/config/avr32/avr32.c
3 @@ -6501,12 +6501,23 @@ avr32_reorg_optimization (void)
6 set = single_set (scan);
7 - if (set && rtx_equal_p (src_reg, SET_DEST (set)))
13 + // Fix for bug #11763 : the following if condition
14 + // has been modified and else part is included to
15 + // set the link to NULL_RTX.
16 + // if (set && rtx_equal_p (src_reg, SET_DEST (set)))
17 + if (set && (REGNO(src_reg) == REGNO(SET_DEST(set))))
19 + if (rtx_equal_p (src_reg, SET_DEST (set)))