* [committed] C-SKY: Add missing builtin defines for soft float abi.
@ 2023-01-13 12:42 Xianmiao Qu
0 siblings, 0 replies; only message in thread
From: Xianmiao Qu @ 2023-01-13 12:42 UTC (permalink / raw)
To: gcc-patches
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 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/config/csky/csky.cc b/gcc/config/csky/csky.cc
index b0e50cfef3e..ddc6954dad1 100644
--- 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__");
--
2.32.1 (Apple Git-133)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-13 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 12:42 [committed] C-SKY: Add missing builtin defines for soft float abi Xianmiao Qu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).