diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-07-01 11:35:21 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-07-01 11:35:21 +0000 |
commit | 6d02667c07ba477bff9bd16a1dfc8db3b5940b65 (patch) | |
tree | 0693e987df7815a8cb637f9c3ee695ca66a84f02 /toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch | |
parent | 44756fe93c1e9e492bfe0d2a278859002c0d4946 (diff) | |
download | upstream-6d02667c07ba477bff9bd16a1dfc8db3b5940b65.tar.gz upstream-6d02667c07ba477bff9bd16a1dfc8db3b5940b65.tar.bz2 upstream-6d02667c07ba477bff9bd16a1dfc8db3b5940b65.zip |
add the latest avr32 toolchain patches (with additional fixes)
SVN-Revision: 27332
Diffstat (limited to 'toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch')
-rw-r--r-- | toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch b/toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch new file mode 100644 index 0000000000..2003e97ae0 --- /dev/null +++ b/toolchain/gcc/patches/4.4.5/931-avr32_disable_shifted_data_opt.patch @@ -0,0 +1,32 @@ +--- a/gcc/config/avr32/avr32.c ++++ b/gcc/config/avr32/avr32.c +@@ -6726,7 +6726,28 @@ avr32_reorg_optimization (void) + } + } + +- if (TARGET_MD_REORG_OPTIMIZATION && (optimize_size || (optimize > 0))) ++ /* Disabled this optimization since it has a bug */ ++ /* In the case where the data instruction the shifted insn gets folded ++ * into is a branch destination, this breaks, i.e. ++ * ++ * add r8, r10, r8 << 2 ++ * 1: ++ * ld.w r11, r8[0] ++ * ... ++ * mov r8, sp ++ * rjmp 1b ++ * ++ * gets folded to: ++ * ++ * 1: ++ * ld.w r11, r10[r8 << 2] ++ * ... ++ * mov r8, sp ++ * rjmp 1b ++ * ++ * which is clearly wrong.. ++ */ ++ if (0 && TARGET_MD_REORG_OPTIMIZATION && (optimize_size || (optimize > 0))) + { + + /* Scan through all insns looking for shifted add operations */ |