[PATCH] Fix warnings seen by clang in gcc/symbol-summary.h.

2019-06-25 Thread Martin Liška
Hi. The patch is about missing argument to function call and unused arguments in symbol-summary.h. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: 2019-06-25 Martin Liska * symbol-summary.h (traverse): Pass

[PING^5] [PATCH V3] PR88497 - Extend reassoc for vector bit_field_ref

2019-06-25 Thread Kewen.Lin
Hi all, Gentle ping for this patch: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00966.html on 2019/6/11 上午10:46, Kewen.Lin wrote: > Hi, > > Gentle ping again. Thanks! > > Kewen > > on 2019/5/21 上午10:02, Kewen.Lin wrote: >> Hi, >> >> Gentle ping again. Thanks! >> >> >> Kewen >> >> on 2019/

Re: [PATCH] [RS6000] Change maddld match_operand from DI to GPR

2019-06-25 Thread Li Jia He
On 2019/6/24 3:38 PM, Segher Boessenkool wrote: Hi Lijia, On Mon, Jun 24, 2019 at 01:00:05AM -0500, Li Jia He wrote: >From PowerPC ISA3.0, the description of `maddld RT, RA.RB, RC` is as follows: 64-bit RA and RB are multiplied and then the RC is signed extend to 128 bits, and add them toget

[C++ PATCH] PR c++/70462 - unnecessary base ctor variant with final.

2019-06-25 Thread Jason Merrill
As pointed out in the PR, we don't need base 'tor variants for a final class, since it can never be a base. I tried also dropping complete variants for abstract classes, but that runs into ABI compatibility problems with older releases that refer to those symbols. Tested x86_64-pc-linux-gnu, appl

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Hongtao Liu
On Wed, Jun 26, 2019 at 1:13 AM Uros Bizjak wrote: > > On Tue, Jun 25, 2019 at 4:44 AM Hongtao Liu wrote: > > > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > > > > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > > > > > > > >> > > +/* Register pair. */ > > > > > >

[Committed] PR fortran/90988 -- Fix.

2019-06-25 Thread Steve Kargl
Committed as obvious. The patch fixes PR fortran/90988 where a less than informative error is emitted for invalid code with a PUBLIC specification statement. As a bonus fix parsing errors for PRIVATE and PROTECTED as pointed out in https://gcc.gnu.org/ml/fortran/2019-06/msg00144.html 2019-06-24

[RFA][tree-optimization/90883] Improve DSE to handle redundant calls

2019-06-25 Thread Jeff Law
So based on the conversation in the BZ I cobbled together a patch to extend tree-ssa-dse.c to also detect redundant stores. To be clear, given two stores, the first store is dead if the later store overwrites all the live bytes set by the first store. In this case we delete the first store. If

Re: [PATCH V2, RFC] Fix PR62147 by passing finiteness information to RTL phase

2019-06-25 Thread Kewen.Lin
Hi Jeff, on 2019/6/26 上午5:49, Jeff Law wrote: > On 6/25/19 3:41 AM, Kewen.Lin wrote: >> Hi Richard, >> >> Thanks a lot for review comments. >> >> on 2019/6/25 下午3:23, Richard Biener wrote: >>> On Tue, 25 Jun 2019, Kewen.Lin wrote: >>> Hi all, It's based on two observations: >>

Re: [PATCH 1/2] PR c/65403 - Ignore -Wno-error=

2019-06-25 Thread Alex Henrie
On Wed, Jun 19, 2019 at 11:52 AM Jeff Law wrote: > > On 3/18/19 8:46 PM, Alex Henrie wrote: > > From: Manuel López-Ibáñez > > > > * opts.c: Ignore -Wno-error= except if there are > > other diagnostics. > That's not a complete ChangeLog entry. Each file/function changed > should be mentioned. So

libgo patch committed: Ignore symbols with a leading dot in test script

2019-06-25 Thread Ian Lance Taylor
This libgo patch by Clément Chigot changes the libgo testsuite script to ignore symbols with a leading dot. On AIX, a function has two symbols, a text symbol (with a leading dot) and a data one (without it). As the tests must be run only once, only the data symbol can be used to retrieve the fina

libgo patch committed: Silence ar with D flag failures

2019-06-25 Thread Ian Lance Taylor
This patch by Clément Chigot modifies the go tool to not display failures when invoking ar with the D flag if the flag is not supported. The corresponding Go toolchain patch is https://golang.org/cl/182077. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Ind

Re: [PATCH] constrain one character optimization to one character stores (PR 90989)

