This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove spurious condition in test for closing parenthesis.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8a4c286981e1a69596a6296ac14b66c5cee05550

commit 8a4c286981e1a69596a6296ac14b66c5cee05550
Author: Yoshinori Sato <ysato@users.sourceforge.jp>
Date:   Wed Jan 13 17:47:34 2016 +0000

    Remove spurious condition in test for closing parenthesis.
    
    	* config/tc-h8300.c (get_operand): Remove spurious condition in
    	test for closing parenthesis.

Diff:
---
 gas/ChangeLog         | 5 +++++
 gas/config/tc-h8300.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4db90f6..0b9f95b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
+
+	* config/tc-h8300.c (get_operand): Remove spurious condition in
+	test for closing parenthesis.
+
 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
 
 	* config/tc-arm.c (arm_ext_v8_2): New.
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c
index 72e5cec..063c40d 100644
--- a/gas/config/tc-h8300.c
+++ b/gas/config/tc-h8300.c
@@ -826,7 +826,7 @@ get_operand (char **ptr, struct h8_op *op, int direction)
 	    op->mode |= DISP | direction;
 	  src = skip_colonthing (src, &op->mode);
 
-	  if (*src != ')' && '(')
+	  if (*src != ')')
 	    {
 	      as_bad (_("expected @(exp, reg16)"));
 	      return;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]