projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f3b032
)
C-SKY: Add missing builtin defines for soft float abi.
author
Xianmiao Qu
<cooper.qu@linux.alibaba.com>
Tue, 10 Jan 2023 14:16:49 +0000
(22:16 +0800)
committer
Xianmiao Qu
<cooper.qu@linux.alibaba.com>
Tue, 10 Jan 2023 11:57:49 +0000
(19:57 +0800)
The builtin defines for soft float abi are:
'__csky_soft_float_abi__' and '__CSKY_SOFT_FLOAT_ABI__'.
gcc/
* config/csky/csky.cc (csky_cpu_cpp_builtins): Add builtin
defines for soft float abi.
gcc/config/csky/csky.cc
patch
|
blob
|
history
diff --git
a/gcc/config/csky/csky.cc
b/gcc/config/csky/csky.cc
index
b0e50cf
..
ddc6954
100644
(file)
--- a/
gcc/config/csky/csky.cc
+++ b/
gcc/config/csky/csky.cc
@@
-396,6
+396,11
@@
csky_cpu_cpp_builtins (cpp_reader *pfile)
builtin_define ("__csky_hard_float_abi__");
builtin_define ("__CSKY_HARD_FLOAT_ABI__");
}
+ else
+ {
+ builtin_define ("__csky_soft_float_abi__");
+ builtin_define ("__CSKY_SOFT_FLOAT_ABI__");
+ }
if (TARGET_SINGLE_FPU)
{
builtin_define ("__csky_hard_float_fpu_sf__");