[gnome-continuous-yocto/gnomeostree-3.14-dizzy] Add binutils patch for https://bugzilla.redhat.com/show_bug.cgi?id=1224187



commit c2153aaadab4c50b41d56e3aec2869cf238b5728
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Aug 17 11:31:04 2015 +0200

    Add binutils patch for https://bugzilla.redhat.com/show_bug.cgi?id=1224187

 meta/recipes-devtools/binutils/binutils-2.24.inc   |    1 +
 .../ac4eb736520174305bf6e691827f7473b858cff1.patch |   50 ++++++++++++++++++++
 2 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/meta/recipes-devtools/binutils/binutils-2.24.inc 
b/meta/recipes-devtools/binutils/binutils-2.24.inc
index 8f3216f..1a66ded 100644
--- a/meta/recipes-devtools/binutils/binutils-2.24.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.24.inc
@@ -32,6 +32,7 @@ SRC_URI = "\
      file://replace_macros_with_static_inline.patch \
      file://0001-Fix-MMIX-build-breakage-from-bfd_set_section_vma-cha.patch \
      file://binutils-uninitialised-warning.patch \
+     file://ac4eb736520174305bf6e691827f7473b858cff1.patch \
      "
 
 SRC_URI[md5sum] = "e0f71a7b2ddab0f8612336ac81d9636b"
diff --git a/meta/recipes-devtools/binutils/binutils/ac4eb736520174305bf6e691827f7473b858cff1.patch 
b/meta/recipes-devtools/binutils/binutils/ac4eb736520174305bf6e691827f7473b858cff1.patch
new file mode 100644
index 0000000..894f9c0
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/ac4eb736520174305bf6e691827f7473b858cff1.patch
@@ -0,0 +1,50 @@
+From ac4eb736520174305bf6e691827f7473b858cff1 Mon Sep 17 00:00:00 2001
+From: Alan Modra <amodra gmail com>
+Date: Fri, 12 Sep 2014 09:46:30 +0930
+Subject: [PATCH] Fix tc-i386.c -Werror=logical-not-parentheses error
+
+       * config/tc-i386.c (match_template): Remove redundant "!!" testing
+       single-bit bitfields.
+       (build_modrm_byte): Don't compare single-bit bitfields to "1".
+---
+ gas/config/tc-i386.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+--- a/gas/config/tc-i386.c
++++ b/gas/config/tc-i386.c
+@@ -4709,9 +4709,9 @@ match_template (void)
+              && !operand_types[0].bitfield.regymm
+              && !operand_types[0].bitfield.regzmm)
+             || (!operand_types[t->operands > 1].bitfield.regmmx
+-                && !!operand_types[t->operands > 1].bitfield.regxmm
+-                && !!operand_types[t->operands > 1].bitfield.regymm
+-                && !!operand_types[t->operands > 1].bitfield.regzmm))
++                && operand_types[t->operands > 1].bitfield.regxmm
++                && operand_types[t->operands > 1].bitfield.regymm
++                && operand_types[t->operands > 1].bitfield.regzmm))
+         && (t->base_opcode != 0x0fc7
+             || t->extension_opcode != 1 /* cmpxchg8b */))
+       continue;
+@@ -4726,7 +4726,7 @@ match_template (void)
+              && ((!operand_types[0].bitfield.regmmx
+                   && !operand_types[0].bitfield.regxmm)
+                  || (!operand_types[t->operands > 1].bitfield.regmmx
+-                     && !!operand_types[t->operands > 1].bitfield.regxmm)))
++                     && operand_types[t->operands > 1].bitfield.regxmm)))
+       continue;
+ 
+       /* Do not verify operands when there are none.  */
+@@ -6171,8 +6171,8 @@ build_modrm_byte (void)
+             op = i.tm.operand_types[vvvv];
+             op.bitfield.regmem = 0;
+             if ((dest + 1) >= i.operands
+-                || (op.bitfield.reg32 != 1
+-                    && !op.bitfield.reg64 != 1
++                || (!op.bitfield.reg32
++                    && op.bitfield.reg64
+                     && !operand_type_equal (&op, &regxmm)
+                     && !operand_type_equal (&op, &regymm)
+                     && !operand_type_equal (&op, &regzmm)
+-- 
+1.9.4
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]