+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-06 Andreas Schwab <schwab@linux-m68k.org>
* doc/c-mips.texi (MIPS Opts): Fix use of @itemx.
/* tc-arm.c -- Assemble for the ARM
Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
- 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+ 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
Modified by David Taylor (dtaylor@armltd.co.uk)
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)++;
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]);
return result;
}
- /* PR gas/14987: Allow for whitespace before the closing bracket. */
- skip_whitespace (p);
-
if (skip_past_char (&p, ']') == FAIL)
{
inst.error = _("']' expected");