arm-whitespace.patch 756 B

1234567891011121314151617181920212223
  1. diff -Nur binutils-2.23.2.orig/gas/config/tc-arm.c binutils-2.23.2/gas/config/tc-arm.c
  2. --- binutils-2.23.2.orig/gas/config/tc-arm.c 2013-03-25 09:06:21.000000000 +0100
  3. +++ binutils-2.23.2/gas/config/tc-arm.c 2013-09-24 13:26:32.000000000 +0200
  4. @@ -885,6 +885,9 @@
  5. static inline int
  6. skip_past_char (char ** str, char c)
  7. {
  8. + /* PR gas/14987: Allow for whitespace before the expected character. */
  9. + skip_whitespace (*str);
  10. +
  11. if (**str == c)
  12. {
  13. (*str)++;
  14. @@ -5168,6 +5171,9 @@
  15. return PARSE_OPERAND_SUCCESS;
  16. }
  17. + /* PR gas/14887: Allow for whitespace after the opening bracket. */
  18. + skip_whitespace (p);
  19. +
  20. if ((reg = arm_reg_parse (&p, REG_TYPE_RN)) == FAIL)
  21. {
  22. inst.error = _(reg_expected_msgs[REG_TYPE_RN]);