[PATCH v5 03/12] LoongArch Port: Regenerate gcc/configure.

2022-01-21 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 66 ++- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index bd4d4721868..3823bc4e783 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5442,6 +5442,9 @@ case

[PATCH v5 01/12] LoongArch Port: Regenerate configure

2022-01-21 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21

Re: [PATCH v4 04/12] LoongArch Port: Machine Decsription files.

2022-01-07 Thread 程璐璐
在 2022/1/7 上午1:54, Xi Ruoyao 写道: On Fri, 2021-12-24 at 17:28 +0800, chenglulu wrote: +(define_insn "*zero_extendsidi2_internal" +  [(set (match_operand:DI 0 "register_operand" "=r,r,r") +   (subreg:DI (match_operand:SI 1 "nonimmediate_operand" "r,ZC,W") 0))] +  "TARGET_64BIT" +  "@ +  

Re: [PATCH v4 04/12] LoongArch Port: Machine Decsription files.

2022-01-06 Thread Xi Ruoyao via Gcc-patches
On Fri, 2021-12-24 at 17:28 +0800, chenglulu wrote: > +(define_insn "*zero_extendsidi2_internal" > +  [(set (match_operand:DI 0 "register_operand" "=r,r,r") > +   (subreg:DI (match_operand:SI 1 "nonimmediate_operand" "r,ZC,W") 0))] > +  "TARGET_64BIT" > +  "@ > +   bstrpick.d\t%0,%1,31,0 > +  

[PATCH v4 12/12] LoongArch Port: Add doc.

2021-12-24 Thread chenglulu
* contrib/config-list.mk: Add LoongArch triplet. * gcc/doc/install.texi: Add LoongArch options section. * gcc/doc/invoke.texi: Add LoongArch options section. * gcc/doc/md.texi: Add LoongArch options section. --- contrib/config-list.mk | 5 +- gcc/doc/install.texi

[PATCH v4 08/12] LoongArch Port: libgcc

2021-12-24 Thread chenglulu
libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v4 11/12] LoongArch Port: gcc/testsuite

2021-12-24 Thread chenglulu
gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. * gcc.dg/loop-8.c:

[PATCH v4 02/12] LoongArch Port: gcc build

2021-12-24 Thread chenglulu
gcc/ * common/config/loongarch/loongarch-common.c: New file. * config/loongarch/genopts/genstr.sh: New file. * config/loongarch/genopts/loongarch-strings: New file. * config/loongarch/genopts/loongarch.opt.in: New file. * config/loongarch/gnu-user.h: New

[PATCH v4 06/12] LoongArch Port: Builtin functions.

2021-12-24 Thread chenglulu
gcc/ * config/loongarch/larchintrin.h: New file. * config/loongarch/loongarch-builtins.c: New file. --- gcc/config/loongarch/larchintrin.h| 413 + gcc/config/loongarch/loongarch-builtins.c | 511 ++ 2 files changed, 924 insertions(+)

[PATCH v4 10/12] LoongArch Port: libgomp

2021-12-24 Thread chenglulu
libgomp/ * configure.tgt: Add LoongArch triplet. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt @@ -56,6 +56,10

[PATCH v4 09/12] LoongArch Port: Regenerate libgcc/configure.

2021-12-24 Thread chenglulu
--- libgcc/configure | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..ce04c4f529f 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -2412,6 +2412,9 @@ case "${host}" in # sets the default TLS model and

[PATCH v4 07/12] LoongArch Port: Builtin macros.

2021-12-24 Thread chenglulu
gcc/ *config/loongarch/loongarch-c.c --- gcc/config/loongarch/loongarch-c.c | 111 + 1 file changed, 111 insertions(+) create mode 100644 gcc/config/loongarch/loongarch-c.c diff --git a/gcc/config/loongarch/loongarch-c.c b/gcc/config/loongarch/loongarch-c.c

[PATCH v4 03/12] LoongArch Port: Regenerate gcc/configure.

2021-12-24 Thread chenglulu
--- gcc/configure | 85 +++ 1 file changed, 79 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index 992a9d70092..999557a3b51 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5352,7 +5352,26 @@ else

[PATCH v4 01/12] LoongArch Port: Regenerate configure

2021-12-24 Thread chenglulu
* config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21 insertions(+), 2

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: > >

Re: [PATCH v3 03/12] LoongArch Port: Machine Decsription files.

2021-12-20 Thread Xi Ruoyao via Gcc-patches
On Fri, 2021-12-10 at 15:43 +0800, Chenghua Xu wrote: > + > +INT_MODE (OI, 32); > + > +/* Keep the OI modes from confusing the compiler into thinking > +   that these modes could actually be used for computation.  They are > +   only holders for vectors during data movement.  */ > +#define

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?

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 04/12] LoongArch Port: Machine description C files and .h files.

