Allow more whitespace in ARM instructions.

Resolves: #892261
This commit is contained in:
Nick Clifton 2013-01-21 11:04:08 +00:00
parent 4c0c3e880e
commit 00f0993c1e
2 changed files with 33 additions and 1 deletions

View File

@ -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]);

View File

@ -17,7 +17,7 @@
Summary: A GNU collection of binary utilities Summary: A GNU collection of binary utilities
Name: %{?cross}binutils%{?_with_debug:-debug} Name: %{?cross}binutils%{?_with_debug:-debug}
Version: 2.23.51.0.8 Version: 2.23.51.0.8
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv3+ License: GPLv3+
Group: Development/Tools Group: Development/Tools
URL: http://sources.redhat.com/binutils 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 Patch09: binutils-2.22.52.0.1-export-demangle.h.patch
# Disable checks that config.h has been included before system headers. BZ #845084 # 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 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) Provides: bundled(libiberty)
@ -146,6 +148,7 @@ using libelf instead of BFD.
%endif %endif
%patch09 -p0 -b .export-demangle-h~ %patch09 -p0 -b .export-demangle-h~
%patch10 -p0 -b .no-config-h-check~ %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. # We cannot run autotools as there is an exact requirement of autoconf-2.59.
@ -445,6 +448,9 @@ exit 0
%endif # %{isnative} %endif # %{isnative}
%changelog %changelog
* Mon Jan 21 2013 Nick Clifton <nickc@redhat.com> - 2.23.51.0.8-4
- Allow more whitespace in ARM instructions. (#892261)
* Tue Jan 15 2013 Patsy Franklin <pfrankli@redhat.com> - 2.23.51.0.8-3 * Tue Jan 15 2013 Patsy Franklin <pfrankli@redhat.com> - 2.23.51.0.8-3
- Add bc to BuildRequires when running the testsuite. (#895321) - Add bc to BuildRequires when running the testsuite. (#895321)