[binutils/f18] Allow more whitespace in ARM instructions. Resolves: #892261

Nicholas Clifton nickc at fedoraproject.org
Fri Jan 25 10:47:03 UTC 2013


commit f2ccd3a879ee5922098983c2e2fac50508cf02b0
Author: Nick Clifton <nickc at redhat.com>
Date:   Fri Jan 25 10:42:29 2013 +0000

    Allow more whitespace in ARM instructions.
    Resolves: #892261

 binutils-2.23.51.0.1-arm-whitespace.patch |   26 ++++++++++++++++++++++++++
 binutils.spec                             |    7 ++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/binutils-2.23.51.0.1-arm-whitespace.patch b/binutils-2.23.51.0.1-arm-whitespace.patch
new file mode 100644
index 0000000..ad401f8
--- /dev/null
+++ b/binutils-2.23.51.0.1-arm-whitespace.patch
@@ -0,0 +1,26 @@
+*** ../binutils-2.23.51.0.1.orig/gas/config/tc-arm.c	2013-01-25 10:22:50.082164710 +0000
+--- gas/config/tc-arm.c	2013-01-25 10:25:23.668311486 +0000
+*************** const char FLT_CHARS[] = "rRsSfFdDxXeEpP
+*** 872,877 ****
+--- 872,880 ----
+  static inline int
+  skip_past_char (char ** str, char c)
+  {
++   /* PR gas/14987: Allow for whitespace before the expected character.  */
++   skip_whitespace (*str);
++   
+    if (**str == c)
+      {
+        (*str)++;
+*************** parse_address_main (char **str, int i, i
+*** 5155,5160 ****
+--- 5158,5166 ----
+        return PARSE_OPERAND_SUCCESS;
+      }
+  
++   /* PR gas/14887: Allow for whitespace after the opening bracket.  */
++   skip_whitespace (p);
++ 
+    if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL)
+      {
+        inst.error = _(reg_expected_msgs[REG_TYPE_RN]);
diff --git a/binutils.spec b/binutils.spec
index cbaf767..6245297 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -17,7 +17,7 @@
 Summary: A GNU collection of binary utilities
 Name: %{?cross}binutils%{?_with_debug:-debug}
 Version: 2.23.51.0.1
-Release: 5%{?dist}
+Release: 6%{?dist}
 License: GPLv3+
 Group: Development/Tools
 URL: http://sources.redhat.com/binutils
@@ -45,6 +45,7 @@ Patch11: binutils-2.23.51.0.1-gold-keep.patch
 # Bugfixes for s390[x] IFUNC support
 Patch12: binutils-rh805974.patch
 Patch13: binutils-rh805107.patch
+Patch14: binutils-2.23.51.0.1-arm-whitespace.patch
 
 %define gold_arches %ix86 x86_64
 
@@ -151,6 +152,7 @@ using libelf instead of BFD.
 %patch11 -p0 -b .gold-keep~
 %patch12 -p1 
 %patch13 -p1 
+%patch14 -p0 -b .arm-whitespace~ 
 
 # We cannot run autotools as there is an exact requirement of autoconf-2.59.
 
@@ -449,6 +451,9 @@ exit 0
 %endif # %{isnative}
 
 %changelog
+* Fri Jan 24 2013 Nick Clifton<nickc at redhat.com> 2.23.51.0.1-6
+- Allow more whitespace in ARM instructions.  (#892261)
+
 * Wed Nov 7 2012 Jeff Law <law at redhat.com> 2.23.51.0.1-5
 - Fix segfault with local ifunc symbols on s390[x] (#805107).
 


More information about the scm-commits mailing list