aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNelson Chu <nelson@rivosinc.com>2025-03-13 10:31:34 +0800
committerNelson Chu <nelson@rivosinc.com>2025-03-18 12:13:48 +0800
commit921d65b3f0751b714f9859496946e9560001b18f (patch)
treeee53ab9aee5ccbcaa0a7bd15caebf0d5da0f3345
parenta7e5d97c123b5164460a604a154a239fbcfadd86 (diff)
downloadbinutils-921d65b3f0751b714f9859496946e9560001b18f.zip
binutils-921d65b3f0751b714f9859496946e9560001b18f.tar.gz
binutils-921d65b3f0751b714f9859496946e9560001b18f.tar.bz2
RISC-V: Fixed riscv_update_subset1 returning wrong boolean value
The riscv_update_subset1 returning wrong boolean value if the riscv_parse_check_conflicts isn't called, though the current return value doesn't really useful.
-rw-r--r--bfd/elfxx-riscv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elfxx-riscv.c b/bfd/elfxx-riscv.c
index fd2cb74..ffcf32b 100644
--- a/bfd/elfxx-riscv.c
+++ b/bfd/elfxx-riscv.c
@@ -2524,13 +2524,13 @@ riscv_update_subset1 (riscv_parse_subset_t *rps,
}
while (*p++ == ',');
- bool conflict = false;
+ bool no_conflict = true;
if (explicit_subset == NULL)
{
riscv_parse_add_implicit_subsets (rps);
- conflict = riscv_parse_check_conflicts (rps);
+ no_conflict = riscv_parse_check_conflicts (rps);
}
- return conflict;
+ return no_conflict;
}
/* Add/Remove an extension to/from the subset list. This is used for