Re: Adding a new thread model to GCC

2022-10-23 Thread LIU Hao via Gcc-patches
在 2022/10/21 20:34, i.nix...@autistici.org 写道: got it... anyway it seems logical to me the way I proposed :) Below is a message forwarded from mingw-w64-public, elaborating the necessity of a new thread model. As there are objections from other mingw-w64 developers, I am putting those

[PATCH-2, rs6000] Reverse V8HI on Power8 by vector rotation [PR100866]

2022-10-23 Thread HAO CHEN GUI via Gcc-patches
Hi, This patch implements V8HI byte reverse on Power8 by vector rotation. It should be effecient than orignial vector permute. The patch comes from Xionghu's comments in PR. I just added a test case for it. Bootstrapped and tested on ppc64 Linux BE and LE with no regressions. Is this okay for

Re: [PATCH] RISC-V: Support (set (mem) (const_poly_int))

2022-10-23 Thread Kito Cheng via Gcc-patches
Merged two changes into one patch, and committed to master :) On Mon, Oct 24, 2022 at 10:28 AM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_legitimize_move): Adjust using > force_reg. > > --- > gcc/config/riscv/riscv.cc | 4 +--- > 1 file

[PATCH] ix86: Suggest unroll factor for loop vectorization

2022-10-23 Thread Cui,Lili via Gcc-patches
Hi Hongtao, This patch introduces function finish_cost and determine_suggested_unroll_factor for x86 backend, to make it be able to suggest the unroll factor for a given loop being vectorized. Referring to aarch64, RS6000 backends and basing on the analysis on SPEC2017 performance evaluation

[PATCH] RISC-V: Support (set (mem) (const_poly_int))

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv.cc (riscv_legitimize_move): Adjust using force_reg. --- gcc/config/riscv/riscv.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index

Re: [PATCH] RISC-V: Replace CONSTEXPR with constexpr

2022-10-23 Thread Kito Cheng via Gcc-patches
Committed, thanks! On Mon, Oct 24, 2022 at 10:21 AM wrote: > > From: Ju-Zhe Zhong > > Move away from the pre-C++11 compatibility macro CONSTEXPR. > This patch is inspired by aarch64: > https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603974.html. > > gcc/ChangeLog: > > *

Re: Re: [PATCH] RISC-V: Support (set (mem) (const_poly_int))

2022-10-23 Thread juzhe.zh...@rivai.ai
Address comments. Fix it soon. juzhe.zh...@rivai.ai From: Andrew Pinski Date: 2022-10-24 10:14 To: juzhe.zhong CC: gcc-patches; kito.cheng Subject: Re: [PATCH] RISC-V: Support (set (mem) (const_poly_int)) On Sun, Oct 23, 2022 at 7:04 PM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > >

Re: [PATCH] RISC-V: Remove unused TI/TF vector modes.

2022-10-23 Thread Kito Cheng via Gcc-patches
Committed, thanks :) On Mon, Oct 24, 2022 at 10:06 AM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * config/riscv/riscv-vector-switch.def (ENTRY): Remove unused TI/TF > vector modes. > > --- > gcc/config/riscv/riscv-vector-switch.def | 4 > 1 file changed, 4 deletions(-)

[PATCH] RISC-V: Replace CONSTEXPR with constexpr

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong Move away from the pre-C++11 compatibility macro CONSTEXPR. This patch is inspired by aarch64: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603974.html. gcc/ChangeLog: * config/riscv/riscv-vector-builtins-bases.cc: Replace CONSTEXPR with constexpr

Re: [PATCH] RISC-V: Fix REG_CLASS_CONTENTS.

2022-10-23 Thread Kito Cheng via Gcc-patches
Committed, thanks for the fix! On Mon, Oct 24, 2022 at 9:39 AM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * config/riscv/riscv.h (enum reg_class): Fix ALL_REGS. > > --- > gcc/config/riscv/riscv.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] RISC-V: Support (set (mem) (const_poly_int))

2022-10-23 Thread Andrew Pinski via Gcc-patches
On Sun, Oct 23, 2022 at 7:04 PM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_legitimize_move): Support (set (mem) > (const_poly_int)). > > --- > gcc/config/riscv/riscv.cc | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git

[PATCH] RISC-V: Support load/store in mov pattern for RVV modes.

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong --- gcc/config.gcc| 2 +- gcc/config/riscv/constraints.md | 22 + gcc/config/riscv/predicates.md| 23 ++ gcc/config/riscv/riscv-protos.h | 14 + gcc/config/riscv/riscv-v.cc |

