From 197f1e8c14306fc97ff91f9fb4262e70f45eedef Mon Sep 17 00:00:00 2001 From: Jojo R Date: Fri, 31 Jul 2020 15:18:25 +0800 Subject: C-SKY: Add -mfloat-abi= option. gcc/ChangeLog: * config/csky/csky_opts.h (float_abi_type): New. * config/csky/csky.h (TARGET_SOFT_FLOAT): New. (TARGET_HARD_FLOAT): New. (TARGET_HARD_FLOAT_ABI): New. (OPTION_DEFAULT_SPECS): Use mfloat-abi. * config/csky/csky.opt (mfloat-abi): New. * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=. --- gcc/doc/invoke.texi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gcc/doc') diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5a5159d..060d73e 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -820,6 +820,7 @@ Objective-C and Objective-C++ Dialects}. @gccoptlist{-march=@var{arch} -mcpu=@var{cpu} @gol -mbig-endian -EB -mlittle-endian -EL @gol -mhard-float -msoft-float -mfpu=@var{fpu} -mdouble-float -mfdivdu @gol +-mfloat-abi=@var{name} @gol -melrw -mistack -mmp -mcp -mcache -msecurity -mtrust @gol -mdsp -medsp -mvdsp @gol -mdiv -msmart -mhigh-registers -manchor @gol @@ -20646,6 +20647,23 @@ Specify the C-SKY target processor. Valid values for @var{cpu} are: Select big- or little-endian code. The default is little-endian. +@item -mfloat-abi=@var{name} +@opindex mfloat-abi +Specifies which floating-point ABI to use. Permissible values +are: @samp{soft}, @samp{softfp} and @samp{hard}. + +Specifying @samp{soft} causes GCC to generate output containing +library calls for floating-point operations. +@samp{softfp} allows the generation of code using hardware floating-point +instructions, but still uses the soft-float calling conventions. +@samp{hard} allows generation of floating-point instructions +and uses FPU-specific calling conventions. + +The default depends on the specific target configuration. Note that +the hard-float and soft-float ABIs are not link-compatible; you must +compile your entire program with the same ABI, and link with a +compatible set of libraries. + @item -mhard-float @opindex mhard-float @itemx -msoft-float -- cgit v1.1