public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Remove redundant code in gas/expr.c
@ 2005-03-03 17:21 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2005-03-03 17:21 UTC (permalink / raw)
  To: binutils

Hi Guys,

  Whilst investigating another problem I am across the fact that we
  have a small piece of redundant code in expr.c:operand().  It was
  enclosed inside a #ifdef RELAX_PAREN_GROUPING...#endif which is not
  defined by any target.  So I am applying this patch to remove it.

Cheers
  Nick

gas/ChangeLog
2005-03-03  Nick Clifton  <nickc@redhat.com>

	* expr.c (operand): Remove redundant code enclosed by #ifdef
	RELAX_PAREN_GROUPING....#endif.

Index: gas/expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.54
diff -c -3 -p -r1.54 expr.c
*** gas/expr.c	1 Mar 2005 22:35:21 -0000	1.54
--- gas/expr.c	3 Mar 2005 17:17:15 -0000
*************** operand (expressionS *expressionP)
*** 977,988 ****
        /* expression () will pass trailing whitespace.  */
        if ((c == '(' && *input_line_pointer != ')')
  	  || (c == '[' && *input_line_pointer != ']'))
! 	{
! #ifdef RELAX_PAREN_GROUPING
! 	  if (c != '(')
! #endif
! 	    as_bad (_("missing '%c'"), c == '(' ? ')' : ']');
! 	}
        else
  	input_line_pointer++;
        SKIP_WHITESPACE ();
--- 977,983 ----
        /* expression () will pass trailing whitespace.  */
        if ((c == '(' && *input_line_pointer != ')')
  	  || (c == '[' && *input_line_pointer != ']'))
! 	as_bad (_("missing '%c'"), c == '(' ? ')' : ']');
        else
  	input_line_pointer++;
        SKIP_WHITESPACE ();
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-03 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-03 17:21 Remove redundant code in gas/expr.c Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).