This is the mail archive of the binutils@sources.redhat.com 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]

config/tc-sparc.c (sparc_ip): Simplify the code.


Hi,

Attached is a patch to clean up the code. I hope this is right. OK to
commit?

Thanks,

Kazu Hirata.

===File ~/gnu/binutils/ChangeLog-tc-sparc.c=================
2000-08-04  Kazu Hirata  <kazu@hxi.com>

	* config/tc-sparc.c (sparc_ip): Simplify the code.

============================================================

===File ~/gnu/binutils/tc-sparc.c.patch=====================
Index: tc-sparc.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sparc.c,v
retrieving revision 1.19
diff -u -r1.19 tc-sparc.c
--- tc-sparc.c	2000/08/04 01:01:32	1.19
+++ tc-sparc.c	2000/08/04 14:15:58
@@ -1420,10 +1420,12 @@
 			    goto error;
 			  }
 			kmask |= mask;
-			while (*s == ' ') { ++s; continue; }
+			while (*s == ' ')
+			  ++s;
 			if (*s == '|' || *s == '+')
+			  ++s;
+			while (*s == ' ')
 			  ++s;
-			while (*s == ' ') { ++s; continue; }
 		      }
 		  }
 		else
============================================================


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