[PATCH] Vectorizer reduction TLC

2017-06-13 Thread Richard Biener
More TLC. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2017-06-13 Richard Biener * tree-vect-loop.c (vect_model_reduction_cost): Do not fail, instead get vector type from stmt_info. (vectorizable_reduction): Adjust. Remove dead code. Index

Re: [PR80803 1/2] Streamline SRA access enqueuing

2017-06-13 Thread Richard Biener
On Mon, 12 Jun 2017, Martin Jambor wrote: > Hi, > > this is a preparation for a patch fixing PR 80803. Basically, it > moves all checks for a non-null access->first_link before enqueuing a > SRA access into add_access_to_work_queue instead of each caller doing > it. > > Moreover, it fixes a thi

Re: [PR80803 2/2] Diligent queuing in SRA grp_write prop

2017-06-13 Thread Richard Biener
On Mon, 12 Jun 2017, Martin Jambor wrote: > Hi, > > the patch below fixes PR 80803 (and its newer duplicate 81063), it is > essentially a semi-rewrite of propagate_subaccesses_across_link. > > When fixing the previous fallout from lazy setting of grp_write flag, > I failed to see that it does no

Re: [GCC][PATCH][ARM][Committed] Disable sdiv_1 test on softfloat targets.

2017-06-13 Thread Christophe Lyon
Hi Tamar, On 12 June 2017 at 15:27, Tamar Christina wrote: > Committed a less restrictive form in r249125 which now just requires > arm_v8_vfp_ok > > gcc/testsuite/ > 2017-06-12 Tamar Christina > > * gcc.target/arm/sdiv_costs_1.c: Require arm_v8_vfp_ok. > I think you forgot to add a

Re: [PATCH, rs6000] (v2) Fold vector shifts in GIMPLE

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 11:56 PM, Will Schmidt wrote: > Hi, > > [PATCH, rs6000] (v2) Fold vector shifts in GIMPLE > > Add support for early expansion of vector shifts. Including > vec_sl (shift left), vec_sr (shift right), > vec_sra (shift right algebraic), vec_rl (rotate left). > Part of this in

Re: [PATCH 0/13] D: Submission of D Front End

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 2:09 AM, Iain Buclaw wrote: > On 13 June 2017 at 01:22, Mike Stump wrote: >> On Jun 12, 2017, at 11:34 AM, Richard Sandiford >> wrote: >>> >>> I'm not sure who this is a question to really, but how much value is >>> there in reviewing the other patches? >> >>> Maybe peop

Re: [PATCH][X86] Fix rounding pattern similar to PR73350

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 6:50 PM, Koval, Julia wrote: > I'm so sorry, but I really don't get it. The right result of the test is: > Floating point exception (core dumped). The wrong result of the test is: > nan(no exception). If I get an exception(which is right) - the test is failed > anyway. T

[PATCH] Call BUILT_IN_ASAN_HANDLE_NO_RETURN before BUILT_IN_UNWIND_RESUME (PR sanitizer/81021).

2017-06-13 Thread Martin Liška
Hi. For a function that does not handle an expection (and calls BUILT_IN_UNWIND_RESUME), we need to emit call to BUILT_IN_ASAN_HANDLE_NO_RETURN. That will clean up stack which can possibly contain poisoned shadow memory that will not be cleaned-up in function prologue. Patch can bootstrap on ppc

[PATCH] Enhance dump_probability function.

2017-06-13 Thread Martin Liška
Hi. This is pre-approved patch that displays edge counts in dump files: ... _85 = _83 + _84; len_86 = SQRT (_85); if (_85 u>= 0.0) goto ; [99.00%] [count: 778568] else goto ; [1.00%] [count: 7864] [0.01%] [count: 7864]: sqrt (_85); ... That makes it possible to understand w

Re: [PATCH] have -Wformat-overflow handle -fexec-charset (PR 80503)

2017-06-13 Thread Renlin Li
Hi Martin, On 04/06/17 23:24, Martin Sebor wrote: On 06/02/2017 09:38 AM, Renlin Li wrote: Hi Martin, After r247444, I saw the following two regressions in arm-linux-gnueabihf environment: FAIL: gcc.dg/tree-ssa/builtin-sprintf-warn-18.c (test for warnings, line 119) PASS: gcc.dg/tree-ssa/bui

RE: [GCC][PATCH][ARM][Committed] Disable sdiv_1 test on softfloat targets.

2017-06-13 Thread Tamar Christina
Hi Christophe, > > gcc/testsuite/ > > 2017-06-12 Tamar Christina > > > > * gcc.target/arm/sdiv_costs_1.c: Require arm_v8_vfp_ok. > > > > I think you forgot to add a dg-add-options directive, to add -march=armv8-a > or similar. Weird, is it still failing? When I tested it was skipping

