Hi Jojo,

On 8/17/20 7:09 PM, Jojo R wrote:
diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c
index 7ba3ed3..b71291a 100644
--- a/gcc/config/csky/csky.c
+++ b/gcc/config/csky/csky.c
@@ -328,6 +328,16 @@ csky_cpu_cpp_builtins (cpp_reader *pfile)
      {
        builtin_define ("__csky_hard_float__");
        builtin_define ("__CSKY_HARD_FLOAT__");
+      if (TARGET_HARD_FLOAT_ABI)
+        {
+          builtin_define ("__csky_hard_float_abi__");
+          builtin_define ("__CSKY_HARD_FLOAT_ABI__");
+        }
+      if (TARGET_SINGLE_FPU)
+        {
+          builtin_define ("__csky_hard_float_fpu_sf__");
+          builtin_define ("__CSKY_HARD_FLOAT_FPU_SF__");
+        }
      }

These is one more thing you shoud pay attention to, if the spaces number reaches 8 at begining of a line, you should use tab instead of 8 spaces.


Thanks,

Xianmiao

Reply via email to