diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-06-22 08:43:28 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-06-22 08:43:28 -0700 |
commit | 89f404095309d9ff8a54e2d1c75baba21b845de1 (patch) | |
tree | 213f37d1df9ff0891fb0a2d5e9934af8b7de1a8b /recipes/gcc/gcc-4.5/arm-bswapsi2.patch | |
parent | 978dee15134ae637dbe37f28ed684c246956f5a1 (diff) |
gcc-4.5: Fix the bswapsi libgcc infinite loop at -Os
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc/gcc-4.5/arm-bswapsi2.patch')
-rw-r--r-- | recipes/gcc/gcc-4.5/arm-bswapsi2.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-4.5/arm-bswapsi2.patch b/recipes/gcc/gcc-4.5/arm-bswapsi2.patch new file mode 100644 index 0000000000..7ac61a6d63 --- /dev/null +++ b/recipes/gcc/gcc-4.5/arm-bswapsi2.patch @@ -0,0 +1,13 @@ +Index: gcc-4.5/gcc/config/arm/arm.md +=================================================================== +--- gcc-4.5.orig/gcc/config/arm/arm.md 2010-06-17 09:13:07.000000000 -0700 ++++ gcc-4.5/gcc/config/arm/arm.md 2010-06-22 08:08:45.397212002 -0700 +@@ -11267,7 +11267,7 @@ + (define_expand "bswapsi2" + [(set (match_operand:SI 0 "s_register_operand" "=r") + (bswap:SI (match_operand:SI 1 "s_register_operand" "r")))] +-"TARGET_EITHER" ++"TARGET_EITHER && (arm_arch6 && !optimize_size)" + " + if (!arm_arch6) + { |