2021-12-18 Thread Xi Ruoyao via Gcc-patches
On Fri, 2021-12-10 at 15:43 +0800, Chenghua Xu wrote: > +#undef TARGET_ASM_CODE_END > +#define TARGET_ASM_CODE_END loongarch_code_end /* snip */ > +static void > +loongarch_code_end (void) > +{ > + if (NEED_INDICATE_EXEC_STACK) > +/* Add .note.GNU-stack. */ > +

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

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

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 ()) > +{ > +

[PATCH v3 12/12] LoongArch Port: Add doc.

2021-12-09 Thread Chenghua Xu
From: chenglulu * contrib/config-list.mk: Add LoongArch triplet. * gcc/doc/install.texi: Add LoongArch options section. * gcc/doc/invoke.texi: Add LoongArch options section. * gcc/doc/md.texi: Add LoongArch options section. --- contrib/config-list.mk | 5 +-

[PATCH v3 11/12] LoongArch Port: Regenerate configure

2021-12-09 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21

[PATCH v3 10/12] LoongArch Port: gcc/testsuite

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. *

[PATCH v3 09/12] LoongArch Port: libgomp

2021-12-09 Thread Chenghua Xu
From: chenglulu libgomp/ * configure.tgt: Add LoongArch triplet. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt

[PATCH v3 07/12] LoongArch Port: libgcc

2021-12-09 Thread Chenghua Xu
From: chenglulu libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v3 08/12] LoongArch Port: Regenerate libgcc/configure.

2021-12-09 Thread Chenghua Xu
From: chenglulu --- libgcc/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..150ea04cb3d 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -5066,7 +5066,7 @@ $as_echo "$libgcc_cv_cfi" >&6; } # word size

[PATCH v3 05/12] LoongArch Port: Builtin functions.

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ * config/loongarch/larchintrin.h: New file. * config/loongarch/loongarch-builtins.c: New file. --- gcc/config/loongarch/larchintrin.h| 413 + gcc/config/loongarch/loongarch-builtins.c | 511 ++ 2 files changed,