2019-06-25 Thread Martin Sebor
On 6/25/19 3:38 PM, Jeff Law wrote: On 6/24/19 6:47 PM, Martin Sebor wrote: On 6/24/19 5:59 PM, Jeff Law wrote: On 6/24/19 5:50 PM, Martin Sebor wrote: The strlen enhancement committed in r263018 to handle multi-character assignments extended the handle_char_store() function to handle such sto

Re: [PATCH] RISC-V: Add -malign-data= option.

2019-06-25 Thread Andrew Pinski
On Tue, Jun 25, 2019 at 3:46 PM Ilia Diachkov wrote: > > Hello, > > This patch adds new machine specific option -malign-data={word,abi} to > RISC-V port. The option switches alignment of global variables and > constants of array/record/union types. The default value > (-malign-data=word) keeps ex

[PATCH] RISC-V: Add -malign-data= option.

2019-06-25 Thread Ilia Diachkov
Hello, This patch adds new machine specific option -malign-data={word,abi} to RISC-V port. The option switches alignment of global variables and constants of array/record/union types. The default value (-malign-data=word) keeps existing way of alignment computation. Another option value (-ma

Re: [PATCH V2, RFC] Fix PR62147 by passing finiteness information to RTL phase

2019-06-25 Thread Jeff Law
On 6/25/19 3:41 AM, Kewen.Lin wrote: > Hi Richard, > > Thanks a lot for review comments. > > on 2019/6/25 下午3:23, Richard Biener wrote: >> On Tue, 25 Jun 2019, Kewen.Lin wrote: >> >>> Hi all, >>> >>> >>> It's based on two observations: >>> 1) the loop structure for one specific loop is shared

Re: [PATCH 01/30] Changes to machine independent code

2019-06-25 Thread Jeff Law
On 6/25/19 2:22 PM, acsaw...@linux.ibm.com wrote: > From: Aaron Sawdey > > * builtins.c (get_memory_rtx): Fix comment. > * optabs.def (movmem_optab): Change to cpymem_optab. > * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem. > (emit_block_move_hints): Change

Re: [PATCH] constrain one character optimization to one character stores (PR 90989)

2019-06-25 Thread Jeff Law
On 6/24/19 6:47 PM, Martin Sebor wrote: > On 6/24/19 5:59 PM, Jeff Law wrote: >> On 6/24/19 5:50 PM, Martin Sebor wrote: >>> The strlen enhancement committed in r263018 to handle multi-character >>> assignments extended the handle_char_store() function to handle such >>> stores via MEM_REFs.  Prior

Re: [PATCH 17/30] Changes to microblaze

2019-06-25 Thread Michael Eager
OK On 6/25/19 1:22 PM, acsaw...@linux.ibm.com wrote: From: Aaron Sawdey * config/microblaze/microblaze.c: Change movmem to cpymem in comment. * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi. --- gcc/config/microblaze/microblaze.c | 2 +- gcc/config/mic

[PATCH 30/30] Changes to xtensa

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi. --- gcc/config/xtensa/xtensa.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md index 362e5ff..d1448a0 100644 --- a/gcc/config/x

Re: [PATCH 30/30] Changes to xtensa

2019-06-25 Thread augustine.sterl...@gmail.com
On Tue, Jun 25, 2019 at 1:41 PM wrote: > > From: Aaron Sawdey > > * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi. > --- > gcc/config/xtensa/xtensa.md | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) OK for xtensa.

[PATCH 29/30] Changes to visium

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/visium/visium.h: Change movmem to cpymem in comment. * config/visium/visium.md (movmemsi): Change name to cpymemsi. --- gcc/config/visium/visium.h | 4 ++-- gcc/config/visium/visium.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH 28/30] Changes to vax

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype for nonexistent function. * config/vax/vax.h: Change movmem to cpymem in comment. * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem. --- gcc/config/vax/vax-protos

[PATCH 26/30] Changes to sh

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/sh/sh.md (movmemsi): Change name to cpymemsi. --- gcc/config/sh/sh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 8354377..ed70e34 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.m

[PATCH 27/30] Changes to sparc

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/sparc/sparc.h: Change movmem to cpymem in comment. --- gcc/config/sparc/sparc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 015065f..2dd765b 100644 --- a/gcc/config/sparc/sparc.h