Re: [GCC][PATCH][ARM][Committed] Disable sdiv_1 test on softfloat targets.

2017-06-13 Thread Christophe Lyon
On 13 June 2017 at 10:31, Tamar Christina wrote: > Hi Christophe, > >> > gcc/testsuite/ >> > 2017-06-12 Tamar Christina >> > >> > * gcc.target/arm/sdiv_costs_1.c: Require arm_v8_vfp_ok. >> > >> >> I think you forgot to add a dg-add-options directive, to add -march=armv8-a >> or similar.

Re: [PATCH][AArch64] Change FP reassociation width

2017-06-13 Thread Richard Earnshaw (lists)
On 12/06/17 11:50, Wilco Dijkstra wrote: > Currently the FP reassociation width is set to 4 on AArch64. On recent > GCCs this has become more aggressive in splitting expressions. This means > many FMAs are split into FMUL and FADD. The reassociation increases register > pressure, in some benchma

[PATCH, GCC/testsuite/ARM] Consistently check for neon in vect effective targets

2017-06-13 Thread Thomas Preudhomme
Hi, Conditions checked for ARM targets in vector-related effective targets are inconsistent: * sometimes arm*-*-* is checked * sometimes Neon is checked * sometimes arm_neon_ok and sometimes arm_neon is used for neon check * sometimes check_effective_target_* is used, sometimes is-effective-targ

[PATCH, GCC/testsuite] Fix gen-vect-26.c requirements

2017-06-13 Thread Thomas Preudhomme
Hi, gen-vect-26.c tests the vectorizer but only requires vect_cmdline_needed effective target. It should also depends on vect_int to make sure a vector unit is available on the target. This patch fixes that. ChangeLog entry is as follows: *** gcc/testsuite/ChangeLog *** 2017-06-05 Thomas Preu

Re: [PATCH 00/30] [ARM] Reworking the -mcpu, -march and -mfpu options

2017-06-13 Thread Richard Earnshaw (lists)
On 12/06/17 22:27, Richard Earnshaw (lists) wrote: > In fact I probably don't need the % realized that is was possible to maintain all such options and just > interpret the last one. So for my purposes that might be the best > solution, since my canon_arch generated option will simply override any

Re: [PATCH][AArch64] Change FP reassociation width

2017-06-13 Thread Wilco Dijkstra
Richard Earnshaw (lists) wrote: > > Why 1 and not 2?  Many processors have 2 fp pipes and forcing this down > to a sequential stream is not obviously the right thing. 1 was faster than 2. Like I said, the reassociation is too aggressive and even splits multiply-add rather than keeping them. Until

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Sandiford
Richard Biener writes: > So I've come back to PR66313 and found a solution to the tailrecursion > missed optimization when fixing the factoring folding to use an unsigned > type when we're not sure of overflow. > > The folding part is identical to my last try from 2015, the tailrecursion > part ma

Re: C/C++ PATCH to implement -Wmultistatement-macros (PR c/80116)

2017-06-13 Thread Marek Polacek
On Thu, Jun 08, 2017 at 01:24:09PM -0400, David Malcolm wrote: > On Thu, 2017-06-08 at 18:49 +0200, Marek Polacek wrote: > > This is the hopefully last incarnation of the patch. The change from > > the > > last time[0] is simpy that I've added a new test and the warning has > > been > > renamed to

RE: [GCC][PATCH][ARM][Committed] Disable sdiv_1 test on softfloat targets.

2017-06-13 Thread Tamar Christina
> On 13 June 2017 at 10:31, Tamar Christina > wrote: > > Hi Christophe, > > > >> > gcc/testsuite/ > >> > 2017-06-12 Tamar Christina > >> > > >> > * gcc.target/arm/sdiv_costs_1.c: Require arm_v8_vfp_ok. > >> > > >> > >> I think you forgot to add a dg-add-options directive, to add > >> -m

[GCC][PATCH][ARM] Require arm_arch_v8a_ok for sdiv_costs_1.c

2017-06-13 Thread Tamar Christina
Hi All, This fixes the failing test gcc.target/arm/sdiv_costs_1.c by requiring arm_arch_v8a_ok. OK for trunk? gcc/testsuite/ 2017-06-13 Tamar Christina * gcc.target/arm/sdiv_costs_1.c: Require arm_arch_v8a_ok and add march option. Thanks, Tamardiff --git a/gcc/testsuite/gcc

Re: [GCC][PATCH][ARM] Require arm_arch_v8a_ok for sdiv_costs_1.c

2017-06-13 Thread Kyrill Tkachov
On 13/06/17 11:12, Tamar Christina wrote: Hi All, This fixes the failing test gcc.target/arm/sdiv_costs_1.c by requiring arm_arch_v8a_ok. OK for trunk? Ok. Thanks, Kyrill gcc/testsuite/ 2017-06-13 Tamar Christina * gcc.target/arm/sdiv_costs_1.c: Require arm_arch_v8a_o

