https://sourceware.org/bugzilla/show_bug.cgi?id=25212
Bug ID: 25212 Summary: [RISCV] gas doesn't flag invalid march and mabi combinations Product: binutils Version: 2.34 (HEAD) Status: UNCONFIRMED Severity: minor Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: luismarques at lowrisc dot org Target Milestone: --- This, by itself, isn't ideal: $ touch test.s $ riscv32-unknown-elf-as -march=rv32i -mabi=ilp32d test.s $ echo $? 0 The hardfloat ABI should be detected as incompatible with the lack of the F/D extension. This becomes more insidious when you don't realize that you are implicitly passing the wrong -mabi option to gas: $ riscv64-unknown-elf-gcc -c -v -march=rv64i test.s (...) COLLECT_GCC_OPTIONS='-c' '-v' '-march=rv64i' '-mabi=lp64d' -- You are receiving this mail because: You are on the CC list for the bug.