aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJojo R <jiejie_rong@c-sky.com>2020-07-31 15:18:25 +0800
committerXianmiao Qu <xianmiao_qu@c-sky.com>2020-08-01 16:10:43 +0800
commit197f1e8c14306fc97ff91f9fb4262e70f45eedef (patch)
tree394e9370571896e7186ac4188ebb72126a4c6679 /gcc/doc
parentc713ad3feae737b43083fe4b3bc076575b7f9257 (diff)
downloadgcc-197f1e8c14306fc97ff91f9fb4262e70f45eedef.zip
gcc-197f1e8c14306fc97ff91f9fb4262e70f45eedef.tar.gz
gcc-197f1e8c14306fc97ff91f9fb4262e70f45eedef.tar.bz2
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=.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi18
1 files changed, 18 insertions, 0 deletions
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