Re: [PATCH] C-SKY: Support -mfloat-abi=hard.

2020-08-16 Thread Xianmiao Qu
Hi Jojo, On 8/17/20 9:52 AM, Jojo R wrote: --- a/gcc/config/csky/csky.c +++ b/gcc/config/csky/csky.c @@ -328,6 +328,10 @@ csky_cpu_cpp_builtins (cpp_reader *pfile) { builtin_define ("__csky_hard_float__"); builtin_define ("__CSKY_HARD_FLOAT__"); + if (TARGET_HARD_FLOA

[PATCH] Adjust testcase gcc.target/i386/pr92865-1.c

2020-08-16 Thread Hongtao Liu via Gcc-patches
Hi: Since This testcase is used to check generation of AVX512 vector comparison, scan-assembler for vmov instruction could be deleted, also -mprefer-vector-width=512 is added to avoid impact of different default arch/tune of GCC. Sorry for the inaccuracy of the testcase. ChangeLog gcc/testsuit

[PATCH] doc: add return type for functions in gimple.texi

2020-08-16 Thread Hu Jiangping
This patch add the return type for some functions in gimple.texi, to make the context unified. OK for trunk? Tested on x86_64. Regards! Hujp --- gcc/doc/gimple.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/doc/gimple.texi b/gcc/doc/gimple.texi index 5e0fc2e0

Re: [PATCH] Add support for putting jump table into relocation read-only section

2020-08-16 Thread HAO CHEN GUI via Gcc-patches
Segher, Please ignore the attachments in my last email. My editor cached the old things. Now they should be correct. Sorry for that. On 17/8/2020 上午 10:20, HAO CHEN GUI wrote: Segher, Seems I sent the wrong diff file. Now the attachments should be correct ones. Sorry for that. For the r

Re: [PATCH] Add support for putting jump table into relocation read-only section

2020-08-16 Thread HAO CHEN GUI via Gcc-patches
Segher, Seems I sent the wrong diff file. Now the attachments should be correct ones. Sorry for that. For the reloc,  my understanding is the jump table needs to be relocated if it's a non-relative jump table and PIC flag is set at the same time. //stmt.c  if (CASE_VECTOR_PC_RELATIVE  

[PATCH] C-SKY: Support -mfloat-abi=hard.

2020-08-16 Thread Jojo R
gcc/ChangeLog: * config/csky/csky.md (CSKY_NPARM_FREGS): New. (call_value_internal_vs/d): New. (untyped_call): New. * config/csky/csky.h (TARGET_SINGLE_FPU): New. (TARGET_DOUBLE_FPU): New. (FUNCTION_VARG_REGNO_P): New. (CSKY_VREG_MODE_P): New

[PATCH] x86: Detect Rocket Lake and Alder Lake

2020-08-16 Thread H.J. Lu via Gcc-patches
>From arch/x86/include/asm/intel-family.h on Linux kernel master branch: #define INTEL_FAM6_ROCKETLAKE 0xA7 #define INTEL_FAM6_ALDERLAKE0x97 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket Lake and Alder Lake. --- gcc/common/config/i386/cpuin