aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-10-29 11:12:59 -0700
committerPalmer Dabbelt <palmer.dabbelt@eecs.berkeley.edu>2015-10-29 11:12:59 -0700
commit245dc24fa55106617aa3e89762cc4893a96a9e38 (patch)
tree6fd5368c6ae82866b81d97b1de8e922f22a640da /binutils
parent8a94784bddb678e572c75927237f19492c7c0b65 (diff)
downloadriscv-gnu-toolchain-245dc24fa55106617aa3e89762cc4893a96a9e38.zip
riscv-gnu-toolchain-245dc24fa55106617aa3e89762cc4893a96a9e38.tar.gz
riscv-gnu-toolchain-245dc24fa55106617aa3e89762cc4893a96a9e38.tar.bz2
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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/gas/config/tc-riscv.c2
1 files changed, 1 insertions, 1 deletions
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;