aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/missing-ident.c
diff options
authorPalmer Dabbelt <palmer@rivosinc.com>2022-04-01 22:00:37 -0700
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2022-06-05 22:07:23 +0200
commit90feaaa967227961fc9972a0a46bb4fa51eec7b2 (patch)
tree683ec0180b0b7853e118a39858a92ba9e8d30487 /validation/missing-ident.c
parente31e645f5c29b6587404c1efe534c65b4691e023 (diff)
downloadsparse-dev-90feaaa967227961fc9972a0a46bb4fa51eec7b2.tar.gz
RISC-V: Match GCC's semantics for multiple -march instances
GCC's semantics for "-march=X -march=Y" are that Y entirely overrides X, but sparse takes the union of these two ISA strings. This fixes the behavior by setting, instead of oring, the flags whenever a base ISA is encountered. RISC-V ISA strings can only have a single base ISA, it's not like x86 where the 64-bit ISA is an extension of the 32-bit ISA. [Luc Van Oostenryck: reset the flags at the start of the parsing loop] Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/missing-ident.c')
0 files changed, 0 insertions, 0 deletions