[PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ *config/loongarch/loongarch-c.c --- gcc/config/loongarch/loongarch-c.c | 136 + 1 file changed, 136 insertions(+) create mode 100644 gcc/config/loongarch/loongarch-c.c diff --git a/gcc/config/loongarch/loongarch-c.c b/gcc/config/loonga

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-13 Thread Joseph Myers
On Fri, 10 Dec 2021, Chenghua Xu wrote: > + /* Macros dependent on the C dialect. */ > + if (preprocessing_asm_p ()) > +{ > + builtin_define_std ("LANGUAGE_ASSEMBLY"); > + builtin_define ("_LANGUAGE_ASSEMBLY"); > +} > + else if (c_dialect_cxx ()) > +{ > + builtin_def

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-16 Thread Paul Hua via Gcc-patches
Hi Joseph, Thanks for your suggestion, Those macros can be removed, we will send the v4 version soon. Are there any problems in this series of patches? In other words, What conditions are required for LoongArch back-end merged? By the way, We are preparing the LoongArch machine to send to Cfarm

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-18 Thread Xi Ruoyao via Gcc-patches
On Fri, 2021-12-17 at 15:45 +0800, Paul Hua via Gcc-patches wrote: > Hi Joseph, > > Thanks for your suggestion, Those macros can be removed, we will send > the v4 version soon. > > Are there any problems in this series of patches? I'm not a compiler expert, but I'll bootstrap it once my 5th Linu

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-18 Thread Paul Hua via Gcc-patches
Hi Ruoyao, Thank you for your attention. > GCC 12 development cycle is at stage 3 (general bugfixing) now. So a > new port have to wait until stage 1 of GCC 13 begins (in mid 2022, I > guess). I know it is stage3, but we are a new target, it's ok for GCC 12.

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-19 Thread Xi Ruoyao via Gcc-patches
Hi, I've bootstraped the patch with my GNU-stack fix (https://github.com/loongson/gcc/pull/62) and --enable-werror-always. Bootstrap succeeded, but with some warnings: ../../gcc/config/loongarch/loongarch.md:3205:1: warning: operand 0 missing mode? ../../gcc/config/loongarch/loongarch.md:3282:1:

Re: [PATCH v3 06/12] LoongArch Port: Builtin macros.

2021-12-20 Thread Xi Ruoyao via Gcc-patches
On Mon, 2021-12-20 at 15:35 +0800, Xi Ruoyao via Gcc-patches wrote: > Hi, > > I've bootstraped the patch with my GNU-stack fix > (https://github.com/loongson/gcc/pull/62) and --enable-werror-always. > Bootstrap succeeded, but with some warnings: > > ../../gcc/config/loongarch/loongarch.md:3205:1