This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
config/tc-sparc.c (sparc_ip): Simplify the code.
- To: binutils at sources dot redhat dot com
- Subject: config/tc-sparc.c (sparc_ip): Simplify the code.
- From: Kazu Hirata <kazu at hxi dot com>
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
============================================================