public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5085] C-SKY: Add missing builtin defines for soft float abi.
@ 2023-01-10 11:58 qu
  0 siblings, 0 replies; only message in thread
From: qu @ 2023-01-10 11:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:641af925ebf3ed0c5f678c118959836f646442be

commit r13-5085-g641af925ebf3ed0c5f678c118959836f646442be
Author: Xianmiao Qu <cooper.qu@linux.alibaba.com>
Date:   Tue Jan 10 22:16:49 2023 +0800

    C-SKY: Add missing builtin defines for soft float abi.
    
    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.

Diff:
---
 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__");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-10 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-10 11:58 [gcc r13-5085] C-SKY: Add missing builtin defines for soft float abi 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).