From 00f0993c1ede201f9cabf19a0f718b5ba489fd1d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 21 Jan 2013 11:04:08 +0000 Subject: [PATCH] Allow more whitespace in ARM instructions. Resolves: #892261 --- binutils-2.23.51.0.8-arm-whitespace.patch | 26 +++++++++++++++++++++++ binutils.spec | 8 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 binutils-2.23.51.0.8-arm-whitespace.patch diff --git a/binutils-2.23.51.0.8-arm-whitespace.patch b/binutils-2.23.51.0.8-arm-whitespace.patch new file mode 100644 index 0000000..0dd504a --- /dev/null +++ b/binutils-2.23.51.0.8-arm-whitespace.patch @@ -0,0 +1,26 @@ +*** ../binutils-2.23.51.0.8.orig/gas/config/tc-arm.c 2013-01-21 10:21:58.492233640 +0000 +--- gas/config/tc-arm.c 2013-01-21 10:23:21.640318334 +0000 +*************** const char FLT_CHARS[] = "rRsSfFdDxXeEpP +*** 885,890 **** +--- 885,893 ---- + 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 +*** 5168,5173 **** +--- 5171,5179 ---- + 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 b90f665..a4a936a 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.8 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ Group: Development/Tools URL: http://sources.redhat.com/binutils @@ -40,6 +40,8 @@ Patch08: binutils-2.22.52.0.1-relro-on-by-default.patch Patch09: binutils-2.22.52.0.1-export-demangle.h.patch # Disable checks that config.h has been included before system headers. BZ #845084 Patch10: binutils-2.22.52.0.4-no-config-h-check.patch +# Allow more whitespace in ARM assembler instructions. +Patch11: binutils-2.23.51.0.8-arm-whitespace.patch Provides: bundled(libiberty) @@ -146,6 +148,7 @@ using libelf instead of BFD. %endif %patch09 -p0 -b .export-demangle-h~ %patch10 -p0 -b .no-config-h-check~ +%patch11 -p0 -b .arm-whitespace~ # We cannot run autotools as there is an exact requirement of autoconf-2.59. @@ -445,6 +448,9 @@ exit 0 %endif # %{isnative} %changelog +* Mon Jan 21 2013 Nick Clifton - 2.23.51.0.8-4 +- Allow more whitespace in ARM instructions. (#892261) + * Tue Jan 15 2013 Patsy Franklin - 2.23.51.0.8-3 - Add bc to BuildRequires when running the testsuite. (#895321)