[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

[PATCH v3 01/12] LoongArch Port: gcc build

2021-12-09 Thread Chenghua Xu
From: chenglulu gcc/ * common/config/loongarch/loongarch-common.c: New file. * config/loongarch/genopts/genstr.sh: New file. * config/loongarch/genopts/loongarch-strings: New file. * config/loongarch/genopts/loongarch.opt.in: New file. *

[PATCH v3 02/12] LoongArch Port: Regenerate gcc/configure.

2021-12-09 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 63 ++- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index a5160da83ec..2c95ceec398 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7865,6 +7865,9 @@ else

Re: [PATCH 01/12] LoongArch Port: gcc build

2021-11-29 Thread Joseph Myers
On Sat, 27 Nov 2021, chenglulu wrote: > + if (p_arch_native) > + fatal_error (UNKNOWN_LOCATION, > +"Unknown FPU type %<0x%x%>, " > +"%<-m" OPTSTR_ARCH "=" STR_CPU_NATIVE "%> failed", Diagnostics should not start with an uppercase letter (unless

Re: LoongArch Port

2021-11-28 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-27 at 16:27 +0800, chenglulu wrote: > The LoongArch architecture (LoongArch) is an Instruction Set > Architecture (ISA) that has a Reduced Instruction Set Computer (RISC) > style. > The documents are on > https://loongson.github.io/LoongArch-Documentation/README-EN.html > > The

Re: [PATCH 01/12] LoongArch Port: gcc build

2021-11-27 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-27 at 16:27 +0800, chenglulu wrote: > +++ b/gcc/config/loongarch/loongarch-opts.h /* snip */ > +#ifdef IN_LIBGCC2 > +#include "loongarch-def.h" > +#else > +extern "C" { > +#include "loongarch-def.h" > +} > + > +/* Handler for "-m" option combinations, > +   shared by the driver

Re: LoongArch Port

2021-11-27 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-27 at 16:27 +0800, chenglulu wrote: > The ELF ABI Documents are on: > https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html A note: there is a recent change to ELF interpreter path in this doc. This patch series use the new ELF interpreter path. If you

Re: [PATCH 01/12] LoongArch Port: gcc build

2021-11-27 Thread Xi Ruoyao via Gcc-patches
On Sun, 2021-11-28 at 07:39 +0800, Xi Ruoyao via Gcc-patches wrote: > > > In function ‘int isa_fpu_compat_p(const loongarch_isa*, const > > loongarch_isa*)’, > > inlined from ‘void loongarch_config_target(loongarch_target*, long int, > > int, int, int, int, int, int, int)’ at > >

Re: [PATCH 01/12] LoongArch Port: gcc build

2021-11-27 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-27 at 16:27 +0800, chenglulu wrote: > +void > +loongarch_config_target (struct loongarch_target *target, > +    HOST_WIDE_INT opt_switches, > +    int opt_arch, int opt_tune, int opt_fpu, > +    int opt_abi_base, int

Re: LoongArch Port

2021-11-27 Thread Xi Ruoyao via Gcc-patches
e: this GCC port requires the following patch applied to binutils > to build. > https://github.com/loongson/binutils-gdb/commit/aacb0bf860f02aa5a7dcb76dd0e392bf871c7586 > (will be submitted to upstream soon) > > chenglulu (12): > > LoongArch Port: gcc build > LoongArch Port:

[PATCH 11/12] LoongArch Port: Regenerate configure

2021-11-27 Thread chenglulu
* config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 10 +- configure.ac | 10 +- 3 files changed, 21 insertions(+), 2

[PATCH 01/12] LoongArch Port: gcc build

2021-11-27 Thread chenglulu
gcc/ * common/config/loongarch/loongarch-common.c: New file. * config/loongarch/genopts/genstr.sh: New file. * config/loongarch/genopts/loongarch-strings: New file. * config/loongarch/genopts/loongarch.opt.in: New file. * config/loongarch/gnu-user.h: New

[PATCH 07/12] LoongArch Port: libgcc

2021-11-27 Thread chenglulu
libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH 12/12] LoongArch Port: Add doc.

2021-11-27 Thread chenglulu
* contrib/config-list.mk: Add LoongArch triplet. * gcc/doc/install.texi: Add LoongArch options section. * gcc/doc/invoke.texi: Add LoongArch options section. * gcc/doc/md.texi: Add LoongArch options section. --- contrib/config-list.mk | 5 +- gcc/doc/install.texi

[PATCH 05/12] LoongArch Port: Builtin functions.

2021-11-27 Thread chenglulu
gcc/ * config/loongarch/larchintrin.h: New file. * config/loongarch/loongarch-builtins.c: New file. --- gcc/config/loongarch/larchintrin.h| 413 + gcc/config/loongarch/loongarch-builtins.c | 511 ++ 2 files changed, 924 insertions(+)

[PATCH 10/12] LoongArch Port: gcc/testsuite

2021-11-27 Thread chenglulu
gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. * gcc.dg/loop-8.c:

[PATCH 08/12] LoongArch Port: Regenerate libgcc/configure.

2021-11-27 Thread chenglulu
--- libgcc/configure | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..ce04c4f529f 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -2412,6 +2412,9 @@ case "${host}" in # sets the default TLS model and

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

2021-11-27 Thread 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/loongarch/loongarch-c.c

[PATCH 09/12] LoongArch Port: libgomp

2021-11-27 Thread chenglulu
libgomp/ * configure.tgt: Add LoongArch triplet. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt @@ -56,6 +56,10

[PATCH 02/12] LoongArch Port: Regenerate gcc/configure.

2021-11-27 Thread chenglulu
--- gcc/configure | 66 ++- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index 74b9d9be4c8..6e53dec9663 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5317,6 +5317,9 @@ case "${target}" in

LoongArch Port

2021-11-27 Thread chenglulu
/commit/aacb0bf860f02aa5a7dcb76dd0e392bf871c7586 (will be submitted to upstream soon) chenglulu (12): LoongArch Port: gcc build LoongArch Port: Regenerate gcc/configure. LoongArch Port: Machine Decsription files. LoongArch Port: Machine description C files and .h LoongArch Port: Builtin functions

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-09 Thread Xi Ruoyao via Gcc-patches
On Tue, 2021-11-09 at 23:52 +0800, Xi Ruoyao via Gcc-patches wrote: > > gcc trunk does not build with glibc-2.34+ and --enable-werror-always > > :( > > > > I've sent the fix as > > https://gcc.gnu.org/pipermail/gcc-patches/2021-November/583820.html. > > I applied the 7 patches and my fix onto

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-09 Thread Xi Ruoyao via Gcc-patches
On Tue, 2021-11-09 at 21:53 +0800, Xi Ruoyao via Gcc-patches wrote: > On Mon, 2021-11-08 at 23:14 +, Joseph Myers wrote: > > /* snip */ > > > Please make sure the back end builds cleanly with current GCC mainline.  > > This can be tested either with a native bootstrap, or by building a

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-09 Thread Xi Ruoyao via Gcc-patches
On Mon, 2021-11-08 at 23:14 +, Joseph Myers wrote: /* snip */ > Please make sure the back end builds cleanly with current GCC mainline.  > This can be tested either with a native bootstrap, or by building a cross > compiler, using a native compiler of the same GCC mainline version for the

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-08 Thread Joseph Myers
You have: > +#define GLIBC_DYNAMIC_LINKER_LP64 "/lib64/ld.so.1" See my comments on the glibc patch series . Specifically, the point that all new glibc ports should have unique per-ABI dynamic linker names for each ABI

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-08 Thread Xi Ruoyao via Gcc-patches
On Mon, 2021-11-08 at 10:30 +0800, Chenghua Xu wrote: > This patch does not arrive at  mail list. Send as an attachment in a > compressed format. I think .patch.gz is perferred instead of .tar.gz. And is it possible to seperate this into multiple commits? For example the whole "-march=native"

Re: [PATCH v1 1/7] LoongArch Port: gcc

2021-11-07 Thread Chenghua Xu
This patch does not arrive at  mail list. Send as an attachment in a compressed format. v1-0001-LoongArch-Port-gcc.patch.tar.xz Description: application/xz

Re: [PATCH v1 5/7] LoongArch Port: libgomp

2021-11-06 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-06 at 16:40 +0800, Chenghua Xu wrote: > From: chenglulu > > libgomp/ > > * configure.tgt: Add LoongArch tuple. "tuple" should be "triplet". -- Xi Ruoyao School of Aerospace Science and Technology, Xidian University

Re: [PATCH v1 6/7] LoongArch Port: gcc/testsuite

2021-11-06 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-06 at 16:40 +0800, Chenghua Xu wrote: > diff --git a/gcc/testsuite/gcc.dg/20020312-2.c > b/gcc/testsuite/gcc.dg/20020312-2.c > index 52c33d09b90..2e35d443a1d 100644 > --- a/gcc/testsuite/gcc.dg/20020312-2.c > +++ b/gcc/testsuite/gcc.dg/20020312-2.c > @@ -49,6 +49,8 @@ extern void

Re: [PATCH v1 3/7] LoongArch Port: libgcc

2021-11-06 Thread Xi Ruoyao via Gcc-patches
On Sat, 2021-11-06 at 16:40 +0800, Chenghua Xu wrote: /* snip */ > diff --git a/libgcc/config/loongarch/crti.S b/libgcc/config/loongarch/crti.S > new file mode 100644 > index 000..bac029874b5 > --- /dev/null > +++ b/libgcc/config/loongarch/crti.S > @@ -0,0 +1,43 @@ > +/* Copyright (C)

[PATCH v1 7/7] LoongArch Port: Regenerate configure

2021-11-06 Thread Chenghua Xu
From: chenglulu * config/picflag.m4: Default add build option '-fpic' for LoongArch. * configure: Add LoongArch tuples. * configure.ac: Like wise. --- config/picflag.m4 | 3 +++ configure | 12 +++- configure.ac | 10 +- 3 files changed, 23

[PATCH v1 6/7] LoongArch Port: gcc/testsuite

2021-11-06 Thread Chenghua Xu
From: chenglulu gcc/testsuite/ * g++.dg/cpp0x/constexpr-rom.C: Add build options for LoongArch. * g++.old-deja/g++.abi/ptrmem.C: Add LoongArch support. * g++.old-deja/g++.pt/ptrmem6.C: xfail for LoongArch. * gcc.dg/20020312-2.c: Add LoongArch support. *

[PATCH v1 5/7] LoongArch Port: libgomp

2021-11-06 Thread Chenghua Xu
From: chenglulu libgomp/ * configure.tgt: Add LoongArch tuple. --- libgomp/configure.tgt | 4 1 file changed, 4 insertions(+) diff --git a/libgomp/configure.tgt b/libgomp/configure.tgt index d4f1e741b5a..2cd7272fcd8 100644 --- a/libgomp/configure.tgt +++ b/libgomp/configure.tgt

[PATCH v1 4/7] LoongArch Port: Regenerate libgcc/configure.

2021-11-06 Thread Chenghua Xu
From: chenglulu --- libgcc/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/configure b/libgcc/configure index 4919a56f518..150ea04cb3d 100755 --- a/libgcc/configure +++ b/libgcc/configure @@ -5066,7 +5066,7 @@ $as_echo "$libgcc_cv_cfi" >&6; } # word size

[PATCH v1 3/7] LoongArch Port: libgcc

2021-11-06 Thread Chenghua Xu
From: chenglulu libgcc/ * config/loongarch/crtfastmath.c: New file. * config/loongarch/crti.S: Like wise. * config/loongarch/crtn.S: Like wise. * config/loongarch/lib2funcs.c: Like wise. * config/loongarch/linux-unwind.h: Like wise. *

[PATCH v1 2/7] LoongArch Port: Regenerate gcc/configure.

2021-11-06 Thread Chenghua Xu
From: chenglulu --- gcc/configure | 63 ++- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/gcc/configure b/gcc/configure index 920868bcd33..5044fc27e42 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7759,6 +7759,9 @@ else

<    1   2