Re: [PATCH 05/10] AVX512FP16: Support vector init/broadcast/set/extract for FP16.

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 21, 2021 at 3:44 PM liuhongt wrote: > > gcc/ChangeLog: > > * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic. > (_mm256_set_ph): Likewise. > (_mm512_set_ph): Likewise. > (_mm_setr_ph): Likewise. > (_mm256_setr_ph): Likewise. >

Re: [PATCH 02/10] [i386] Enable _Float16 type for TARGET_SSE2 and above.

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 21, 2021 at 6:35 PM Uros Bizjak wrote: > > On Wed, Jul 21, 2021 at 9:43 AM liuhongt wrote: > > > > gcc/ChangeLog: > > > > * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode. > > * config/i386/i386.c (enum x86_64_reg_class): Add > >

Re: [PATCH] [i386] Remove pass_cpb which is related to enable avx512 embedded broadcast from constant pool.

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 14, 2021 at 8:38 PM H.J. Lu wrote: > > On Tue, Jul 13, 2021 at 9:35 PM Hongtao Liu wrote: > > > > On Wed, Jul 14, 2021 at 10:34 AM liuhongt wrote: > > > > > > By optimizing vector movement to broadcast in ix86_expand_vector_move > > > during pass_expand, pass_reload/LRA can

Re: [POWER10] __morestack calls from pcrel code

2021-07-21 Thread Alan Modra via Gcc-patches
On Wed, Jul 21, 2021 at 08:59:04AM -0400, David Edelsohn wrote: > On Wed, Jul 21, 2021 at 4:29 AM Alan Modra wrote: > > > > On Wed, Jul 14, 2021 at 08:24:16PM -0400, David Edelsohn wrote: > > > > > > * config/rs6000/morestack.S (R2_SAVE): Define. > > > > > > (__morestack): Save and

Re: [PATCH 1/2] RISC-V: Add arch flags for T-HEAD.

2021-07-21 Thread Jojo R via Gcc-patches
— Jojo 在 2021年7月22日 +0800 AM4:53,Jim Wilson ,写道: > On Tue, Jul 13, 2021 at 11:06 AM Palmer Dabbelt wrote: > > Is there are documentation as to what this "theadc" extension is? > > The best doc I know of is    https://github.com/isrc-cas/c910-llvmThe README > is in Chinese, but google translate

RE: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-21 Thread Liu, Hongtao via Gcc-patches
>-Original Message- >From: Uros Bizjak >Sent: Wednesday, July 21, 2021 4:23 PM >To: Hongtao Liu >Cc: Liu, Hongtao ; gcc-patches@gcc.gnu.org; H. J. Lu >; Richard Biener >Subject: Re: [PATCH] Support logic shift left/right for avx512 mask type. > >On Wed, Jul 21, 2021 at 5:05 AM Hongtao

[PATCH] RISC-V: Enable overlap-by-pieces via tune param

2021-07-21 Thread Christoph Muellner via Gcc-patches
This patch adds the field overlap_op_by_pieces to the struct riscv_tune_param, which allows to enable the overlap_op_by_pieces feature of the by-pieces infrastructure. gcc/ChangeLog: * config/riscv/riscv.c (struct riscv_tune_param): New field. (riscv_overlap_op_by_pieces): New

[committed] analyzer: bulletproof -Wanalyzer-file-leak [PR101547]

2021-07-21 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r12-2460-g893b12cc12877aca1c9df6272123b26eddf12722. gcc/analyzer/ChangeLog: PR analyzer/101547 * sm-file.cc (file_leak::emit): Handle m_arg being NULL. (file_leak::describe_final_event):

[committed] analyzer: fix ICE in binding_cluster::purge_state_involving [PR101522]

2021-07-21 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r12-2459-g87bd75cd49aac68e90bd9b6b5e14582d6e0ccafa. gcc/analyzer/ChangeLog: PR analyzer/101522 * store.cc (binding_cluster::purge_state_involving): Don't change m_map whilst iterating through

Re: [PATCH, rs6000] fix failure test cases caused by disabling mode promotion for pseudos [PR100952]

2021-07-21 Thread Segher Boessenkool
Hi! On Tue, Jul 06, 2021 at 11:11:05AM +0800, HAO CHEN GUI wrote: >    The patch changed matching conditions in pr81384.c and pr56605.c. > The original conditions failed to match due to mode promotion disabled. > PR target/100952 > * gcc/testsuite/gcc.target/powerpc/pr56605.c:

Re: [PATCH, rs6000] fix execution failure of parity_1.f90 on P10 [PR100952]

2021-07-21 Thread Segher Boessenkool
Sorry for the delay! On Tue, Jul 13, 2021 at 09:38:33AM +0800, HAO CHEN GUI wrote: > PR target/100952 > * config/rs6000/rs6000.md (cstore4): Fix wrong fall through. > diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md > index 3f59b544f6a..d7c13d4e79d 100644 > ---

OpenACC 'nohost' clause

