Hi, Is there coding rule with it ?
I can not find it from https://www.gnu.org/prep/standards/html_node/index.html and https://gcc.gnu.org/codingconventions.html Could you give me any hints ? Thanks. Jojo 在 2020年8月17日 +0800 PM11:05,Xianmiao Qu <xianmiao...@c-sky.com>,写道: > 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