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