[PATCH] RISC-V: Remove unused TI/TF vector modes.

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-vector-switch.def (ENTRY): Remove unused TI/TF vector modes. --- gcc/config/riscv/riscv-vector-switch.def | 4 1 file changed, 4 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-switch.def

[PATCH] RISC-V: Support (set (mem) (const_poly_int))

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv.cc (riscv_legitimize_move): Support (set (mem) (const_poly_int)). --- gcc/config/riscv/riscv.cc | 14 ++ 1 file changed, 14 insertions(+) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index

Re: [PATCH] RISC-V: Support (set (mem) (const_poly_int)) handling and remove TI/TF.

2022-10-23 Thread juzhe.zh...@rivai.ai
I made a mistake in this patch. I mixed 2 commits into a single patch. Sorry about that. Please ignore this patch. Thanks. juzhe.zh...@rivai.ai From: juzhe.zhong Date: 2022-10-24 09:53 To: gcc-patches CC: kito.cheng; palmer; Ju-Zhe Zhong Subject: [PATCH] RISC-V: Support (set (mem)

[PATCH] RISC-V: Support (set (mem) (const_poly_int)) handling and remove TI/TF.

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-vector-switch.def (ENTRY): Remove TI/TF. * config/riscv/riscv.cc (riscv_legitimize_move): Support (set (mem) (const_poly_int)). --- gcc/config/riscv/riscv-vector-switch.def | 4 gcc/config/riscv/riscv.cc

[PATCH] RISC-V: Fix REG_CLASS_CONTENTS.

2022-10-23 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv.h (enum reg_class): Fix ALL_REGS. --- gcc/config/riscv/riscv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h index acae68ebb2d..37363e975e1 100644 ---

[PATCH] Add -gcodeview option

2022-10-23 Thread Mark Harmstone
Both current lld and the next version of ld have an option -pdb, which creates a PDB file which Microsoft's debuggers can use. This patch adds a -gcodeview option, which passes this to the linker. I do intend to expand this so it also creates the .debug$S and .debug$T sections which would make

[PATCH] c: If -fplan9-extensions, allow duplicate field declarations

2022-10-23 Thread Keegan Saunders via Gcc-patches
The Plan 9 compilers defer duplicate declaration checks until field resolution time. Further, there is a priority order of resolution such that field lookups first match the name, then typedef'd names before recursing into substructures. This enables large portions of the Plan 9 userspace and

[PATCH] [PR tree-optimization/107365] Check HONOR_NANS instead of flag_finite_math_only in frange:verify_range.

2022-10-23 Thread Aldy Hernandez via Gcc-patches
[Jakub and other FP experts, would this be OK, or am I missing something?] Vax does not seem to have !flag_finite_math_only, but float_type_node does not HONOR_NANS. The check in frange::verify_range dependend on flag_finite_math_only, which is technically not correct since frange::set_varying()

RE: [PATCH] [X86_64]: Enable support for next generation AMD Zen4 CPU

2022-10-23 Thread Kumar, Venkataramanan via Gcc-patches
[AMD Official Use Only - General] Hi Richi and Jakub > -Original Message- > From: Jakub Jelinek > Sent: Saturday, October 22, 2022 10:41 PM > To: Richard Biener > Cc: Kumar, Venkataramanan ; Joshi, > Tejas Sanjay ; gcc-patches@gcc.gnu.org; > honza.hubi...@gmail.com > Subject: Re:

Re: Ping (c,c++): Handling of main() function for freestanding

2022-10-23 Thread Arsen Arsenović via Gcc-patches
On Friday, 21 October 2022 23:02:02 CEST Joseph Myers wrote: > I have no objections to the C changes. Great! Thanks for the review. I don't have push rights currently, so I must ask that someone else pushes this patch for me. Have a great day! -- Arsen Arsenović signature.asc Description:

Re: [PATCH] d: Remove D-specific version definitions from target headers

2022-10-23 Thread ibuclaw--- via Gcc-patches
> On 17/10/2022 20:08 CEST Iain Buclaw wrote: > > > Hi, > > This splits up the targetdm sources so that each file only handles one > target platform. > > Having all logic kept in the headers means that they could become out of > sync when a new target is added (loongarch*-*-linux*) or

[PATCH]: Fix static-pie on Hurd target

2022-10-23 Thread Samuel Thibault via Gcc-patches
When linking with -static-pie, we need to use rcrt0.o (and grcrt0.o for -pg). Also, set static:crt0.o before pie:Scrt1.o, otherwise -static -pie fails to link with Scrt1.o due to missing _DYNAMIC symbol. Also, -static-pie needs crtbeginS.o (otherwise it contains a relocation in read-only .text).