[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 fil

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 opt_ab

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 > > ../../gcc/con

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 a

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 th