diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-02-16 15:26:08 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-02-16 15:26:08 +0000 |
commit | 667ac6c97025853f76a2f42ac259487249454247 (patch) | |
tree | c7e47a08a20ee3713bc4d1fb98aec20dbe6a42c1 /toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch | |
parent | 82608a62ad5947c346f6ee438b992288177ed97b (diff) | |
download | upstream-667ac6c97025853f76a2f42ac259487249454247.tar.gz upstream-667ac6c97025853f76a2f42ac259487249454247.tar.bz2 upstream-667ac6c97025853f76a2f42ac259487249454247.zip |
additional avr32 fixes
SVN-Revision: 25556
Diffstat (limited to 'toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch')
-rw-r--r-- | toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch b/toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch new file mode 100644 index 0000000000..6616640045 --- /dev/null +++ b/toolchain/gcc/patches/4.3.5/948-avr32_fix_reorg_opt_bug11763.patch @@ -0,0 +1,32 @@ +--- a/gcc/config/avr32/avr32.c ++++ b/gcc/config/avr32/avr32.c +@@ -6501,12 +6501,23 @@ avr32_reorg_optimization (void) + continue; + + set = single_set (scan); +- if (set && rtx_equal_p (src_reg, SET_DEST (set))) +- { +- link = scan; +- break; +- } +- ++ // Fix for bug #11763 : the following if condition ++ // has been modified and else part is included to ++ // set the link to NULL_RTX. ++ // if (set && rtx_equal_p (src_reg, SET_DEST (set))) ++ if (set && (REGNO(src_reg) == REGNO(SET_DEST(set)))) ++ { ++ if (rtx_equal_p (src_reg, SET_DEST (set))) ++ { ++ link = scan; ++ break; ++ } ++ else ++ { ++ link = NULL_RTX; ++ break; ++ } ++ } + } + + |