[PATCH 25/30] Changes to s390

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/s390/s390-protos.h: Change movmem to cpymem. * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem, s390_expand_insv): Change movmem to cpymem. * config/s390/s390.md (movmem, movmem_short, *movmem_short, movmem_long, *movm

[PATCH 24/30] Changes to rx

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change movmem to cpymem. --- gcc/config/rx/rx.md | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md index 2790882..9df73e6 100644 --

[PATCH 23/30] Changes to rs6000

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi. --- gcc/config/rs6000/rs6000.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index b04c7055..c3087e5 100644 --- a/gcc/config/

[PATCH 22/30] Changes to riscv

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/riscv/riscv.c: Change movmem to cpymem in comment. * config/riscv/riscv.h: Change movmem to cpymem. * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi. --- gcc/config/riscv/riscv.c | 2 +- gcc/config/riscv/riscv.h | 8 gcc/c

[PATCH 21/30] Changes to pdp11

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/pdp11/pdp11.md (movmemhi, movmemhi1, movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem. --- gcc/config/pdp11/pdp11.md | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/config/pdp11/pdp11.md b/gcc/config/pdp11

[PATCH 20/30] Changes to pa

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem. (pa_adjust_insn_length): Change call to compute_movmem_length. * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload, movmemdi, movmemdi_prereload, movmemdi

[PATCH 19/30] Changes to nds32

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/nds32/nds32-memory-manipulation.c (nds32_expand_movmemsi_loop_unknown_size, nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop, nds32_expand_movmemsi_unroll, nds32_expand_movmemsi): Change movmem to cpymem.

[PATCH 18/30] Changes to mips

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/mips/mips.c (mips_use_by_pieces_infrastructure_p): Change movmem to cpymem. * config/mips/mips.h: Change movmem to cpymem. * config/mips/mips.md (movmemsi): Change name to cpymemsi. --- gcc/config/mips/mips.c | 10 +- gcc/confi

[PATCH 17/30] Changes to microblaze

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/microblaze/microblaze.c: Change movmem to cpymem in comment. * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi. --- gcc/config/microblaze/microblaze.c | 2 +- gcc/config/microblaze/microblaze.md | 2 +- 2 files changed, 2 insertion

[PATCH 16/30] Changes to mcore

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/mcore/mcore.md (movmemsi): Change name to cpymemsi. --- gcc/config/mcore/mcore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/mcore/mcore.md b/gcc/config/mcore/mcore.md index cc84e34..c689351 100644 --- a/gcc/config/mcore/mco

[PATCH 15/30] Changes to m32r

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem. * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem to cpymem. --- gcc/config/m32r/m32r.c | 4 ++-- gcc/config/m32r/m32r.md | 4 ++-- 2 files changed, 4 insertions(+

[PATCH 01/30] Changes to machine independent code

2019-06-25 Thread acsawdey
From: Aaron Sawdey * builtins.c (get_memory_rtx): Fix comment. * optabs.def (movmem_optab): Change to cpymem_optab. * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem. (emit_block_move_hints): Change movmem to cpymem. * defaults.h: Change movmem

[PATCH 13/30] Changes to lm32

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/lm32/lm32.md (movmemsi): Change name to cpymemsi. --- gcc/config/lm32/lm32.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/lm32/lm32.md b/gcc/config/lm32/lm32.md index c09052c..91a5fe1 100644 --- a/gcc/config/lm32/lm32.md +++

[PATCH 14/30] Changes to m32c

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op, movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem. * config/m32c/m32c-protos.h: Change movmem to cpymem. * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to

[PATCH 12/30] Changes to i386

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/i386/i386-expand.c (expand_set_or_movmem_via_loop, expand_set_or_movmem_via_rep, expand_movmem_epilogue, expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue, expand_small_cpymem_or_setmem, expand_set_or_cpymem_prologue

[PATCH 10/30] Changes to ft32

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/ft32/ft32.md (movmemsi): Change name to cpymemsi. --- gcc/config/ft32/ft32.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/ft32/ft32.md b/gcc/config/ft32/ft32.md index de23946..9e31f2c 100644 --- a/gcc/config/ft32/ft32.md +++

[PATCH 11/30] Changes to h8300

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/h8300/h8300.md (movmemsi): Change name to cpymemsi. --- gcc/config/h8300/h8300.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index eb0ae83..42610fd 100644 --- a/gcc/config/h8300

[PATCH 09/30] Changes to frv

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/frv/frv.md (movmemsi): Change name to cpymemsi. --- gcc/config/frv/frv.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/frv/frv.md b/gcc/config/frv/frv.md index 064bf53..6e8db59 100644 --- a/gcc/config/frv/frv.md +++ b/gcc/conf

[PATCH 07/30] Changes to bfin

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/bfin/bfin-protos.h: Change movmem to cpymem. * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem): Change movmem to cpymem. * config/bfin/bfin.h: Change movmem to cpymem in comment. * config/bfin/bfin.md (movmemsi):

[PATCH 08/30] Changes to c6x

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/c6x/c6x-protos.h: Change movmem to cpymem. * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem. * config/c6x/c6x.md (movmemsi): Change name to cpymemsi. --- gcc/config/c6x/c6x-protos.h | 2 +- gcc/config/c6x/c6x.c| 4 ++-- g

[PATCH 06/30] Changes to avr

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/avr/avr-protos.h: Change movmem to cpymem. * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi, avr_out_movmem): Change movmem to cpymem. * config/avr/avr.md (movmemhi, movmem_, movmemx_): Change movmem to cpymem. ---

[PATCH 05/30] Changes to arm

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/arm/arm-protos.h: Change movmem to cpymem in names. * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi, gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem. * config/arm/arm.md (movmemqi): Change movmem to cpym

[PATCH 04/30] Changes to arc

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/arc/arc-protos.h: Change movmem to cpymem. * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem. * config/arc/arc.h: Change movmem to cpymem in comment. * config/arc/arc.md (movmemsi): Change movmem to cpymem. --- gcc/config/

[PATCH 03/30] Changes for alpha

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/alpha/alpha.h: Change movmem to cpymem in comment. * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change movmem to cpymem. --- gcc/config/alpha/alpha.h | 2 +- gcc/config/alpha/alpha.md | 6 +++--- 2 files changed, 4 insertions(+),

[PATCH 02/30] Changes for aarch64

2019-06-25 Thread acsawdey
From: Aaron Sawdey * config/aarch64/aarch64-protos.h: Change movmem to cpymem. * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem to cpymem. * config/aarch64/aarch64.h: Change movmem to cpymem. * config/aarch64/aarch64.md (movmemdi): Change n

[PATCH 00/30] Rename movmem pattern to cpymem

2019-06-25 Thread acsawdey
From: Aaron Sawdey As we discussed on gcc-list back in mid-May, this is the first set of patches to unscramble things so we can have sensible inline expansion of both memcpy() and memmove(). This patch renames the movmem optab entry and all uses of it to cpymem to reflect the fact that this pat

[Darwin, PPC, committed] Move the out of line register save/restore to an endfile.

2019-06-25 Thread Iain Sandoe
We have been including the out of line save/restore functions in libgcc, which means that we have to append -lgcc even when using shared libgcc. In preparation for revision of libgcc for Darwin, split this into an endfile. tested on powerpc-darwin9, applied to mainline thanks Iain gcc/ 2019-06-2

Re: [PATCH] Fix missing else keyword seen with clang-static-analyzer:

2019-06-25 Thread Jeff Law
On 6/24/19 7:13 AM, Martin Liška wrote: > > Hi. > > The patch is fixing following clang-static-analyzer error: > /home/marxin/Programming/gcc/gcc/bb-reorder.c:1031:2: warning: Value stored > to 'is_better_edge' is never read > is_better_edge = true; > ^ > /hom

Re: [PATCH] Define midpoint and lerp functions for C++20 (P0811R3)

2019-06-25 Thread Rainer Orth
Hi Jonathan, >>Doh, I looked in and saw that we get std::abs(double) from the >>Solaris headers, and then forgot and used it anyway. >> >>I'll replace that right away, thanks. > > Should be fixed at r272653. > > Tested x86_64-linux, committed to trunk. it did indeed. Thanks a lot for the super-

Re: [PATCH, rs6000] Split up rs6000.c

2019-06-25 Thread Segher Boessenkool
On Mon, Jun 24, 2019 at 05:52:36PM -0500, Bill Seurer wrote: > [PATCH, rs6000] Split up rs6000.c. > > The source file rs6000.c has grown to unreasonable size 1.2MB, 40k lines. With various includes of tables. > and is being > split up into several smaller source files. This should improve > co

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Uros Bizjak
On Tue, Jun 25, 2019 at 4:44 AM Hongtao Liu wrote: > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > > > > > >> > > +/* Register pair. */ > > > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */

[patch][aarch64]: fix frame pointer setup before tlsdesc call

2019-06-25 Thread Sylvia Taylor
Greetings, This patch fixes a bug with TLS in which the frame pointer is not established until after the tlsdesc call, thus not conforming to the aarch64 procedure call standard. Changed the tlsdesc instruction patterns to set a dependency on the x29 frame pointer. This helps the instruction sche

[C++ PATCH] * class.c (resolves_to_fixed_type_p): Check CLASSTYPE_FINAL.

2019-06-25 Thread Jason Merrill
If we have a pointer to final class, we know the dynamic type of the object must be that class, because it can't have any derived classes. Tested x86_64-pc-linux-gnu, applying to trunk. --- gcc/cp/class.c | 6 -- gcc/testsuite/g++.dg/tree-ssa/final1.C | 8 gcc

Re: [PATCH] Properly sum costs in tree-vect-loop.c (PR tree-optimization/90973).

2019-06-25 Thread Martin Liška
On 6/25/19 4:18 PM, Richard Biener wrote: > On Tue, Jun 25, 2019 at 10:50 AM David Malcolm wrote: >> >> On Tue, 2019-06-25 at 10:16 +0200, Martin Liška wrote: >>> Hi. >>> >>> That's a thinko that's pre-approved by Richi. >>> >>> Patch can bootstrap on x86_64-linux-gnu and survives regression >>> t

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread H.J. Lu
On Tue, Jun 25, 2019 at 7:55 AM Jeff Law wrote: > > On 6/25/19 8:34 AM, H.J. Lu wrote: > > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: > >> > >> On 6/25/19, Hongtao Liu wrote: > >>> On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Jeff Law
On 6/25/19 8:34 AM, H.J. Lu wrote: > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: >> >> On 6/25/19, Hongtao Liu wrote: >>> On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > +/* Register pair. */ >>>

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Richard Sandiford
"H.J. Lu" writes: > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: >> >> On 6/25/19, Hongtao Liu wrote: >> > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: >> >> >> >> On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: >> >> >> >> > > > > > > > > > >> > > +/* Register pair. */ >> >> > >

Re: [patch] Add NetBSD/hppa target

2019-06-25 Thread Jeff Law
On 6/25/19 1:57 AM, co...@sdf.org wrote: > On Fri, Jun 14, 2019 at 01:32:11PM -0400, John David Anglin wrote: +hppa*-*-netbsd*) + target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS" >>> Any reason to not use the PA 2.0 ISA? I'm virtually certain we >>> supported the 32bit ABI running on

Re: [SVE] [fwprop] PR88833 - Redundant moves for WHILELO-based loops

2019-06-25 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Mon, 24 Jun 2019 at 21:41, Prathamesh Kulkarni > wrote: >> >> On Mon, 24 Jun 2019 at 19:51, Richard Sandiford >> wrote: >> > >> > Prathamesh Kulkarni writes: >> > > @@ -1415,6 +1460,19 @@ forward_propagate_into (df_ref use) >> > >if (!def_set) >> > > re

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread H.J. Lu
On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: > > On 6/25/19, Hongtao Liu wrote: > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > >> > >> On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > >> > >> > > > > > > > > > >> > > +/* Register pair. */ > >> > > > > > > > > > >> > > +VECTOR_

Re: [PATCH][RFC] Sanitize equals and hash functions in hash-tables.

2019-06-25 Thread Richard Biener
On Tue, Jun 25, 2019 at 12:25 PM Martin Liška wrote: > > On 6/24/19 4:09 PM, Richard Biener wrote: > > You still get one instance in each TU ... > > Right, fixed in attached patch. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? Yes. Thanks,

Re: [PATCH] Properly sum costs in tree-vect-loop.c (PR tree-optimization/90973).

2019-06-25 Thread Richard Biener
On Tue, Jun 25, 2019 at 10:50 AM David Malcolm wrote: > > On Tue, 2019-06-25 at 10:16 +0200, Martin Liška wrote: > > Hi. > > > > That's a thinko that's pre-approved by Richi. > > > > Patch can bootstrap on x86_64-linux-gnu and survives regression > > tests. > > > > Thanks, > > Martin > > > > gcc/C

Re: [PATCH] Add .gnu.lto_.meta section.

2019-06-25 Thread Richard Biener
On Tue, Jun 25, 2019 at 10:14 AM Martin Liška wrote: > > On 6/24/19 8:05 PM, Richard Biener wrote: > > On Mon, Jun 24, 2019 at 3:31 PM Martin Liška wrote: > >> > >> On 6/24/19 2:44 PM, Richard Biener wrote: > >>> On Mon, Jun 24, 2019 at 2:12 PM Martin Liška wrote: > > On 6/24/19 2:02 P

Re: value_range and irange unification

2019-06-25 Thread Richard Biener
On Tue, Jun 25, 2019 at 10:05 AM Aldy Hernandez wrote: > > > > On 6/24/19 9:24 AM, Richard Biener wrote: > > On Fri, Jun 21, 2019 at 1:41 PM Aldy Hernandez wrote: > >> > >> Hi Richard. Hi folks. > >> > >> In order to unify the APIs for value_range and irange, we'd like to make > >> some minor ch

Re: [C++ PATCH] Fix ICE in constexpr evaluation of ADDR_EXPR of ARRAY_REF of a vector (PR c++/90969)

2019-06-25 Thread Jason Merrill
On Tue, Jun 25, 2019 at 4:41 AM Jakub Jelinek wrote: > As mentioned in the PR, the following testcase ICEs starting with > r272430. The problem is that if cxx_eval_array_reference is called with > lval true, we just want to constant evaluate the index and array, but need > to keep the ARRAY_REF o

Re: [PATCH] Enable use of #pragma omp simd reduction(inscan,...) even for GCC10+ in PSTL

2019-06-25 Thread Jonathan Wakely
On 24/06/19 15:18 -0700, Thomas Rodgers wrote: Ok for trunk. Yup, this is OK then, thanks for checking it, Thomas. Can you push it into upstream PSTL? Yes. Thanks, Tom. Jakub Jelinek writes: Hi! Now that GCC supports inclusive/exclusive scans (like ICC 19.0 so far in simd constructs

Re: [PATCH] Define midpoint and lerp functions for C++20 (P0811R3)

2019-06-25 Thread Jonathan Wakely
On 25/06/19 10:12 +0100, Jonathan Wakely wrote: On 25/06/19 11:06 +0200, Rainer Orth wrote: Hi Jonathan, On 12/03/19 23:04 +, Jonathan Wakely wrote: On 12/03/19 22:49 +, Joseph Myers wrote: On Tue, 5 Mar 2019, Jonathan Wakely wrote: The midpoint and lerp functions for floating poin

Re: [PATCH] Automatics in equivalence statements

2019-06-25 Thread Mark Eggleston
On 25/06/2019 00:17, Jeff Law wrote: On 6/24/19 2:19 AM, Bernhard Reutner-Fischer wrote: On Fri, 21 Jun 2019 07:10:11 -0700 Steve Kargl wrote: On Fri, Jun 21, 2019 at 02:31:51PM +0100, Mark Eggleston wrote: Currently variables with the AUTOMATIC attribute can not appear in an EQUIVALENCE s

[PATCH] Try fix PR90911

2019-06-25 Thread Richard Biener
PR90911 reports a slowdown of 456.hmmer with the recent introduction of vectorizer versioning of outer loops, more specifically the case of re-using if-conversion created versions. The patch below fixes things up to adjust the edge probability and scale the loop bodies in two steps, delaying sca

Re: Use ODR for canonical types construction in LTO

2019-06-25 Thread Christophe Lyon
Hi, On Tue, 25 Jun 2019 at 10:20, Jan Hubicka wrote: > > > > * gcc-interface/decl.c (gnat_to_gnu_entity): Check that > > > type is array or integer prior checking string flag. > > > > The test for array is superfluous here. > > > > > * gcc-interface/gigi.h (gnat_signed_type_for, > >

[PATCH] Transform filter-rtags-warnings to filter-clang-warnings.

2019-06-25 Thread Martin Liška
Hi. I've left using rtags, but I'm still interested in clang warnings produced for GCC. Thus I'm transforming the script a bit. Current output: /home/marxin/Programming/gcc/gcc/config/i386/i386.c:10364:6: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] /home/marx

Re: [SVE] [fwprop] PR88833 - Redundant moves for WHILELO-based loops

2019-06-25 Thread Prathamesh Kulkarni
On Mon, 24 Jun 2019 at 21:41, Prathamesh Kulkarni wrote: > > On Mon, 24 Jun 2019 at 19:51, Richard Sandiford > wrote: > > > > Prathamesh Kulkarni writes: > > > @@ -1415,6 +1460,19 @@ forward_propagate_into (df_ref use) > > >if (!def_set) > > > return false; > > > > > > + if (reg_prop_o

Re: [PATCH][RFC] Sanitize equals and hash functions in hash-tables.

2019-06-25 Thread Martin Liška
On 6/25/19 12:25 PM, Martin Liška wrote: > On 6/24/19 4:09 PM, Richard Biener wrote: >> You still get one instance in each TU ... > > Right, fixed in attached patch. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > Btw.

Re: [PATCH] Remove dead code in df-scan.c (PR tree-optimization/90978).

2019-06-25 Thread Richard Sandiford
Martin Liška writes: > Hi. > > The patch is about removal of an unreachable code. That has been proved > by an accidental gcc_unreachable places 9 year ago. Heh. > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? Yes, thanks. Richard > Thanks,

Re: C++ PATCH for c++/83820 - excessive attribute arguments not detected

2019-06-25 Thread Iain Sandoe
Hi Dominique, > On 25 Jun 2019, at 12:10, Dominique d'Humières wrote: > > On darwin* I see > > FAIL: g++.dg/cpp0x/gen-attrs-67.C -std=c++14 (test for excess errors) > FAIL: g++.dg/cpp0x/gen-attrs-67.C -std=c++17 (test for excess errors) > > This is caused by the additional error > > /opt/gc

Re: C++ PATCH for c++/83820 - excessive attribute arguments not detected

2019-06-25 Thread Dominique d'Humières
On darwin* I see FAIL: g++.dg/cpp0x/gen-attrs-67.C -std=c++14 (test for excess errors) FAIL: g++.dg/cpp0x/gen-attrs-67.C -std=c++17 (test for excess errors) This is caused by the additional error /opt/gcc/_clean/gcc/testsuite/g++.dg/cpp0x/gen-attrs-67.C:11:34: error: constructor priorities ar

PING: [PATCH, Modula-2 (C/C++/D/F/Go/Jit)] (Register spec fn) (v2)

2019-06-25 Thread Gaius Mulley
Just wanted to politely ping https://gcc.gnu.org/ml/gcc-patches/2019-06/msg00832.html (which was a rewrite of: https://gcc.gnu.org/ml/gcc-patches/2013-11/msg02620.html to set the context of the above approach) OK for trunk? regards, Gaius

Re: [PATCH][RFC] Sanitize equals and hash functions in hash-tables.

2019-06-25 Thread Martin Liška
On 6/24/19 4:09 PM, Richard Biener wrote: > You still get one instance in each TU ... Right, fixed in attached patch. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin >From aa5ea14a8665b14aa60245c42bd4c9809d0bf81a Mon Sep 17 00:00:00 20

[PATCH] PR90930 followup

2019-06-25 Thread Richard Biener
This avoids going back-and-forth from linearized to widened expressions in reassoc twice and only rewrites expressions according to reassoc-width in the last reassoc pass. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2019-06-25 Richard Biener PR t

Re: [PATCH][MSP430] Implement alternate "__intN__" form of "__intN" type

2019-06-25 Thread Jozef Lawrynowicz
On Mon, 24 Jun 2019 17:53:48 -0600 Jeff Law wrote: > On 6/24/19 4:25 AM, Jozef Lawrynowicz wrote: > > > > diff --git a/gcc/brig/brig-lang.c b/gcc/brig/brig-lang.c > > index 91c7cfa35da..be853ccbc02 100644 > > --- a/gcc/brig/brig-lang.c > > +++ b/gcc/brig/brig-lang.c > > @@ -864,10 +864,12 @@ bri

Re: [PATCH] [ARC] Fix PR89838

2019-06-25 Thread Claudiu Zissulescu
Thank you guys for your review. Patch pushed to master. Claudiu

[PATCH V2, RFC] Fix PR62147 by passing finiteness information to RTL phase

2019-06-25 Thread Kewen.Lin
Hi Richard, Thanks a lot for review comments. on 2019/6/25 下午3:23, Richard Biener wrote: > On Tue, 25 Jun 2019, Kewen.Lin wrote: > >> Hi all, >> >> >> It's based on two observations: >> 1) the loop structure for one specific loop is shared between middle-end >> and >> back-end. >> 2)

Re: [committed, amdgcn] Wait for exit value to write before exiting.

2019-06-25 Thread Andrew Stubbs
On 24/05/2019 16:31, Andrew Stubbs wrote: This patch fixes a bug in which GCN5 devices often fail to return an exit value because it's not yet been written to memory when the program exits. The fix is simply to wait for it properly. GCN3 devices did not demonstrate the problem, but it was techn

Re: [committed, amdgcn] Fix stack initialization bug

2019-06-25 Thread Andrew Stubbs
On 24/05/2019 12:12, Andrew Stubbs wrote: This patch fixes a 64-bit arithmetic bug in which the wrong instruction was used for the lo-part resulting in an incorrect calculation for the hi-part (signed vs. unsigned add). This causes a Memory Access Fault whenever the launcher happens to choose a

[PATCH] Change std::ceil2 to be undefined if the result can't be represented

2019-06-25 Thread Jonathan Wakely
* include/std/bit (__ceil2): Make unrepresentable results undefined, as per P1355R2. Add debug assertion. Perform one left shift, not two, so that out of range values cause undefined behaviour. Ensure that shift will still be undefined if left operand is promoted.

[PATCH] Remove dead code in df-scan.c (PR tree-optimization/90978).

2019-06-25 Thread Martin Liška
Hi. The patch is about removal of an unreachable code. That has been proved by an accidental gcc_unreachable places 9 year ago. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: 2019-06-25 Martin Liska PR tre

Re: [PATCH] Define midpoint and lerp functions for C++20 (P0811R3)

2019-06-25 Thread Jonathan Wakely
On 25/06/19 11:06 +0200, Rainer Orth wrote: Hi Jonathan, On 12/03/19 23:04 +, Jonathan Wakely wrote: On 12/03/19 22:49 +, Joseph Myers wrote: On Tue, 5 Mar 2019, Jonathan Wakely wrote: The midpoint and lerp functions for floating point types come straight from the P0811R3 proposal,

Re: [PATCH] Define midpoint and lerp functions for C++20 (P0811R3)

2019-06-25 Thread Rainer Orth
Hi Jonathan, > On 12/03/19 23:04 +, Jonathan Wakely wrote: >>On 12/03/19 22:49 +, Joseph Myers wrote: >>>On Tue, 5 Mar 2019, Jonathan Wakely wrote: >>> The midpoint and lerp functions for floating point types come straight from the P0811R3 proposal, with no attempt at optimization.

RE: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch)

2019-06-25 Thread Richard Biener
On Tue, 25 Jun 2019, Tamar Christina wrote: > Adding some maintainers > > > -Original Message- > > From: gcc-patches-ow...@gcc.gnu.org On > > Behalf Of Tamar Christina > > Sent: Tuesday, June 25, 2019 09:31 > > To: gcc-patches@gcc.gnu.org > > Cc: nd > > Subject: [GCC][middle-end] Add r

Re: [PATCH] Properly sum costs in tree-vect-loop.c (PR tree-optimization/90973).

2019-06-25 Thread David Malcolm
On Tue, 2019-06-25 at 10:16 +0200, Martin Liška wrote: > Hi. > > That's a thinko that's pre-approved by Richi. > > Patch can bootstrap on x86_64-linux-gnu and survives regression > tests. > > Thanks, > Martin > > gcc/ChangeLog: > > 2019-06-24 Martin Liska > > PR tree-optimization/909

[C++ PATCH] Fix ICE in constexpr evaluation of ADDR_EXPR of ARRAY_REF of a vector (PR c++/90969)

2019-06-25 Thread Jakub Jelinek
Hi! As mentioned in the PR, the following testcase ICEs starting with r272430. The problem is that if cxx_eval_array_reference is called with lval true, we just want to constant evaluate the index and array, but need to keep the ARRAY_REF or possibly new one with updated operands in the IL. The c

RE: [GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch)

2019-06-25 Thread Tamar Christina
Adding some maintainers > -Original Message- > From: gcc-patches-ow...@gcc.gnu.org On > Behalf Of Tamar Christina > Sent: Tuesday, June 25, 2019 09:31 > To: gcc-patches@gcc.gnu.org > Cc: nd > Subject: [GCC][middle-end] Add rules to strip away unneeded type casts > in expressions (2nd p

[GCC][middle-end] Add rules to strip away unneeded type casts in expressions (2nd patch)

2019-06-25 Thread Tamar Christina
Hi All, This is an updated version of my GCC-9 patch which moves part of the type conversion code from convert.c to match.pd because match.pd is able to apply this transformation in the presence of intermediate temporary variables. The previous patch was only regtested on aarch64-none-linux-gnu

RE: [PATCH][GCC][AArch64] Make processing less fragile in config.gcc

2019-06-25 Thread Tamar Christina
Hi All, This is an update to the patch rebased to after the SVE2 options have been merged. Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. Ok for trunk? Thanks, Tamar > -Original Message- > From: gcc-patches-ow...@gcc.gnu.org > On Behalf Of Tamar Christina > Sent: Tue

Re: Use ODR for canonical types construction in LTO

2019-06-25 Thread Jan Hubicka
> > * gcc-interface/decl.c (gnat_to_gnu_entity): Check that > > type is array or integer prior checking string flag. > > The test for array is superfluous here. > > > * gcc-interface/gigi.h (gnat_signed_type_for, > > maybe_character_value): Likewise. > > Wrong ChangeLog, the firs

Re: Use ODR for canonical types construction in LTO

2019-06-25 Thread Eric Botcazou
> * gcc-interface/decl.c (gnat_to_gnu_entity): Check that > type is array or integer prior checking string flag. The test for array is superfluous here. > * gcc-interface/gigi.h (gnat_signed_type_for, > maybe_character_value): Likewise. Wrong ChangeLog, the first modified

  1   2   >