Patchwork [23/50] gcc_4.5.1: fix arm_bswapsi2.patch

login
register
mail settings
Submitter Saul Wold
Date July 20, 2011, 8:28 a.m.
Message ID <0c3f88376a18f789749965ce5fc60a718ac73020.1311150183.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/7985/
State New, archived
Headers show

Comments

Saul Wold - July 20, 2011, 8:28 a.m.
From: Ilya Yanok <yanok@emcraft.com>

Acoording to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44392
correct fix should be
TARGET_EITHER && (arm_arch6 || !optimize_size)
not
TARGET_EITHER && (arm_arch6 && !optimize_size)

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
 .../gcc/gcc-4.5.1/arm-bswapsi2.patch               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/arm-bswapsi2.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/arm-bswapsi2.patch
index 9b9f874..a7a6684 100644
--- a/meta/recipes-devtools/gcc/gcc-4.5.1/arm-bswapsi2.patch
+++ b/meta/recipes-devtools/gcc/gcc-4.5.1/arm-bswapsi2.patch
@@ -9,7 +9,7 @@  Index: gcc-4.5/gcc/config/arm/arm.md
    [(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)"
++"TARGET_EITHER && (arm_arch6 || !optimize_size)"
  "
    if (!arm_arch6)
      {