Skip to content

Commit 5312ea2

Browse files
committed
RISC-V: remove -march option passed to the assembler and preprocessor
It prevents the assembler from using compressed instructions (if available), and inline assembly code from using special instructions. Fixes: #563
1 parent e671e45 commit 5312ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,9 @@ fi
403403
#
404404
if test "$arch" = "riscV"; then
405405
if test "$model" = "64"; then
406-
model_options="-march=rv64imafd -mabi=lp64d"
406+
model_options="-mabi=lp64d"
407407
else
408-
model_options="-march=rv32imafd -mabi=ilp32d"
408+
model_options="-mabi=ilp32d"
409409
fi
410410
abi="standard"
411411
cc_options="$model_options"

0 commit comments

Comments
 (0)