librpc: do not attempt to compile if uclibc is not selected
[openwrt/openwrt.git] / toolchain / gcc / patches / 4.3.5 / 948-avr32_fix_reorg_opt_bug11763.patch
1 --- a/gcc/config/avr32/avr32.c
2 +++ b/gcc/config/avr32/avr32.c
3 @@ -6501,12 +6501,23 @@ avr32_reorg_optimization (void)
4 continue;
5
6 set = single_set (scan);
7 - if (set && rtx_equal_p (src_reg, SET_DEST (set)))
8 - {
9 - link = scan;
10 - break;
11 - }
12 -
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))))
18 + {
19 + if (rtx_equal_p (src_reg, SET_DEST (set)))
20 + {
21 + link = scan;
22 + break;
23 + }
24 + else
25 + {
26 + link = NULL_RTX;
27 + break;
28 + }
29 + }
30 }
31
32