2021-07-21 Thread Thomas Schwinge
Hi! On 2018-10-02T07:11:43-0700, Cesar Philippidis wrote: > Attached is a patch that introduces support for the acc routine nohost > clause. Basically, if an acc routine function is marked as nohost, then > the compiler does not generate code for the host. This is in particular useful in

Re: [openacc] tile, independent, default, private and firstprivate support in c/++

2021-07-21 Thread Thomas Schwinge
Hi! Half a decade later... ;-) On 2015-11-05T18:10:49-0800, Cesar Philippidis wrote: > I've applied this patch to trunk. > [...] > --- /dev/null > +++ b/gcc/testsuite/g++.dg/goacc/template.C > @@ -0,0 +1,141 @@ > +[...] > +#pragma acc atomic capture > +c = b++; > + > +#pragma atomic

[committed] analyzer: fix issues with phi handling

2021-07-21 Thread David Malcolm via Gcc-patches
The analyzer's state purging code was overzealously purging state for ssa names that might be used within phi nodes, leading to false positives from -Wanalyzer-use-of-uninitialized-value. This patch updates phi handling in the analyzer to fix these issues. Successfully bootstrapped & regrtested

[committed] analyzer: fixes to -fdump-analyzer-state-purge for phi nodes

2021-07-21 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as 6bbad96cd44774bc199b256dbf4260b25b87c7db. gcc/analyzer/ChangeLog: * state-purge.cc (state_purge_annotator::add_node_annotations): Rather than erroneously always using the NULL in-edge, determine

[committed] analyzer: show BB index in BEFORE_SUPERNODE's in-edge

2021-07-21 Thread David Malcolm via Gcc-patches
This is useful for debugging how the analyzer handles phi nodes. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as 81703584769707c34533e78c7a2bc229b0e14b2d. gcc/analyzer/ChangeLog: * program-point.cc (function_point::print): Show src BB index at

[committed] analyzer: tweak dumping of min_expr/max_expr

2021-07-21 Thread David Malcolm via Gcc-patches
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as dcdf6bb24e5f113f2bb9298588105a071bddf50f. gcc/analyzer/ChangeLog: * svalue.cc (infix_p): New. (binop_svalue::dump_to_pp): Use it to print MIN_EXPR and MAX_EXPR in prefix form, rather than

Clarification on CTF/BTF workings with LTO

2021-07-21 Thread Indu Bhagat via Gcc-patches
Hello, Wanted to follow up on the CTF/BTF debug info + LTO workings. To summarize, the current status/workflow on trunk is: - The CTF container is written out in the ctfout.c or btfout.c via the ctf_debug_finalize () API. - At this time, the ctf_debug_finalize () itself is called once in

Re: [PATCH 1/2] RISC-V: Add arch flags for T-HEAD.

2021-07-21 Thread Jim Wilson
On Tue, Jul 13, 2021 at 11:06 AM Palmer Dabbelt wrote: > Is there are documentation as to what this "theadc" extension is? > The best doc I know of is https://github.com/isrc-cas/c910-llvm The README is in Chinese, but google translate does a decent job on it. If you want more details, you

[committed] fix a couple of typos in a comment

2021-07-21 Thread Martin Sebor via Gcc-patches
My eye was drawn to the typos below so I fixed them. Martin diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index 742a95a549e..cbd51ac4d7c 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -3745,7 +3745,7 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse, bool tbaa_p,

[PATCH] PR fortrsn/101564 - ICE in resolve_allocate_deallocate, at fortran/resolve.c:8169

