Commit 8dc56a22 by Jim Wilson Committed by Jim Wilson

RISC-V: Build soft-float divide routines for -mno-fdiv.

Using -mno-fdiv gives linker errors unless we build the missing divide
routines in libgcc always.  There is at least one university project
designing RISC-V parts without FP divide that wants to use the option.

	libgcc/
	* config/riscv/t-softfp32 (softfp_extra): Add FP divide routines

From-SVN: r277723
parent 2df0c231
2019-11-01 Jim Wilson <jimw@sifive.com>
* config/riscv/t-softfp32 (softfp_extra): Add FP divide routines
2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com> 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* config/msp430/lib2hw_mul.S: Fix wrong syntax in branch instruction. * config/msp430/lib2hw_mul.S: Fix wrong syntax in branch instruction.
......
...@@ -12,7 +12,11 @@ softfp_float_modes := tf ...@@ -12,7 +12,11 @@ softfp_float_modes := tf
softfp_extensions := sftf dftf softfp_extensions := sftf dftf
softfp_truncations := tfsf tfdf softfp_truncations := tfsf tfdf
# Enable divide routines to make -mno-fdiv work.
softfp_extras := divsf3 divdf3
else else
# !ABI_DOUBLE
softfp_float_modes := df tf softfp_float_modes := df tf
softfp_extensions := sfdf sftf dftf softfp_extensions := sfdf sftf dftf
...@@ -20,7 +24,20 @@ softfp_truncations := dfsf tfsf tfdf ...@@ -20,7 +24,20 @@ softfp_truncations := dfsf tfsf tfdf
ifndef ABI_SINGLE ifndef ABI_SINGLE
softfp_float_modes += sf softfp_float_modes += sf
else
# ABI_SINGLE
# Enable divide routines to make -mno-fdiv work.
softfp_extras := divsf3
endif endif
endif endif
else
# ABI_QUAD
# Enable divide routines to make -mno-fdiv work.
softfp_extras := divsf3 divdf3 divtf3
endif endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment