Remove redundant code enclosed by #ifdef RELAX_PAREN_GROUPING....#endif.

This commit is contained in:
Nick Clifton 2005-03-03 17:22:12 +00:00
parent 3c1a78a44b
commit fbacee5b43
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2005-03-03 Nick Clifton <nickc@redhat.com> 2005-03-03 Nick Clifton <nickc@redhat.com>
* expr.c (operand): Remove redundant code enclosed by #ifdef
RELAX_PAREN_GROUPING....#endif.
* config/tc-mn10200.c (tc_gen_reloc): Handle the case where the * config/tc-mn10200.c (tc_gen_reloc): Handle the case where the
reloc is the difference of two symbols defined in the same reloc is the difference of two symbols defined in the same
section. section.

View File

@ -977,12 +977,7 @@ operand (expressionS *expressionP)
/* expression () will pass trailing whitespace. */ /* expression () will pass trailing whitespace. */
if ((c == '(' && *input_line_pointer != ')') if ((c == '(' && *input_line_pointer != ')')
|| (c == '[' && *input_line_pointer != ']')) || (c == '[' && *input_line_pointer != ']'))
{ as_bad (_("missing '%c'"), c == '(' ? ')' : ']');
#ifdef RELAX_PAREN_GROUPING
if (c != '(')
#endif
as_bad (_("missing '%c'"), c == '(' ? ')' : ']');
}
else else
input_line_pointer++; input_line_pointer++;
SKIP_WHITESPACE (); SKIP_WHITESPACE ();