From 245dc24fa55106617aa3e89762cc4893a96a9e38 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Thu, 29 Oct 2015 11:12:59 -0700 Subject: Handle lower-case ISA strings We'd changed the ISA string parser to be case-insensitive, but when doing that it made all "X*" extensions upper case. The result was that the instruction table matcher would skip "Xcustom" extensions, since they showed up as "XCUSTOM". This patch changes the ISA subset matching function to be case insensitive, to match the parser. --- binutils/gas/config/tc-riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/gas/config/tc-riscv.c b/binutils/gas/config/tc-riscv.c index 2d77871..8fd329e 100644 --- a/binutils/gas/config/tc-riscv.c +++ b/binutils/gas/config/tc-riscv.c @@ -112,7 +112,7 @@ riscv_subset_supports (const char *feature) return FALSE; for (s = riscv_subsets; s != NULL; s = s->next) - if (strcmp (s->name, p) == 0) + if (strcasecmp (s->name, p) == 0) /* FIXME: once we support version numbers: return major == s->version_major && minor <= s->version_minor; */ return TRUE; -- cgit v1.1