gas/
* config/tc-arm.c (parse_cond): Covert to lowercase before matching.
+2008-05-22 Paul Brook <paul@codesourcery.com>
+
+ * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
+
2008-05-21 I-Jui Sung <ijsung@gmail.com>
* config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
static int
parse_cond (char **str)
{
- char *p, *q;
+ char *q;
const struct asm_cond *c;
+ int n;
+ /* Condition codes are always 2 characters, so matching up to
+ 3 characters is sufficient. */
+ char cond[3];
- p = q = *str;
- while (ISALPHA (*q))
- q++;
+ q = *str;
+ n = 0;
+ while (ISALPHA (*q) && n < 3)
+ {
+ cond[n] = TOLOWER(*q);
+ q++;
+ n++;
+ }
- c = hash_find_n (arm_cond_hsh, p, q - p);
+ c = hash_find_n (arm_cond_hsh, cond, n);
if (!c)
{
inst.error = _("condition required");