diff mbox series

[committed] C-SKY: Add missing builtin defines for soft float abi.

Message ID 20230113124234.75388-1-cooper.qu@linux.alibaba.com
State New
Headers show
Series [committed] C-SKY: Add missing builtin defines for soft float abi. | expand

Commit Message

Xianmiao Qu Jan. 13, 2023, 12:42 p.m. UTC
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 mbox series

Patch

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