RE: [GCC][PATCH][mid-end] Optimize x * copysign (1.0, y) [Patch (1/2)]

2017-06-13 Thread Tamar Christina
> > Please only enable this if you have XORSIGN and XORSIGNF. > > On the PowerPC this would involve moving the value from the > vector/floating point registers to the general purpose registers to do the XOR > operation and then back to the vector/floating point registers. > Fair enough, I thi

Re: [PATCH, GCC/testsuite] Fix gen-vect-26.c requirements

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 11:10 AM, Thomas Preudhomme wrote: > Hi, > > gen-vect-26.c tests the vectorizer but only requires vect_cmdline_needed > effective target. It should also depends on vect_int to make sure a > vector unit is available on the target. This patch fixes that. > > ChangeLog entry i

RE: [GCC][PATCH][mid-end] Optimize x * copysign (1.0, y) [Patch (1/2)]

2017-06-13 Thread Tamar Christina
Hi Richard, Thanks for the feedback, I'll update the patch accordingly. > What does > > > (copysigns @0 (negate @1)): Likewise. > > do? > Sorry this slipped through my clean-up. The patch doesn't actually contain this definition anymore. > Third, new IL that is present throughout the

RE: [GCC][PATCH][mid-end] Optimize x * copysign (1.0, y) [Patch (1/2)]

2017-06-13 Thread Tamar Christina
Hi Richard, > > First, nowadays please add an internal function instead of builtins. > > You can even take advantage of Richards work to directly tie those to > > optabs (he might want to chime in to tell you how). You don't need > > the fortran FE changes in that case. > > Yeah, it should just

Re: [PATCH] [AArch64] PR target/71663 Improve Vector Initializtion

2017-06-13 Thread Hurugalawadi, Naveen
Hi James, Thanks for your review and useful comments. >> If you could try to keep one reply chain for each patch series Will keep that in mind for sure :-) >> Very minor, but what is wrong with: >> int matches[16][2] = {0}; Done. >> nummatches is unused. Removed. >> This search algorithm is to

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Biener
On Tue, 13 Jun 2017, Richard Sandiford wrote: > Richard Biener writes: > > So I've come back to PR66313 and found a solution to the tailrecursion > > missed optimization when fixing the factoring folding to use an unsigned > > type when we're not sure of overflow. > > > > The folding part is iden

Re: [PATCH 00/30] [ARM] Reworking the -mcpu, -march and -mfpu options

2017-06-13 Thread Joseph Myers
On Tue, 13 Jun 2017, Richard Earnshaw (lists) wrote: > I wonder if we should/could add a LAST attribute to the options > specification such that the driver discards all but the final instance > of such an option. This would also solve the -mcpu=native problem since > the discard rule would kick i

Re: [PATCH GCC][02/13]Skip distribution if there is no loop

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > this is a simple patch skipping distribution if there is no loop at all. > > Bootstrap and test on x86_64 and AArch64. Is it OK? > Thanks, > bin > > 2017-06-07 Bin Cheng > > * cfgloop.h (pass_loop_distribution::execute): Skip if

Re: [PATCH GCC][03/13]Mark and skip distributed loops

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > This simple patch marks distributed loops and skips it in following > distribution. > > Bootstrap and test on x86_64 and AArch64. Is it OK? This is not necessary, FOR_EACH_LOOP first builds a vector of loops to iterate over so it will ne

[libgomp, OpenACC] Add more map handling for enter/exit data directives

2017-06-13 Thread Chung-Lin Tang
Hi Jakub, this patch has been posted before, but hasn't really been reviewed yet: https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01927.html This has been deployed on gomp-4_0-branch for a long time, and was re-tested on current trunk, test results okay. Is this okay for trunk? Thanks, Chung-Lin

Re: [PATCH GCC][03/13]Mark and skip distributed loops

2017-06-13 Thread Bin.Cheng
On Tue, Jun 13, 2017 at 11:47 AM, Richard Biener wrote: > On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: >> Hi, >> This simple patch marks distributed loops and skips it in following >> distribution. >> >> Bootstrap and test on x86_64 and AArch64. Is it OK? > > This is not necessary, FOR_EAC

Re: [PATCH GCC][04/13]Sort statements in topological order for loop distribution

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > During the work I ran into a latent bug for distributing. For the moment we > sort statements > in dominance order, but that's not enough because basic blocks may be sorted > in reverse order > of execution flow. This results in wrong d

Re: [PATCH 2/3] Make early return predictor more precise.