2021-07-21 Thread Harald Anlauf via Gcc-patches
I have the impression that Gerhard is a hydra: one PR down, he submits two new ones... :-( Anyway, here's a straightforward fix for a NULL pointer dereference for an invalid argument to STAT. For an alternative patch by Steve see PR. Regtested on x86_64-pc-linux-gnu. OK for mainline / 11-branch

[PATCH] PR fortran/101536 - ICE in gfc_conv_expr_descriptor, at fortran/trans-array.c:7324

2021-07-21 Thread Harald Anlauf via Gcc-patches
Another one of Gerhard's infamous testcases. We did not properly detect and reject array elements of type CLASS as argument to an intrinsic when it should be an array. Regtested on x86_64-pc-linux-gnu. OK for mainline / 11-branch when it reopens? Thanks, Harald Fortran: extend check for

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread H.J. Lu via Gcc-patches
On Wed, Jul 21, 2021 at 12:42 PM Richard Sandiford wrote: > > Richard Sandiford writes: > > "H.J. Lu via Gcc-patches" writes: > >> On Wed, Jul 21, 2021 at 7:50 AM Richard Sandiford > >> wrote: > >>> > >>> "H.J. Lu" writes: > >>> > diff --git a/gcc/builtins.c b/gcc/builtins.c > >>> > index

[PATCH v4] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread H.J. Lu via Gcc-patches
1. Replace scalar_int_mode with fixed_size_mode in the by-pieces infrastructure to allow non-integer mode. 2. Rename widest_int_mode_for_size to widest_fixed_size_mode_for_size to return QI vector mode for memset. 3. Add op_by_pieces_d::smallest_fixed_size_mode_for_size to return the smallest

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread Richard Sandiford via Gcc-patches
Richard Sandiford writes: > "H.J. Lu via Gcc-patches" writes: >> On Wed, Jul 21, 2021 at 7:50 AM Richard Sandiford >> wrote: >>> >>> "H.J. Lu" writes: >>> > diff --git a/gcc/builtins.c b/gcc/builtins.c >>> > index 39ab139b7e1..1972301ce3c 100644 >>> > --- a/gcc/builtins.c >>> > +++

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread H.J. Lu via Gcc-patches
On Wed, Jul 21, 2021 at 12:20 PM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > > On Wed, Jul 21, 2021 at 7:50 AM Richard Sandiford > > wrote: > >> > >> "H.J. Lu" writes: > >> > diff --git a/gcc/builtins.c b/gcc/builtins.c > >> > index 39ab139b7e1..1972301ce3c 100644 > >> >

[PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-21 Thread apinski--- via Gcc-patches
From: Andrew Pinski The problem here is we try to an initialized value from a scalar constant. For vectors we need to do a vect_dup instead. This fixes that issue by using build_{one,zero}_cst instead of integer_{one,zero}_node when calling create_tailcall_accumulator. Changes from v1: * v2:

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Wed, Jul 21, 2021 at 7:50 AM Richard Sandiford > wrote: >> >> "H.J. Lu" writes: >> > diff --git a/gcc/builtins.c b/gcc/builtins.c >> > index 39ab139b7e1..1972301ce3c 100644 >> > --- a/gcc/builtins.c >> > +++ b/gcc/builtins.c >> > @@ -3890,13 +3890,16 @@

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread H.J. Lu via Gcc-patches
On Wed, Jul 21, 2021 at 7:50 AM Richard Sandiford wrote: > > "H.J. Lu" writes: > > diff --git a/gcc/builtins.c b/gcc/builtins.c > > index 39ab139b7e1..1972301ce3c 100644 > > --- a/gcc/builtins.c > > +++ b/gcc/builtins.c > > @@ -3890,13 +3890,16 @@ expand_builtin_strnlen (tree exp, rtx target, >

Re: [PATCH 23/55] rs6000: Incorporate new builtins code into the build machinery

2021-07-21 Thread Segher Boessenkool
On Thu, Jun 17, 2021 at 10:19:07AM -0500, Bill Schmidt wrote: > 2021-06-07 Bill Schmidt > > gcc/ > * config.gcc (extra_objs): Include rs6000-builtins.o and > rs6000-c.o. The rs6000-c.o part needs an explanation, and probably should be a separate (bugfix) patch (and it needs

[PATCH, committed] rs6000: Add int128 target check to pr101129.c (PR101531)

2021-07-21 Thread Bill Schmidt via Gcc-patches
Hi, PR101531 observes that gcc.target/powerpc/pr191129.c fails on 32-bit targets.  I overlooked that the OP's test case has an __int128 dependency.  This patch fixes the obvious oversight. Committed as obvious.  I plan to backport to 11, 10, and 9 once the 11.2 release is complete. Thanks!

Re: [PATCH, Fortran] [PR libfortran/101317] Bind(c): Improve error checking in CFI_* functions

2021-07-21 Thread Sandra Loosemore
On 7/21/21 11:26 AM, Tobias Burnus wrote: On 17.07.21 02:49, Sandra Loosemore wrote: This patch is for PR101317, one of the bugs uncovered by the TS29113 testsuite.  Here I'd observed that CFI_establish, etc was not diagnosing some invalid-argument situations documented in the standard,

Re: [PATCH] [DWARF] Fix hierarchy of debug information for offload kernels.

2021-07-21 Thread Hafiz Abid Qadeer
On 19/07/2021 17:41, Richard Biener wrote: > On July 19, 2021 6:13:40 PM GMT+02:00, Hafiz Abid Qadeer > wrote: >> On 19/07/2021 11:45, Richard Biener wrote: >>> On Fri, Jul 16, 2021 at 10:23 PM Hafiz Abid Qadeer >>> wrote: On 15/07/2021 13:09, Richard Biener wrote: > On Thu, Jul

Re: [PATCH 22/55] rs6000: Write static initializations for overload tables

2021-07-21 Thread Segher Boessenkool
On Thu, Jun 17, 2021 at 10:19:06AM -0500, Bill Schmidt wrote: > 2021-06-07 Bill Schmidt > > gcc/ > * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New > function. > (write_init_file): Call write_ovld_static_init. Okay for trunk. Thanks! Segher

Re: [PATCH, Fortran] [PR libfortran/101317] Bind(c): Improve error checking in CFI_* functions

2021-07-21 Thread Tobias Burnus
On 17.07.21 02:49, Sandra Loosemore wrote: This patch is for PR101317, one of the bugs uncovered by the TS29113 testsuite. Here I'd observed that CFI_establish, etc was not diagnosing some invalid-argument situations documented in the standard, although it was properly catching others. After

Re: [PATCH 21/55] rs6000: Write static initializations for built-in table

2021-07-21 Thread Segher Boessenkool
Hi! On Thu, Jun 17, 2021 at 10:19:05AM -0500, Bill Schmidt wrote: > 2021-06-07 Bill Schmidt > > gcc/ > * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New > function. > (write_init_file): Call write_bif_static_init. > + for (int j = 0; j < 3; j++) > +

Re: [PATCH 20/55] rs6000: Write output to the builtins init file, part 3 of 3

2021-07-21 Thread Segher Boessenkool
Hi! On Thu, Jun 17, 2021 at 10:19:04AM -0500, Bill Schmidt wrote: > 2021-06-15 Bill Schmidt > > gcc/ > * config/rs6000/rs6000-gen-builtins.c (typemap): New struct. > (TYPE_MAP_SIZE): New macro. > (type_map): New initialized variable. > (map_token_to_type_node): New

Re: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-21 Thread Martin Sebor via Gcc-patches
On 7/21/21 10:41 AM, Kyrylo Tkachov wrote: -Original Message- From: Gcc-patches On Behalf Of Martin Sebor via Gcc-patches Sent: 10 July 2021 00:11 To: gcc-patches ; Christophe Lyon Subject: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379) The attached tweak

Re: [PATCH] PR fortran/101514 - ICE: out of memory allocating 18446744073709551600 bytes

2021-07-21 Thread Tobias Burnus
On 20.07.21 21:49, Harald Anlauf via Gcc-patches wrote: While investigating one of Gerhard's latest bug reports, which was almost obvious to fix after a hint by Richard Biener, I found further variants of valid and invalid code that lead to either NULL pointer dereferences or similar OOM

RE: [PATCH libatomic/arm] avoid warning on constant addresses (PR 101379)

2021-07-21 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Martin Sebor > via Gcc-patches > Sent: 10 July 2021 00:11 > To: gcc-patches ; Christophe Lyon > > Subject: [PATCH libatomic/arm] avoid warning on constant addresses (PR > 101379) > > The

[committed] libstdc++: Make __gnu_cxx::sequence_buffer move-aware [PR101542]

2021-07-21 Thread Jonathan Wakely via Gcc-patches
The PR explains that Clang trunk now selects a different constructor when a non-const sequence_buffer is returned in a context where it qualifies as an implicitly-movable entity. Because lookup is first performed using an rvalue, the sequence_buffer(const sequence_buffer&) constructor gets chosen,

Re: [PATCH 10/55] rs6000: Main function with stubs for parsing and output

2021-07-21 Thread Bill Schmidt via Gcc-patches
On 7/21/21 11:08 AM, Bill Schmidt wrote: On 7/21/21 10:43 AM, Segher Boessenkool wrote: On Tue, Jul 20, 2021 at 08:51:58PM -0500, Bill Schmidt wrote: On 7/20/21 6:22 PM, Segher Boessenkool wrote: On Tue, Jul 20, 2021 at 05:19:54PM -0500, Bill Schmidt wrote: See the main function.  All

Re: [PATCH 10/55] rs6000: Main function with stubs for parsing and output

2021-07-21 Thread Bill Schmidt via Gcc-patches
On 7/21/21 10:43 AM, Segher Boessenkool wrote: On Tue, Jul 20, 2021 at 08:51:58PM -0500, Bill Schmidt wrote: On 7/20/21 6:22 PM, Segher Boessenkool wrote: On Tue, Jul 20, 2021 at 05:19:54PM -0500, Bill Schmidt wrote: See the main function.  All three files are guaranteed to have been opened

Re: [PATCH] x86: Remove OPTION_MASK_ISA_SSE4_2 from CRC32 _builtin functions

2021-07-21 Thread Uros Bizjak via Gcc-patches
V sre., 21. jul. 2021 14:23 je oseba H.J. Lu napisala: > Since > > commit 39671f87b2df6a1894cc11a161e4a7949d1ddccd > Author: H.J. Lu > Date: Thu Apr 15 05:59:48 2021 -0700 > > x86: Use crc32 target option for CRC32 intrinsics > > enabled OPTION_MASK_ISA_CRC32 for -msse4 and removed

Re: [NEWS] libstdc++: Fix testsuite for skipping gdb tests on remote/non-native target

2021-07-21 Thread Jonathan Wakely via Gcc-patches
On Wed, 21 Jul 2021 at 16:02, Marc Poulhies via Libstdc++ wrote: > > With the correct patch attached, sorry for the incorrect previous one ! Thanks for the patch. I agree we should skip the version checks, not only the actual tests. But I wonder whether we want to do that in xmethods.exp and

Re: [PATCH 10/55] rs6000: Main function with stubs for parsing and output

2021-07-21 Thread Segher Boessenkool
On Tue, Jul 20, 2021 at 08:51:58PM -0500, Bill Schmidt wrote: > On 7/20/21 6:22 PM, Segher Boessenkool wrote: > >On Tue, Jul 20, 2021 at 05:19:54PM -0500, Bill Schmidt wrote: > >>See the main function.  All three files are guaranteed to have been > >>opened for writing when this is called, but

Re: sync up new type indices for body adjustments

2021-07-21 Thread Martin Jambor
Hi, On Wed, Jul 21 2021, Alexandre Oliva wrote: > On Jul 19, 2021, Martin Jambor wrote: > >> So I would first check how come that you request IPA_PARAM_OP_COPY of >> something that does not seem to have a corresponding type but there is >> a DECL > > The corresponding type is there all right, it

Re: [PUSHED] Abstract out non_null adjustments in ranger.

2021-07-21 Thread Aldy Hernandez via Gcc-patches
As I mentioned when I pushed the patch in this thread, I have run into cases where a pointer has a non-varying range, but it includes 0. The varying check causes no further refinements to be done. The previous cases I had seen were in follow-up threader work, so I was delaying pushing this until

Re: [NEWS] libstdc++: Fix testsuite for skipping gdb tests on remote/non-native target

2021-07-21 Thread Marc Poulhies via Gcc-patches
With the correct patch attached, sorry for the incorrect previous one ! Marc - Original Message - > From: "gcc-patches" > To: "gcc-patches" , "libstdc++" > > Cc: "Luc Michel" > Sent: Tuesday, July 20, 2021 4:12:16 PM > Subject: [NEWS] libstdc++: Fix testsuite for skipping gdb tests

[PATCH 4/4] configure: remove gas versions from tls check

2021-07-21 Thread Serge Belyshev
configure: remove gas versions from tls check gcc/ChangeLog: * configure.ac (thread-local storage support): Remove tls_first_major and tls_first_minor. Use "$conftest_s" to check support. * configure: Regenerate. --- gcc/configure| 58

[PATCH 3/4] configure: fixup formatting from previous change

2021-07-21 Thread Serge Belyshev
configure: fixup formatting from previous change gcc/ChangeLog: * configure.ac: Fixup formatting. --- gcc/configure.ac | 71 ++-- 1 file changed, 27 insertions(+), 44 deletions(-) diff --git a/gcc/configure.ac b/gcc/configure.ac index

[PATCH 2/4] configure: remove version argument from gcc_GAS_CHECK_FEATURE

2021-07-21 Thread Serge Belyshev
configure: remove version argument from gcc_GAS_CHECK_FEATURE gcc/ChangeLog: * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ... * configure.ac: ... update all callers. --- gcc/acinclude.m4 | 16 ++-- gcc/configure.ac | 224

[PATCH 1/4] configure: drop version checks for in-tree gas [PR91602]

2021-07-21 Thread Serge Belyshev
configure: drop version checks for in-tree gas [PR91602] gcc/ChangeLog: PR build/91602 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE) (gcc_GAS_VERSION_GTE_IFELSE): Remove. (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.

[PATCH 0/4] drop version checks for in-tree gas [PR91602]

2021-07-21 Thread Serge Belyshev
Special-casing checks for in-tree gas features is unnecessary since r17 which made configure-gcc depend on all-gas, and thus making alternate code path in gcc_GAS_CHECK_FEATURE for in-tree gas redundant. Along the way this fixes PR 91602, which is caused by incorrect guess of leb128 support

Re: [PATCH v3] Add QI vector mode support to by-pieces for memset

2021-07-21 Thread Richard Sandiford via Gcc-patches
"H.J. Lu" writes: > diff --git a/gcc/builtins.c b/gcc/builtins.c > index 39ab139b7e1..1972301ce3c 100644 > --- a/gcc/builtins.c > +++ b/gcc/builtins.c > @@ -3890,13 +3890,16 @@ expand_builtin_strnlen (tree exp, rtx target, > machine_mode target_mode) > > static rtx > builtin_memcpy_read_str

Re: [PATCH] Fix PR 10153: tail recusion for vector types.

2021-07-21 Thread Richard Biener via Gcc-patches
On Wed, Jul 21, 2021 at 12:03 AM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > The problem here is we try to an initialized value > from a scalar constant. For vectors we need to do > a vect_dup instead. This fixes that issue and we > get the correct code even and it does not

[PATCH] x86: Remove OPTION_MASK_ISA_SSE4_2 from CRC32 _builtin functions

2021-07-21 Thread H.J. Lu via Gcc-patches
Since commit 39671f87b2df6a1894cc11a161e4a7949d1ddccd Author: H.J. Lu Date: Thu Apr 15 05:59:48 2021 -0700 x86: Use crc32 target option for CRC32 intrinsics enabled OPTION_MASK_ISA_CRC32 for -msse4 and removed TARGET_SSE4_2 check in sse4_2_crc32 pattens, remove OPTION_MASK_ISA_SSE4_2

Re: [PATCH 03/10] [i386] libgcc: Enable hfmode soft-sf/df/xf/tf extensions and truncations.

2021-07-21 Thread Uros Bizjak via Gcc-patches
On Wed, Jul 21, 2021 at 9:43 AM liuhongt wrote: > > gcc/ChangeLog: > > * optabs-query.c (get_best_extraction_insn): Use word_mode for > HF field. > > libgcc/ChangeLog: > > * config/i386/32/sfp-machine.h (_FP_NANFRAC_H): New macro. > * config/i386/64/sfp-machine.h

Re: [PATCH 02/10] [i386] Enable _Float16 type for TARGET_SSE2 and above.

2021-07-21 Thread Uros Bizjak via Gcc-patches
On Wed, Jul 21, 2021 at 9:43 AM liuhongt wrote: > > gcc/ChangeLog: > > * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode. > * config/i386/i386.c (enum x86_64_reg_class): Add > X86_64_SSEHF_CLASS. > (merge_classes): Handle X86_64_SSEHF_CLASS. >

Re: [PATCH 3/3] [PR libfortran/101305] Fix ISO_Fortran_binding.h paths in gfortran testsuite

2021-07-21 Thread Tobias Burnus
On 13.07.21 23:28, Sandra Loosemore wrote: ISO_Fortran_binding.h is now generated in the libgfortran build directory where it is on the default include path. Adjust includes in the gfortran testsuite not to include an explicit path pointing at the source directory. ... -#include

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Richard Biener
On Wed, 21 Jul 2021, Hongtao Liu wrote: > On Wed, Jul 21, 2021 at 4:16 PM Richard Biener wrote: > > > > On Wed, 21 Jul 2021, Hongtao Liu wrote: > > > > > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > > > > > On Fri, Jul

Re: [PATCH 1/3] [PR libfortran/101305] Bind(C): Fix type encodings in ISO_Fortran_binding.h

2021-07-21 Thread Tobias Burnus
On 13.07.21 23:28, Sandra Loosemore wrote: ISO_Fortran_binding.h had many incorrect hardwired kind encodings in the definitions of the CFI_type_* macros. Additionally, not all targets support all the defined type encodings, and the Fortran standard requires those macros to have a negative

Re: [PATCH 2/3] [PR libfortran/101305] Bind(C): Correct sizes of some types in CFI_establish

2021-07-21 Thread Tobias Burnus
On 13.07.21 23:28, Sandra Loosemore wrote: CFI_establish was failing to set the default elem_len correctly for CFI_type_cptr, CFI_type_cfunptr, CFI_type_long_double, and CFI_type_long_double_Complex. LGTM – thanks for the patch! Tobias 2021-07-13 Sandra Loosemore libgfortran/ PR

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 21, 2021 at 4:16 PM Richard Biener wrote: > > On Wed, 21 Jul 2021, Hongtao Liu wrote: > > > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener > > > > wrote: > > > >

Re: sync up new type indices for body adjustments

2021-07-21 Thread Alexandre Oliva
On Jul 19, 2021, Martin Jambor wrote: > So I would first check how come that you request IPA_PARAM_OP_COPY of > something that does not seem to have a corresponding type but there is > a DECL The corresponding type is there all right, it was just stored in a different vector entry, because some

[PATCH 2/2] RISC-V: Implement TARGET_COMPUTE_MULTILIB

2021-07-21 Thread Kito Cheng
Use TARGET_COMPUTE_MULTILIB to search the multi-lib reuse for riscv*-*-elf*, according following rules: 1. Check ABI is same. 2. Check both has atomic extension or both don't have atomic extension. - Because mix soft and hard atomic operation doesn't make sense and won't work as

[PATCH 1/2] Add TARGET_COMPUTE_MULTILIB hook to override multi-lib result.

2021-07-21 Thread Kito Cheng
Create a new hook to let target could override the multi-lib result, the motivation is RISC-V might have very complicated multi-lib re-use rule*, which is hard to maintain and use current multi-lib scripts, we even hit the "argument list too long" error when we tried to add more multi-lib reuse

[PATCH 0/2] New target hook TARGET_COMPUTE_MULTILIB and implementation for RISC-V

2021-07-21 Thread Kito Cheng
This patch set allow target to use customized multi-lib mechanism rather than the built-in multi-lib mechanism. The motivation of this patch is RISC-V might have very complicated multi-lib re-use rule*, which is hard to maintain and use current multi-lib scripts, we even hit the "argument list

Re: *Ping**2 [Patch] Fortran: Fix bind(C) character length checks

2021-07-21 Thread Tobias Burnus
On 16.07.21 14:55, Jerry D wrote: Good to go Tobias. Thanks for the review! I have committed it as r12-2431-gb3d4011ba10275fbd5d6ec5a16d5aaebbdfb5d3c (+ cherry picked it to OG11). The attached and committed version has split the 'Allocatable and pointer' in two separate gfc_error and removed

Re: Pushing XFAILed test cases

2021-07-21 Thread Tobias Burnus
Hi all, hi Thomas (2x), hi Sandra, On 16.07.21 09:52, Thomas Koenig via Fortran wrote: The part of the patch to add tests for this goes on top of my base TS29113 testsuite patch, which hasn't been reviewed or committed yet. It is my understanding that it is not gcc policy to add xfailed test

Re: [committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-21 Thread Andreas Schwab
On Jul 21 2021, Kito Cheng wrote: >> Additionally, you will get extra >> output on stderr when one of the commands is not found. > > I tried PYTHON will get an empty string if all of those are not found, > no stderr from which command. $ PATH=/usr/bin which foo >/dev/null which: no foo in

[PATCH] RISC-V: Allow multi-lib build with different code model

2021-07-21 Thread Kito Cheng
--with-multilib-generator was only support for different ISA/ABI combination, however code model is effect the code gen a lots it should able to handled in multilib mechanism. Adding `--cmodel=` option to `--with-multilib-generator` to generating multilib combination with different code model.

Re: [OG11] Merge GCC 11 into branch, cherry picks from mainline

2021-07-21 Thread Tobias Burnus
OG11 = devel/omp/gcc-11, a branch with some OpenMP/OpenACC/offload patches which are not yet on mainline. Additionally, patches in this area are cherry-picked from mainline. Commits since my last email on 15 June 21 which ended with commit adda89fd071. My commits are all only cherry-picks plus

Re: [committed] RISC-V: Detect python and pick best one for calling multilib-generator

2021-07-21 Thread Kito Cheng via Gcc-patches
> > diff --git a/gcc/config.gcc b/gcc/config.gcc > > index 93e2b3219b9..3df9b52cf25 100644 > > --- a/gcc/config.gcc > > +++ b/gcc/config.gcc > > @@ -4730,9 +4730,10 @@ case "${target}" in > > echo "--with-multilib-list= can't used with > > --with-multilib-generator=

Re: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-21 Thread Uros Bizjak via Gcc-patches
On Wed, Jul 21, 2021 at 5:05 AM Hongtao Liu wrote: > > On Tue, Jul 20, 2021 at 9:41 PM Uros Bizjak wrote: > > > > On Tue, Jul 20, 2021 at 2:33 PM liuhongt wrote: > > > > > > Hi: > > > As mention in > > > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575420.html > > > > > > cut

Re: [PATCH 2/4 REVIEW] libtool.m4: fix nm BSD flag detection

2021-07-21 Thread Alan Modra via Gcc-patches
On Wed, Jul 07, 2021 at 08:03:45PM +0100, Nick Alcock via Gcc-patches wrote: > On 7 Jul 2021, Nick Clifton told this: > > > Hi Nick, > > > >> Ping? > > > > Oops. > > I sent a bunch of pings out at the same time, to a bunch of different > projects. You are the only person to respond, so thank

GCC 11.1.1 Status Report (2021-07-21), branch frozen for release

2021-07-21 Thread Richard Biener
Status == The GCC 11 branch is now frozen for the upcoming GCC 11.2 release. All changes require release manager approval now. Quality Data Priority # Change from last report --- --- P1 P2 260 -

Re: [PATCH] c/101512 - fix missing address-taking in c_common_mark_addressable_vec

2021-07-21 Thread Jakub Jelinek via Gcc-patches
On Wed, Jul 21, 2021 at 10:06:51AM +0200, Richard Biener wrote: > c_common_mark_addressable_vec fails to look through C_MAYBE_CONST_EXPR > in the case it isn't at the toplevel. > > Bootstrapped and tested on x86_64-unknown-linux-gnu, OK? > > Thanks, > Richard. > > 2021-07-21 Richard Biener >

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Richard Biener
On Wed, 21 Jul 2021, Hongtao Liu wrote: > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > On Thu, 15

[PATCH] c/101512 - fix missing address-taking in c_common_mark_addressable_vec

2021-07-21 Thread Richard Biener
c_common_mark_addressable_vec fails to look through C_MAYBE_CONST_EXPR in the case it isn't at the toplevel. Bootstrapped and tested on x86_64-unknown-linux-gnu, OK? Thanks, Richard. 2021-07-21 Richard Biener PR c/101512 gcc/c-family/ * c-common.c

[committed] openmp: Fix up omp_check_private [PR101535]

2021-07-21 Thread Jakub Jelinek via Gcc-patches
Hi! The target data construct shouldn't affect omp_check_private, unless the decl there is privatized (use_device_* clauses). The routine had some code for that, but it just did continue; in a loop that looped only if the region type is one of selected 4 kinds, so effectively resulted in return

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > OK,

[committed] c++: Ensure OpenMP reduction with reference type references complete type [PR101516]

2021-07-21 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs because we haven't verified if reduction decl has reference type that TREE_TYPE of the reference is a complete type, require_complete_type on the decl doesn't ensure that. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk. 2021-07-21

[PATCH 10/10] AVX512FP16: Add abi test for zmm

2021-07-21 Thread liuhongt via Gcc-patches
gcc/testsuite/ChangeLog: * gcc.target/x86_64/abi/avx512fp16/m512h/abi-avx512fp16-zmm.exp: New file. * gcc.target/x86_64/abi/avx512fp16/m512h/args.h: Likewise. * gcc.target/x86_64/abi/avx512fp16/m512h/asm-support.S: Likewise. *

[PATCH 09/10] AVX512FP16: Add ABI test for ymm.

2021-07-21 Thread liuhongt via Gcc-patches
gcc/testsuite/ChangeLog: * gcc.target/x86_64/abi/avx512fp16/m256h/abi-avx512fp16-ymm.exp: New exp file. * gcc.target/x86_64/abi/avx512fp16/m256h/args.h: New header. * gcc.target/x86_64/abi/avx512fp16/m256h/avx512fp16-ymm-check.h: Likewise. *

[PATCH 07/10] AVX512FP16: Add tests for vector passing in variable arguments.

2021-07-21 Thread liuhongt via Gcc-patches
From: "H.J. Lu" gcc/testsuite/ChangeLog: * gcc.target/i386/avx512fp16-vararg-1.c: New test. * gcc.target/i386/avx512fp16-vararg-2.c: Ditto. * gcc.target/i386/avx512fp16-vararg-3.c: Ditto. * gcc.target/i386/avx512fp16-vararg-4.c: Ditto. ---

[PATCH 06/10] AVX512FP16: Add testcase for vector init and broadcast intrinsics.

2021-07-21 Thread liuhongt via Gcc-patches
gcc/testsuite/ChangeLog: * gcc.target/i386/m512-check.h: Add union128h, union256h, union512h. * gcc.target/i386/avx512fp16-10a.c: New test. * gcc.target/i386/avx512fp16-10b.c: Ditto. * gcc.target/i386/avx512fp16-1a.c: Ditto. *

[PATCH 05/10] AVX512FP16: Support vector init/broadcast/set/extract for FP16.

2021-07-21 Thread liuhongt via Gcc-patches
gcc/ChangeLog: * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic. (_mm256_set_ph): Likewise. (_mm512_set_ph): Likewise. (_mm_setr_ph): Likewise. (_mm256_setr_ph): Likewise. (_mm512_setr_ph): Likewise. (_mm_set1_ph): Likewise.

[PATCH 04/10] AVX512FP16: Initial support for AVX512FP16 feature and scalar _Float16 instructions.

2021-07-21 Thread liuhongt via Gcc-patches
From: "Guo, Xuepeng" gcc/ChangeLog: * common/config/i386/cpuinfo.h (get_available_features): Detect FEATURE_AVX512FP16. * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512FP16_SET, OPTION_MASK_ISA_AVX512FP16_UNSET,

[PATCH 03/10] [i386] libgcc: Enable hfmode soft-sf/df/xf/tf extensions and truncations.

2021-07-21 Thread liuhongt via Gcc-patches
gcc/ChangeLog: * optabs-query.c (get_best_extraction_insn): Use word_mode for HF field. libgcc/ChangeLog: * config/i386/32/sfp-machine.h (_FP_NANFRAC_H): New macro. * config/i386/64/sfp-machine.h (_FP_NANFRAC_H): Ditto. * config/i386/sfp-machine.h

[PATCH 02/10] [i386] Enable _Float16 type for TARGET_SSE2 and above.

2021-07-21 Thread liuhongt via Gcc-patches
gcc/ChangeLog: * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode. * config/i386/i386.c (enum x86_64_reg_class): Add X86_64_SSEHF_CLASS. (merge_classes): Handle X86_64_SSEHF_CLASS. (examine_argument): Ditto. (construct_container): Ditto.

[PATCH 01/10] Update hf soft-fp from glibc.

2021-07-21 Thread liuhongt via Gcc-patches
libgcc/ChangeLog * soft-fp/eqhf2.c: New file. * soft-fp/extendhfdf2.c: New file. * soft-fp/extendhfsf2.c: New file. * soft-fp/extendhfxf2.c: New file. * soft-fp/half.h (FP_CMP_EQ_H): New marco. * soft-fp/truncdfhf2.c: New file *

[PATCH V2 00/10] Initial support for AVX512FP16

2021-07-21 Thread liuhongt via Gcc-patches
Hi: As discussed in [1], this patch support _Float16 under target sse2 and above, w/o avx512fp16, _Float16 type is storage only, all operations are emulated by soft-fp and float instructions. Soft-fp keeps the intermediate result of the operation at 32-bit precision by defaults, which may lead

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Richard Biener
On Tue, 20 Jul 2021, Richard Biener wrote: > On Thu, 15 Jul 2021, Richard Sandiford wrote: > > > Richard Biener writes: > > > The following extends the existing loop masking support using > > > SVE WHILE_ULT to x86 by proving an alternate way to produce the > > > mask using VEC_COND_EXPRs. So