]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/
authorRoland McGrath <roland@gnu.org>
Mon, 24 Jun 2013 23:36:17 +0000 (23:36 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 24 Jun 2013 23:36:17 +0000 (23:36 +0000)
PR gas/14887
* config/tc-arm.c (skip_past_char): Skip whitespace before the
anticipated character.
* config/tc-arm.c (parse_address_main): Delete skip of whitespace
here as it is no longer needed.

gas/testsuite/
PR gas/14887
* gas/arm/neon-ldst-es.s: Add more whitespace.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/neon-ldst-es.s

index 4e8cf7380efb3b013f6390f608820456c1960fd8..0538db8948a82f2e41394fe2c39479b3ad58a1ff 100644 (file)
@@ -1,3 +1,11 @@
+2013-01-07  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/14887
+       * config/tc-arm.c (skip_past_char): Skip whitespace before the
+       anticipated character.
+       * config/tc-arm.c (parse_address_main): Delete skip of whitespace
+       here as it is no longer needed.
+
 2013-01-02  Nick Clifton  <nickc@redhat.com>
 
        PR gas/14987
index 7ec4f4c981a99e60c5ec36b90ab4e8f269508758..ef38e445dd104d55d3ef947a69e4f3e4a7d4a9ea 100644 (file)
@@ -886,6 +886,9 @@ const char FLT_CHARS[] = "rRsSfFdDxXeEpP";
 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)++;
@@ -5173,6 +5176,9 @@ parse_address_main (char **str, int i, int group_relocations,
       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]);
@@ -5296,9 +5302,6 @@ parse_address_main (char **str, int i, int group_relocations,
        return result;
     }
 
-  /* PR gas/14987: Allow for whitespace before the closing bracket.  */
-  skip_whitespace (p);
-
   if (skip_past_char (&p, ']') == FAIL)
     {
       inst.error = _("']' expected");
index 1fbf0d9d19002f5b8f2014a547e5e03e8c3fa3b1..0bd0ac9bf3813d9655fe67bcc63e906ef87b4178 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-07  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/14887
+       * gas/arm/neon-ldst-es.s: Add more whitespace.
+
 2013-01-02  Nick Clifton  <nickc@redhat.com>
 
        PR gas/14987
index ea7de078ee8b4de804ec8ad5457c311a49e87e2f..79f4b0cdd3de1fbed52e844a928f0f497b0619df 100644 (file)
@@ -58,5 +58,5 @@
        vld4.32 {q1-q2},[r7]
        vld4.32 {q14-q15},[r7]
 
-       @ PR 14987: Allow for whitespace before the closing bracket.
-       vld1.32 {d1[]}, [r2 ], r3
+       @ PR 14987 and 14887: Allow for whitespace in the instruction.
+       vld1.32 { d1 [ ] } , [ r2 ] , r3