2017-06-13 Thread Martin Liška
On 06/09/2017 04:08 PM, Jan Hubicka wrote: >> gcc/ChangeLog: >> >> 2017-05-26 Martin Liska >> >> PR tree-optimization/79489 >> * gimplify.c (maybe_add_early_return_predict_stmt): New >> function. >> (gimplify_return_expr): Call the function. >> * predict.c (tree_estimate

Re: [PATCH GCC][05/13]Refactoring partition merge

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > This simple patch refactors partition merge code and dump information. > > Bootstrap and test on x86_64 and AArch64. Is it OK? Ok. Thanks, Richard. > Thanks, > bin > 2017-06-07 Bin Cheng > > * tree-loop-distribution.c (enum f

Re: [PATCH GCC][06/13]Preserve loop nest in whole distribution life time

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > This simple patch computes and preserves loop nest vector for whole > distribution > life time. The loop nest will be used multiple times in on-demand data > dependence > computation. > > Bootstrap and test on x86_64 and AArch64. Is it

Re: [PATCH GCC][06/13]Preserve loop nest in whole distribution life time

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 1:06 PM, Richard Biener wrote: > On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: >> Hi, >> This simple patch computes and preserves loop nest vector for whole >> distribution >> life time. The loop nest will be used multiple times in on-demand data >> dependence >> co

Re: [PATCH v2] Implement no_sanitize function attribute

2017-06-13 Thread Martin Liška
On 06/09/2017 03:35 PM, Richard Biener wrote: > You can directly transform to no_sanitize with integer mask, not sure why > you'd need an intermediate step with a string? Hello. Done in attached patch, I'm sending both incremental and final version (complete patch). I also decided to support no_

Re: [PATCH GCC][07/13]Preserve data references for whole distribution life time

2017-06-13 Thread Richard Biener
On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: > Hi, > This patch collects and preserves all data references in loop for whole > distribution life time. It will be used afterwards. > > Bootstrap and test on x86_64 and AArch64. Is it OK? +/* Vector of data references in the loop to be distrib

Re: [PATCH GCC][06/13]Preserve loop nest in whole distribution life time

2017-06-13 Thread Bin.Cheng
On Tue, Jun 13, 2017 at 12:06 PM, Richard Biener wrote: > On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: >> Hi, >> This simple patch computes and preserves loop nest vector for whole >> distribution >> life time. The loop nest will be used multiple times in on-demand data >> dependence >> c

Re: [PATCH GCC][06/13]Preserve loop nest in whole distribution life time

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 1:15 PM, Bin.Cheng wrote: > On Tue, Jun 13, 2017 at 12:06 PM, Richard Biener > wrote: >> On Mon, Jun 12, 2017 at 7:02 PM, Bin Cheng wrote: >>> Hi, >>> This simple patch computes and preserves loop nest vector for whole >>> distribution >>> life time. The loop nest will

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Sandiford
Richard Biener writes: > On Tue, 13 Jun 2017, Richard Sandiford wrote: >> Richard Biener writes: >> > So I've come back to PR66313 and found a solution to the tailrecursion >> > missed optimization when fixing the factoring folding to use an unsigned >> > type when we're not sure of overflow. >>

Re: [PATCH] Fix PR66313

2017-06-13 Thread Bin.Cheng
On Tue, Jun 13, 2017 at 12:23 PM, Richard Sandiford wrote: > Richard Biener writes: >> On Tue, 13 Jun 2017, Richard Sandiford wrote: >>> Richard Biener writes: >>> > So I've come back to PR66313 and found a solution to the tailrecursion >>> > missed optimization when fixing the factoring folding

Re: [PATCH try 2 resend] [i386] Remove warnings for ignoring -mcall-ms2sysv-xlogues.

2017-06-13 Thread Bernd Edlinger
On 06/11/17 22:35, Daniel Santos wrote: > I appear to have forgotten to cc gcc-patches, sorry about that. > > There are currently three cases where we issue a warning when disabling > -mcall-ms2sysv-xlogues for a function, but I never added a proper > warning, so there's no mechanism for disabli

RE: [PATCH][X86] Fix rounding pattern similar to PR73350

2017-06-13 Thread Koval, Julia
Thank you for your help. I fixed the test similar to existing sigaction tests. gcc/ * config/i386/i386.c: Fix rounding expand for new pattern. * config/i386/subst.md: Fix pattern (parallel -> unspec). gcc/testsuite/ * gcc.target/i386/pr73350-2.c: New test. Thanks, Julia >

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Biener
On Tue, 13 Jun 2017, Richard Sandiford wrote: > Richard Biener writes: > > On Tue, 13 Jun 2017, Richard Sandiford wrote: > >> Richard Biener writes: > >> > So I've come back to PR66313 and found a solution to the tailrecursion > >> > missed optimization when fixing the factoring folding to use a

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Biener
On Tue, 13 Jun 2017, Bin.Cheng wrote: > On Tue, Jun 13, 2017 at 12:23 PM, Richard Sandiford > wrote: > > Richard Biener writes: > >> On Tue, 13 Jun 2017, Richard Sandiford wrote: > >>> Richard Biener writes: > >>> > So I've come back to PR66313 and found a solution to the tailrecursion > >>> >

Re: [PATCH] Fix PR66313

2017-06-13 Thread Bin.Cheng
On Tue, Jun 13, 2017 at 12:48 PM, Richard Biener wrote: > On Tue, 13 Jun 2017, Richard Sandiford wrote: > >> Richard Biener writes: >> > On Tue, 13 Jun 2017, Richard Sandiford wrote: >> >> Richard Biener writes: >> >> > So I've come back to PR66313 and found a solution to the tailrecursion >> >>

Re: [PATCH] Fix PR66313

2017-06-13 Thread Richard Biener
On Tue, 13 Jun 2017, Bin.Cheng wrote: > On Tue, Jun 13, 2017 at 12:48 PM, Richard Biener wrote: > > On Tue, 13 Jun 2017, Richard Sandiford wrote: > > > >> Richard Biener writes: > >> > On Tue, 13 Jun 2017, Richard Sandiford wrote: > >> >> Richard Biener writes: > >> >> > So I've come back to PR

[PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-06-13 Thread Maxim Ostapenko
Hi, I would like to ping the following patch: https://gcc.gnu.org/ml/gcc-patches/2017-05/msg01374.html Rebased version is attached. Thanks, -Maxim gcc/ChangeLog: 2017-06-13 Maxim Ostapenko * asan.c: Include gimple-fold.h. (get_last_alloca_addr): New function. (handle_builtin_stackresto

Re: [GCC][PATCH][ARM] Require arm_arch_v8a_ok for sdiv_costs_1.c

2017-06-13 Thread Christophe Lyon
On 13 June 2017 at 12:13, Kyrill Tkachov wrote: > > On 13/06/17 11:12, Tamar Christina wrote: >> >> Hi All, >> >> This fixes the failing test gcc.target/arm/sdiv_costs_1.c by >> requiring arm_arch_v8a_ok. >> >> >> OK for trunk? >> > > Ok. > Thanks, > Kyrill > > >> gcc/testsuite/ >> 2017-06-13 Tam

[PATCH][RFC] Canonize names of attributes.

2017-06-13 Thread Martin Liška
Hello. After some discussions with Richi, I would like to propose patch that will come up with a canonical name of attribute names. That means __attribute__((__abi_tag__)) will be given 'abi_tag' as IDENTIFIER_NAME of the attribute. The change can improve attribute name lookup and we can delete

[PATCH 0/9] rs6000: SPE removal, part 2

2017-06-13 Thread Segher Boessenkool
This patch series makes further updates to remove SPE from the rs6000 port. The only thing that should be left now is the documentation. Tested on powerpc64-linux {-m32,-m64}; I'll test on some more systems and commit later today. Segher gcc/config/rs6000/eabispe.h| 26 -- gc

[PATCH 1/9] rs6000: Sanitize vector modes

2017-06-13 Thread Segher Boessenkool
This removes the vector modes that were only used by SPE. It also rearranges things so it is easier to see what is there, and for what. 2017-06-13 Segher Boessenkool * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes except V2SF and V2SI. Rearrange the vector m

[PATCH 2/9] rs6000: Remove SPE_CONST_OFFSET_OK

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete. (rs6000_legitimate_offset_address_p): Return false for anything in V2SImode or V2SFmode. --- gcc/config/rs6000/rs6000.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) d

[PATCH 3/9] rs6000: Remove t-spe

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/t-spe: Delete file. --- gcc/config/rs6000/t-spe | 72 - 1 file changed, 72 deletions(-) delete mode 100644 gcc/config/rs6000/t-spe diff --git a/gcc/config/rs6000/t-spe b/gcc/config/rs6000/t

[PATCH 4/9] rs6000: Remove eabispe.h

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/eabispe.h: Delete file. --- gcc/config/rs6000/eabispe.h | 26 -- 1 file changed, 26 deletions(-) delete mode 100644 gcc/config/rs6000/eabispe.h diff --git a/gcc/config/rs6000/eabispe.h b/gcc/config/rs6000/eabispe.

[PATCH 5/9] rs6000: Updates to t-linux

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/t-linux: Don't handle SPE. --- gcc/config/rs6000/t-linux | 4 1 file changed, 4 deletions(-) diff --git a/gcc/config/rs6000/t-linux b/gcc/config/rs6000/t-linux index 4cb63bd..acfde1f 100644 --- a/gcc/config/rs6000/t-linux +++ b/gcc/c

[PATCH 6/9] rs6000: Updates to t-rtems

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/t-rtems: Don't handle SPE. --- gcc/config/rs6000/t-rtems | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/rs6000/t-rtems b/gcc/config/rs6000/t-rtems index 723c6a3..8290f5c 100644 --- a/gcc/config/rs6000/

[PATCH 8/9] rs6000: Remove VECTOR_SPE

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE. * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE. --- gcc/config/rs6000/rs6000-opts.h | 1 - gcc/config/rs6000/rs6000.c | 1 - 2 files changed, 2 del

[PATCH 7/9] rs6000: Remove FIXED_SCRATCH

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete. --- gcc/config/rs6000/rs6000.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index edfa546..e8305aa 100644 --- a/gcc/config/rs6000/rs6000

[PATCH 9/9] rs6000: Comment fixes + some leftovers

2017-06-13 Thread Segher Boessenkool
2017-06-13 Segher Boessenkool * config/rs6000/rs6000.c: Update all comments that mentioned SPE. (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL. * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete. * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust form

fix libcc1 dependencies in toplevel Makefile

2017-06-13 Thread Olivier Hainque
Hello, During highly parallel builds on fast hosts, we have experienced sporadic bootstrap failures on libquadmath like In file included from ../../../src/libquadmath/printf/printf_fp.c:39:0: ../../../src/libquadmath/printf/quadmath-printf.h:24:20: fatal error: .../build/./gcc/include-fixed/

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-06-13 Thread Jakub Jelinek
On Tue, Jun 13, 2017 at 03:11:41PM +0300, Maxim Ostapenko wrote: > @@ -531,11 +533,166 @@ get_mem_ref_of_assignment (const gassign *assignment, >return true; > } > > +/* Return address of last allocated dynamic alloca. */ > + > +static tree > +get_last_alloca_addr () > +{ > + if (last_allo

Re: [PATCH 1/9] rs6000: Sanitize vector modes

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > This removes the vector modes that were only used by SPE. It also > rearranges things so it is easier to see what is there, and for what. > > > 2017-06-13 Segher Boessenkool > > * config/rs6000/rs6000-modes.def: Remove all 8-

Re: [PATCH 2/9] rs6000: Remove SPE_CONST_OFFSET_OK

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete. > (rs6000_legitimate_offset_address_p): Return false for anything in > V2SImode or V2SFmode. Okay. Thanks, David

Re: [PATCH][RFC] Canonize names of attributes.

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 2:32 PM, Martin Liška wrote: > Hello. > > After some discussions with Richi, I would like to propose patch that will > come up with a canonical name of attribute names. That means > __attribute__((__abi_tag__)) > will be given 'abi_tag' as IDENTIFIER_NAME of the attribute.

Re: [PATCH 3/9] rs6000: Remove t-spe

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/t-spe: Delete file. Okay. Thanks, David

Re: [PATCH 4/9] rs6000: Remove eabispe.h

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/eabispe.h: Delete file. Okay. Thanks, David

Re: [PATCH 5/9] rs6000: Updates to t-linux

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/t-linux: Don't handle SPE. Okay. Thanks, David

Re: [PATCH 6/9] rs6000: Updates to t-rtems

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/t-rtems: Don't handle SPE. Okay. Thanks, David

Re: [PATCH 7/9] rs6000: Remove FIXED_SCRATCH

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete. Okay. Thanks, david

Re: [PATCH 8/9] rs6000: Remove VECTOR_SPE

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE. > * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete > VECTOR_SPE. Okay. Thanks, David

Re: [PATCH 9/9] rs6000: Comment fixes + some leftovers

2017-06-13 Thread David Edelsohn
On Tue, Jun 13, 2017 at 8:53 AM, Segher Boessenkool wrote: > 2017-06-13 Segher Boessenkool > > * config/rs6000/rs6000.c: Update all comments that mentioned SPE. > (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL. > * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete. >

Re: [PATCH 01/30] [arm] Use strings for -march, -mcpu and -mtune options

2017-06-13 Thread Christophe Lyon
On 9 June 2017 at 14:53, Richard Earnshaw wrote: > > In order to support more complex specifications for cpus and architectures > we need to move away from using enumerations to represent the set of > permitted options. This basic change just moves the option parsing > infrastructure over to that

libgo patch committed: Don't always show frames with no function in traceback

2017-06-13 Thread Ian Lance Taylor
In a Go traceback, if there is no function name, that traceback entry is generally uninformative. In earlier versions we did not show such frames. This patch restores that behavior. These frames can be seen with GOTRACEBACK=system. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Comm

Re: C/C++ PATCH to implement -Wmultistatement-macros (PR c/80116)

2017-06-13 Thread Marek Polacek
On Sat, Jun 10, 2017 at 12:03:18AM +0200, Gerald Pfeifer wrote: > On Thu, 8 Jun 2017, David Malcolm wrote: > > How about: > > > > "Warn about unsafe multiple statement macros that appear to be guarded > > by a clause such as if, else, while, or for, in which only the first > > statement is actuall

Re: [PATCH v2] Implement no_sanitize function attribute

2017-06-13 Thread Richard Biener
On Tue, Jun 13, 2017 at 1:09 PM, Martin Liška wrote: > On 06/09/2017 03:35 PM, Richard Biener wrote: >> You can directly transform to no_sanitize with integer mask, not sure why >> you'd need an intermediate step with a string? > > Hello. > > Done in attached patch, I'm sending both incremental an

Re: [PATCH] [AArch64] PR target/71663 Improve Vector Initializtion

2017-06-13 Thread James Greenhalgh
On Tue, Jun 13, 2017 at 10:24:59AM +, Hurugalawadi, Naveen wrote: > Hi James, > > Thanks for your review and useful comments. > > >> If you could try to keep one reply chain for each patch series > Will keep that in mind for sure :-) > > >> Very minor, but what is wrong with: > >> int matche

Re: [PATCH][ARM] Update max_cond_insns settings

2017-06-13 Thread Wilco Dijkstra
ping   Richard Earnshaw (lists) wrote: > On 05/05/17 13:42, Wilco Dijkstra wrote: >> Richard Earnshaw (lists) wrote: >>> On 04/05/17 18:38, Wilco Dijkstra wrote: >>> > Richard Earnshaw wrote: >>> > > -  5, /* Max cond insns.  */ > +  2,   

Re: [PATCH][AArch64] Improve Cortex-A53 shift bypass

2017-06-13 Thread Wilco Dijkstra
ping   Richard Earnshaw (lists) wrote: > --- a/gcc/config/arm/aarch-common.c > +++ b/gcc/config/arm/aarch-common.c > @@ -254,12 +254,7 @@ arm_no_early_alu_shift_dep (rtx producer, rtx consumer) >  return 0; >  >    if ((early_op = arm_find_shift_sub_rtx (op))) > -    { > -  if (REG_P (

Re: [PATCH][ARM] Remove movdi_vfp_cortexa8

2017-06-13 Thread Wilco Dijkstra
ping   Richard Earnshaw (lists) wrote: >  (define_insn "*movdi_vfp" > -  [(set (match_operand:DI 0 "nonimmediate_di_operand" > "=r,r,r,r,q,q,m,w,r,w,w, Uv") > +  [(set (match_operand:DI 0 "nonimmediate_di_operand" > "=r,r,r,r,q,q,m,w,!r,w,w, Uv") > Why have you introduced a no-reloads block

Re: [RFC][PATCH][AArch64] Cleanup frame pointer usage

2017-06-13 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 31 October 2016 18:29 To: GCC Patches Cc: nd Subject: [RFC][PATCH][AArch64] Cleanup frame pointer usage     This patch cleans up all code related to the frame pointer.  On AArch64 we emit a frame chain even in cases where the frame pointer is not required. So make

Re: [PATCH v2] Implement no_sanitize function attribute

2017-06-13 Thread Martin Liška
On 06/13/2017 03:49 PM, Richard Biener wrote: > On Tue, Jun 13, 2017 at 1:09 PM, Martin Liška wrote: >> On 06/09/2017 03:35 PM, Richard Biener wrote: >>> You can directly transform to no_sanitize with integer mask, not sure why >>> you'd need an intermediate step with a string? >> >> Hello. >> >>

Re: [PATCH][ARM] Fix ldrd offsets

2017-06-13 Thread Wilco Dijkstra
  ping From: Wilco Dijkstra Sent: 03 November 2016 12:20 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Fix ldrd offsets     Fix ldrd offsets of Thumb-2 - for TARGET_LDRD the range is +-1020, without -255..4091.  This reduces the number of addressing instructions when using DI mode operations

Re: [PATCH][ARM] Improve max_insns_skipped logic

2017-06-13 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 10 November 2016 17:19 To: GCC Patches Cc: nd Subject: [PATCH][ARM] Improve max_insns_skipped logic     Improve the logic when setting max_insns_skipped.  Limit the maximum size of IT to MAX_INSN_PER_IT_BLOCK as otherwise multiple IT instructions are needed, incr

Re: [PATCH][ARM] Remove Thumb-2 iordi_not patterns

2017-06-13 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 17 January 2017 18:00 To: GCC Patches Cc: nd; Kyrylo Tkachov; Richard Earnshaw Subject: [PATCH][ARM] Remove Thumb-2 iordi_not patterns     After Bernd's DImode patch [1] almost all DImode operations are expanded early (except for -mfpu=neon). This means the Thumb

Re: [PATCH][ARM] Remove DImode expansions for 1-bit shifts

2017-06-13 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 17 January 2017 19:23 To: GCC Patches Cc: nd; Kyrill Tkachov; Richard Earnshaw Subject: [PATCH][ARM] Remove DImode expansions for 1-bit shifts     A left shift of 1 can always be done using an add, so slightly adjust rtx cost for DImode left shift by 1 so that add

Re: [PATCH v3][AArch64] Fix symbol offset limit

2017-06-13 Thread Wilco Dijkstra
ping From: Wilco Dijkstra Sent: 17 January 2017 15:14 To: Richard Earnshaw; GCC Patches; James Greenhalgh Cc: nd Subject: Re: [PATCH v3][AArch64] Fix symbol offset limit     Here is v3 of the patch - tree_fits_uhwi_p was necessary to ensure the size of a declaration is an integer. So the questio

Go patch committed: Fix function passed in write_globals

2017-06-13 Thread Ian Lance Taylor
This patch by Than McIntosh fixes a bug in the Go frontend: in Gogo::write_globals in a couple of places the wrong Bfunction was being used for the containing (not target) function when creating calls for init functions. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainl

Re: Merge from GCC trunk to gccgo branch

2017-06-13 Thread Ian Lance Taylor
I've merged GCC trunk revision 249156 to the gccgo branch. Ian

Re: [PATCH 00/30] [ARM] Reworking the -mcpu, -march and -mfpu options

2017-06-13 Thread Richard Earnshaw (lists)
On 12/06/17 15:34, Richard Earnshaw (lists) wrote: > On 12/06/17 12:49, Christophe Lyon wrote: >> On 10 June 2017 at 01:27, Richard Earnshaw (lists) >> wrote: >>> On 09/06/17 23:45, Christophe Lyon wrote: Hi Richard, On 9 June 2017 at 14:53, Richard Earnshaw wrote: > >

Re: C/C++ PATCH to implement -Wmultistatement-macros (PR c/80116)

2017-06-13 Thread Joseph Myers
On Tue, 13 Jun 2017, Marek Polacek wrote: > * c-parser.c (c_parser_if_body): Set the location of the > body of the conditional after parsing all the labels. Call > warn_for_multistatement_macros. > (c_parser_else_body): Likewise. > (c_parser_switch_statement): Likewi

Re: [PATCH 01/30] [arm] Use strings for -march, -mcpu and -mtune options

2017-06-13 Thread Richard Earnshaw (lists)
On 13/06/17 14:23, Christophe Lyon wrote: > On 9 June 2017 at 14:53, Richard Earnshaw wrote: >> >> In order to support more complex specifications for cpus and architectures >> we need to move away from using enumerations to represent the set of >> permitted options. This basic change just moves

Re: [PATCH 2/2] [MSP430] Fix issues handling .persistent attribute (PR 78818)

2017-06-13 Thread Nick Clifton
Hi Jozef, > Ok for trunk and gcc-7-branch? Approved - please apply (to both). Cheers Nick

Re: [PATCH] Finish implementing P0426R1 "Constexpr for std::char_traits" for C++17

2017-06-13 Thread Jonathan Wakely
On 12/06/17 23:28 +0100, Pedro Alves wrote: On 06/05/2017 03:27 PM, Jonathan Wakely wrote: Pedro, this is OK for trunk now we're in stage 1. Please go ahead and commit it - thanks. Thanks Jonathan. I've pushed it in now. It's probably safe for gcc-7-branch too, but let's leave it on trunk

Re: [libgomp, OpenACC] Add more map handling for enter/exit data directives

2017-06-13 Thread Jakub Jelinek
On Tue, Jun 13, 2017 at 06:48:18PM +0800, Chung-Lin Tang wrote: > Hi Jakub, > this patch has been posted before, but hasn't really been reviewed yet: > https://gcc.gnu.org/ml/gcc-patches/2016-08/msg01927.html > > This has been deployed on gomp-4_0-branch for a long time, and was re-tested > on cur

Re: [PATCH 00/30] [ARM] Reworking the -mcpu, -march and -mfpu options

2017-06-13 Thread Christophe Lyon
On 13 June 2017 at 17:25, Richard Earnshaw (lists) wrote: > On 12/06/17 15:34, Richard Earnshaw (lists) wrote: >> On 12/06/17 12:49, Christophe Lyon wrote: >>> On 10 June 2017 at 01:27, Richard Earnshaw (lists) >>> wrote: On 09/06/17 23:45, Christophe Lyon wrote: > Hi Richard, >

Re: [PATCH][GCC][AArch64] optimize float immediate moves (1 /4) - infrastructure.

2017-06-13 Thread James Greenhalgh
This patch is pretty huge, are there any opportunities to further split it to aid review? I have some comments in line. > diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c > index > a069427f576f6bd7336bbe4497249773bd33d138..2ab2d96e40e80a79b5648046ca2d6e202d3939a2 > 10064

  1   2   >