[patch, doc] Document that new Perl version breaks required automake

2017-11-08 Thread Thomas Koenig
Hello world, while PR 82856 remains unsolved so far, this documentation patch at least points people into the right direction if --enable-maintainer-mode fails due to the incompatibility of the latest Perl version with the required automkake version. Tested with "make dvi" and "make pdf". OK for

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Martin Sebor
On 11/08/2017 11:28 AM, Richard Sandiford wrote: Martin Sebor writes: On 11/08/2017 09:51 AM, Richard Sandiford wrote: Martin Sebor writes: On 11/08/2017 02:32 AM, Richard Sandiford wrote: Martin Sebor writes: I haven't done nearly a thorough review but the dtor followed by the placement

Ping: [PATCH], Add rounding built-ins to the _Float and _FloatX built-in functions

2017-11-08 Thread Michael Meissner
I suspect this patch got lost among the FMA patches at the same time. This patch enables the rounding functions. Segher has already approved the rs6000 bits. https://gcc.gnu.org/ml/gcc-patches/2017-10/msg02124.html On Fri, Oct 27, 2017 at 06:39:21PM -0400, Michael Meissner wrote: > The power9 (

Re: [PATCH] Fix dwarf2out ICE with UNSPEC_GOTOFF (PR debug/82837)

2017-11-08 Thread Jeff Law
On 11/06/2017 02:35 PM, Jakub Jelinek wrote: > Hi! > > My recent changes to const_ok_for_output_1 to allow UNSPEC if target hook > says it is ok for debug regressed the following testcase, where creative > simplify-rtx.c changes result in (const (neg (unspec ... UNSPEC_GOTOFF))) > being emitted an

Re: [Diagnostic Patch] don't print column zero

2017-11-08 Thread Jeff Law
On 11/08/2017 10:36 AM, Nathan Sidwell wrote: > On 11/02/2017 04:33 PM, Nathan Sidwell wrote: >> On 10/26/2017 10:34 AM, David Malcolm wrote: >>> [CCing Rainer and Mike for the gcc-dg.exp part] >> >>> My Tcl skills aren't great, so hopefully someone else can review this; >>> CCing Rainer and Mike.

RE: [PATCH 14/22] Enable building libsanitizer with Intel CET

2017-11-08 Thread Tsimbalist, Igor V
The revised patch is attached. The differences are in what options are defined and propagated to Makefiles for CET enabling. Ok for trunk? Igor > -Original Message- > From: Jeff Law [mailto:l...@redhat.com] > Sent: Wednesday, October 18, 2017 1:37 AM > To: Tsimbalist, Igor V ; gcc- > p

Re: [PATCH 07/22] Enable building libgcc with CET options.

2017-11-08 Thread H.J. Lu
On Wed, Nov 8, 2017 at 3:04 PM, Jeff Law wrote: > On 11/08/2017 03:06 PM, Tsimbalist, Igor V wrote: > So the question I have WRT this patch is the default setting. If I >>> understand it correctly, if the assembler supports the appropriate >>> insns, then we enable building target libraries with

Re: [PATCH] Set default to -fomit-frame-pointer

2017-11-08 Thread Jeff Law
On 11/08/2017 11:16 AM, Wilco Dijkstra wrote: > Jeff Law wrote: > >> I'd actually prefer to deprecate the H8 and M68k.  But assuming that's >> not going to happen in the immediate future I think dropping frame >> pointers on those targets is appropriate as long as we're generating >> dwarf frame i

Re: [PATCH 07/22] Enable building libgcc with CET options.

2017-11-08 Thread Jeff Law
On 11/08/2017 03:06 PM, Tsimbalist, Igor V wrote: So the question I have WRT this patch is the default setting. If I >> understand it correctly, if the assembler supports the appropriate >> insns, then we enable building target libraries with CET by default. > > That's right. > >> These librarie

[PATCH,committed] Fix PR Fortran 82841

2017-11-08 Thread Steve Kargl
Committed as obvious. ChangeLog explains change. 2017-11-08 Steven G. Kargl PR Fortran/82841 * simplify.c(gfc_simplify_transfer): Do not dereference a NULL pointer. Unwrap a short line. 2017-11-08 Steven G. Kargl PR Fortran/82841 * gfortran.dg/tra

Re: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only

2017-11-08 Thread H.J. Lu
On Wed, Nov 8, 2017 at 2:26 PM, Tsimbalist, Igor V wrote: >> -Original Message- >> From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- >> ow...@gcc.gnu.org] On Behalf Of Jeff Law >> Sent: Wednesday, November 8, 2017 7:31 PM >> To: Tsimbalist, Igor V ; gcc- >> patc...@gcc.gnu.org >> Cc

Re: Protect against min_profitable_iters going negative

2017-11-08 Thread Jeff Law
On 11/08/2017 09:49 AM, Richard Sandiford wrote: > We had: > > if (vec_outside_cost <= 0) > min_profitable_iters = 0; > else > { > min_profitable_iters = ((vec_outside_cost - scalar_outside_cost) > * assumed_vf >

Re: Base subreg rules on REGMODE_NATURAL_SIZE rather than UNITS_PER_WORD

2017-11-08 Thread Jeff Law
On 11/06/2017 07:53 AM, Richard Sandiford wrote: >>> 2017-09-18 Richard Sandiford >>> Alan Hayward >>> David Sherwood >>> >>> gcc/ >>> * doc/rtl.texi: Rewrite the subreg rules so that they partition >>> the inner register into REGMODE_NATURAL_SIZE bytes rather than >>

Re: Be stricter about CONST_VECTOR operands

2017-11-08 Thread Jeff Law
On 11/06/2017 02:10 AM, Richard Sandiford wrote: > The recent gen_vec_duplicate patches used CONST_VECTOR for all > constants, but the documentation says: > > @findex const_vector > @item (const_vector:@var{m} [@var{x0} @var{x1} @dots{}]) > Represents a vector constant. The square brackets

Re: Add support for adjusting the number of units in a mode

2017-11-08 Thread Jeff Law
On 10/25/2017 09:57 AM, Richard Sandiford wrote: > We already allow the target to change the size and alignment of a mode. > This patch does the same thing for the number of units, which is needed > to give command-line control of the SVE vector length. > > Tested on aarch64-linux-gnu, x86_64-linu

Re: [10/10] Add a vect_masked_store target selector

2017-11-08 Thread Jeff Law
On 11/03/2017 10:23 AM, Richard Sandiford wrote: > This patch adds a target selector that says whether the target > supports IFN_MASK_STORE. > > > 2017-11-03 Richard Sandiford > Alan Hayward > David Sherwood > > gcc/ > * doc/sourcebuild.texi (vect_masked_store):

Re: [9/10] Add a vect_align_stack_vars target selector

2017-11-08 Thread Jeff Law
On 11/03/2017 10:22 AM, Richard Sandiford wrote: > This patch adds a target selector to say whether it's possible to > align a local variable to the target's preferred vector alignment. > This can be false for large vectors if the alignment is only > a preference and not a hard requirement (and thu

Re: [8/10] Add a vect_variable_length target selector

2017-11-08 Thread Jeff Law
On 11/03/2017 10:21 AM, Richard Sandiford wrote: > This patch adds a target selector for variable-length vectors. > Initially it's always false, but the SVE patch provides a case > in which it's true. > > > 2017-11-03 Richard Sandiford > Alan Hayward > David Sherwood >

Re: [7/10] Add a vect_unaligned_possible target selector

2017-11-08 Thread Jeff Law
On 11/03/2017 10:20 AM, Richard Sandiford wrote: > This patch adds a target selector that says whether we can ever > generate an "unaligned" accesses, where "unaligned" is relative > to the target's preferred vector alignment. This is already true if: > >vect_no_align && { ! vect_hw_misalign

Re: [6/10] Add a vect_element_align_preferred target selector

2017-11-08 Thread Jeff Law
On 11/03/2017 10:20 AM, Richard Sandiford wrote: > This patch adds a target selector for targets whose > preferred_vector_alignment is the alignment of one element. We'll never > peel in that case, and the step of a loop that operates on normal (as > opposed to packed) elements will always divide

RE: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only

2017-11-08 Thread Tsimbalist, Igor V
> -Original Message- > From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > ow...@gcc.gnu.org] On Behalf Of Jeff Law > Sent: Wednesday, November 8, 2017 7:31 PM > To: Tsimbalist, Igor V ; gcc- > patc...@gcc.gnu.org > Cc: trie...@redhat.com; Jakub Jelinek > Subject: Re: [PATCH 21/22]

RE: [PATCH 07/22] Enable building libgcc with CET options.

2017-11-08 Thread Tsimbalist, Igor V
> -Original Message- > From: Jeff Law [mailto:l...@redhat.com] > Sent: Wednesday, November 8, 2017 6:21 PM > To: Tsimbalist, Igor V ; Joseph Myers > ; gcc-patches@gcc.gnu.org; i...@airs.com > Subject: Re: [PATCH 07/22] Enable building libgcc with CET options. > > On 10/31/2017 05:29 AM, Ts

Re: [PATCH] RISC-V: Fix build error

2017-11-08 Thread Palmer Dabbelt
Committed. Thanks, Kito :). On Tue, 07 Nov 2017 15:20:05 PST (-0800), Palmer Dabbelt wrote: > From: Kito Cheng > > - This build error was indroduced by "RISC-V: Implement movmemsi" > and "RISC-V: Support -mpreferred-stack-boundary flag" > > gcc/ChangeLog > > 2017-11-07 Kito Cheng > >

RE: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread Tsimbalist, Igor V
> -Original Message- > From: Jeff Law [mailto:l...@redhat.com] > Sent: Wednesday, November 8, 2017 8:06 PM > To: Tsimbalist, Igor V ; gcc- > patc...@gcc.gnu.org > Cc: i...@airs.com > Subject: Re: [PATCH 08/22] Add Intel CET support for EH in libgcc. > > On 11/04/2017 06:43 AM, Tsimbalist,

[PATCH, rs6000] Add __builtin_altivec_vsumsws

2017-11-08 Thread Carl Love
GCC Maintainers: The following patch add support for the builtin: vector signed int __builtin_altivec_vsumsws_be (vector signed int, vector signed int) The patch has been tested on powerpc64le-unknown-linux-gnu (Power 8 LE), powerpc64le-unknown-linux-gnu (Power 9 LE) without

RE: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only

2017-11-08 Thread Tsimbalist, Igor V
Igor > -Original Message- > From: H.J. Lu [mailto:hjl.to...@gmail.com] > Sent: Wednesday, November 8, 2017 7:18 PM > To: Tsimbalist, Igor V > Cc: Jeff Law ; gcc-patches@gcc.gnu.org; > trie...@redhat.com > Subject: Re: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only > > On Tue,

[PATCH, committed] Fix PR fortran/82884

2017-11-08 Thread Steve Kargl
Once the bug is found, the fix is obvious. Briefly, in a typespec, ts.u.cl and ts.u.pad are in the same union. When parsing a Hollerith, ts.u.pad is is set to a nonzero value. Later, when resolving the array constructor with Hollerith entities, a reference to ts.u.cl is made which is a mangled

[PATCH 2/2] Reimplementation of param-manipulation

2017-11-08 Thread Martin Jambor
Hi, this patch is a substantial rewrite of function parameter manipulations currently used by IPA-SRA and OpenMP SIMD cloning. I started it with the aim to cleanup the code but also to make the data structures as small as possible so that, for real IPA-SRA, I can attach them to call graph nodes i

[PATCH 1/2] Moving parameter manipulation into its own file

2017-11-08 Thread Martin Jambor
Hi, the following patch moves all function and call parameter manipulation (as opposed to analysis) data structures and functions from ipa-prop.h and ipa-prop.c to new files ipa-param-manipulation.h and ipa-param-manipulation.c respectively. It does no functional change. Please look at the follo

Re: [Patch, fortran] PR78619 - [6/7/8 Regression] ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:889

2017-11-08 Thread Steve Kargl
On Wed, Nov 08, 2017 at 07:51:54PM +, Paul Richard Thomas wrote: > This regression arose from the patch for PR66465, in which the type > check for the associated intrinsic was failing when testing the > association of a procedure pointer component with a procedure pointer. > See the comment in

Re: [PATCH] Set default to -fomit-frame-pointer

2017-11-08 Thread Andreas Schwab
On Nov 08 2017, Wilco Dijkstra wrote: > Joseph Myers wrote: >> On Fri, 3 Nov 2017, Wilco Dijkstra wrote: >> >> > Almost all targets add an explict -fomit-frame-pointer in the target >> > specific >> > options.  Rather than doing this in a target-specific way, do this in the >> >> Which targets d

Re: [PATCH], Generate XXBR{H,W,D} for bswap{16,32,64} on PowerPC ISA 3.0 (power9)

2017-11-08 Thread Michael Meissner
On Wed, Nov 08, 2017 at 08:01:06AM -0600, Segher Boessenkool wrote: > Hi Mike, > > On Wed, Nov 08, 2017 at 08:14:31AM -0500, Michael Meissner wrote: > > PowerPC ISA 3.0 does not have a byte-reverse instruction that operates on > > the > > GPRs, but it does have vector byte swap half-word, word, d

[Patch, fortran] PR78619 - [6/7/8 Regression] ICE in copy_reference_ops_from_ref, at tree-ssa-sccvn.c:889

2017-11-08 Thread Paul Richard Thomas
This regression arose from the patch for PR66465, in which the type check for the associated intrinsic was failing when testing the association of a procedure pointer component with a procedure pointer. See the comment in the patch for an explanation as to why this is an issue. The fix is to isolat

Re: [PATCH] Add option to force indirect calls for x86

2017-11-08 Thread Uros Bizjak
> gcc/: > 2017-11-08 Andi Kleen > > * config/i386/i386.opt: Add -mforce-indirect-call. > * config/i386/predicates.md: Check for flag_force_indirect_call. > * doc/invoke.texi: Document -mforce-indirect-call > > gcc/testsuite/: > 2017-11-08 Andi Kleen > > * gcc.target/i386/force-indirect-call-1

Re: [x86][patch] Add -march=cannonlake.

2017-11-08 Thread Uros Bizjak
On Wed, Nov 8, 2017 at 9:02 AM, Koval, Julia wrote: > Attachment got lost. > >> -Original Message- >> From: Koval, Julia >> Sent: Wednesday, November 08, 2017 9:01 AM >> To: 'GCC Patches' >> Cc: 'Uros Bizjak' ; 'Kirill Yukhin' >> >> Subject: RE: [x86][patch] Add -march=cannonlake. >> >>

Re: [5/10] Add vect_perm3_* target selectors

2017-11-08 Thread Jeff Law
On 11/03/2017 10:19 AM, Richard Sandiford wrote: > SLP load permutation fails if any individual permutation requires more > than two vector inputs. For 128-bit vectors, it's possible to permute > 3 contiguous loads of 32-bit and 8-bit elements, but not 16-bit elements > or 64-bit elements. The re

[GCC-6.4][ARM][PATCH v2] enable FL_LPAE flag for armv7ve cores

2017-11-08 Thread Andre McCurdy
The following commit added the FL_LPAE flag to FL_FOR_ARCH7VE, but neglected to also add it to the armv7ve compatible cores defined in arm-cores.def. https://github.com/gcc-mirror/gcc/commit/af2d9b9e58e8be576c53d94f30c48c68146b0c98 The result is that gcc 6.4 now refuses to allow -march=armv7ve

Re: [GCC-6.4][ARM][PATCH] enable FL_LPAE flag for armv7ve cores

2017-11-08 Thread Andre McCurdy
On Wed, Nov 8, 2017 at 2:03 AM, Kyrill Tkachov wrote: > Hi Andre, > > On 08/11/17 05:12, Andre McCurdy wrote: >> >> The following commit added the FL_LPAE flag to FL_FOR_ARCH7VE, but >> neglected to also add it to the armv7ve compatible cores defined in >> arm-cores.def. >> >> https://github.com/

Re: [4/10] Don't assume vect_multiple_sizes means 2 sizes

2017-11-08 Thread Jeff Law
On 11/03/2017 10:18 AM, Richard Sandiford wrote: > Some tests assumed that there would only be 2 vector sizes if > vect_multiple_sizes, whereas for SVE there are three (SVE, 128-bit > and 64-bit). This patch replaces scan-tree-dump-times with > scan-tree-dump for vect_multiple_sizes but keeps it f

Re: [3/10] Add available_vector_sizes to target-supports.exp

2017-11-08 Thread Jeff Law
On 11/03/2017 10:18 AM, Richard Sandiford wrote: > This patch adds a routine that lists the available vector sizes > for a target and uses it for some existing target conditions. > Later patches add more uses. > > The cases are taken from multiple_sizes. > > > 2017-11-03 Richard Sandiford >

Re: [2/10] Add VECTOR_BITS to tree-vect.h

2017-11-08 Thread Jeff Law
On 11/03/2017 10:17 AM, Richard Sandiford wrote: > Several vector tests are sensitive to the vector size. This patch adds > a VECTOR_BITS macro to tree-vect.h to select the expected vector size > and uses it to influence iteration counts and array sizes. The tests > keep the original values if th

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread H.J. Lu
>> >>> Has this been tested anywhere other than x86/x86_64 linux? >> Yes, I tested it on arm64 system. I applied 2 patches, previous 07/22 and >> this one 08/22. Everything >> was built successfully. Further to the building I did testing also. No new >> fails. > So how does that reconcile with H-

Re: [1/10] Consistently use asm volatile ("" ::: "memory") in vect tests

2017-11-08 Thread Jeff Law
On 11/03/2017 10:15 AM, Richard Sandiford wrote: > The vectoriser tests used a combination of: > > 1) if (impossible condition) abort (); > 2) volatile int x; ... *x = ...; > 3) asm volatile ("" ::: "memory"); > > to prevent vectorisation of a set-up loop. The problem with 1) is that > the compi

Re: [PATCH 08/22] Add Intel CET support for EH in libgcc.

2017-11-08 Thread Jeff Law
On 11/04/2017 06:43 AM, Tsimbalist, Igor V wrote: >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: Tuesday, October 31, 2017 5:49 AM >> To: Tsimbalist, Igor V ; gcc- >> patc...@gcc.gnu.org >> Cc: i...@airs.com >> Subject: Re: [PATCH 08/22] Add Intel CET support for

Re: [PATCH][AArch64] Add STP pattern to store a vec_concat of two 64-bit registers

2017-11-08 Thread Kyrill Tkachov
On 06/06/17 14:17, James Greenhalgh wrote: On Tue, Jun 06, 2017 at 09:40:44AM +0100, Kyrill Tkachov wrote: Hi all, On top of the previous vec_merge simplifications [1] we can add this pattern to perform a store of a vec_concat of two 64-bit values in distinct registers as an STP. This avoids

Re: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only

2017-11-08 Thread Jeff Law
On 11/07/2017 09:22 AM, Tsimbalist, Igor V wrote: > I decided to split my previous patch "Enable building libitm with Intel CET " > into two different patches. The first patch will add a new field to sjlj.S and > target.h files. The second one will add Intel CET support on the top of the > first o

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Richard Sandiford
Martin Sebor writes: > On 11/08/2017 09:51 AM, Richard Sandiford wrote: >> Martin Sebor writes: >>> On 11/08/2017 02:32 AM, Richard Sandiford wrote: Martin Sebor writes: > I haven't done nearly a thorough review but the dtor followed by > the placement new in the POLY_SET_COEFF() ma

Re: [PATCH, rs6000] Fix scheduling description for quad-precision multiply instructions

2017-11-08 Thread Pat Haugen
On 11/08/2017 11:30 AM, Segher Boessenkool wrote: >> --- gcc/config/rs6000/power9.md (revision 254377) >> +++ gcc/config/rs6000/power9.md (working copy) >> @@ -436,6 +436,12 @@ (define_insn_reservation "power9-qpdiv" >> (eq_attr "cpu" "power9")) >>"DU_super_power9,dfu_power9")

Re: [PATCH] Set default to -fomit-frame-pointer

2017-11-08 Thread Wilco Dijkstra
Jeff Law wrote: > I'd actually prefer to deprecate the H8 and M68k.  But assuming that's > not going to happen in the immediate future I think dropping frame > pointers on those targets is appropriate as long as we're generating > dwarf frame info. Is there a way to check a target does not genera

Re: [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only

2017-11-08 Thread H.J. Lu
On Tue, Nov 7, 2017 at 8:22 AM, Tsimbalist, Igor V wrote: > I decided to split my previous patch "Enable building libitm with Intel CET " > into two different patches. The first patch will add a new field to sjlj.S and > target.h files. The second one will add Intel CET support on the top of the

Re: [PATCH 13/22] Enable building libstdc++-v3 with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:03 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Tsimbalist, Igor V >> Sent: Friday, October 1

Re: [PATCH] Set default to -fomit-frame-pointer

2017-11-08 Thread Jeff Law
On 11/08/2017 10:47 AM, Wilco Dijkstra wrote: > Joseph Myers wrote: >> On Fri, 3 Nov 2017, Wilco Dijkstra wrote: >> >>> Almost all targets add an explict -fomit-frame-pointer in the target >>> specific >>> options.  Rather than doing this in a target-specific way, do this in the >> >> Which target

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Jakub Jelinek
On Wed, Nov 08, 2017 at 06:51:34PM +0100, Marek Polacek wrote: > > Ok, so like this if it passes bootstrap/regtest? > > > > Changes from the last patch: > > 1) false instead of lval for COMPOUND_EXPR and *COND_EXPR op1/op2 > > So... Oops, I've hand-edited it in the patch and then regenerated the

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Marek Polacek
On Wed, Nov 08, 2017 at 06:38:21PM +0100, Jakub Jelinek wrote: > On Wed, Nov 08, 2017 at 05:17:50PM +, Joseph Myers wrote: > > On Wed, 8 Nov 2017, Jakub Jelinek wrote: > > > > > of course only if LVAL is false. Additionally, I've added folding of > > > "foo"[2] into 'o'. We have it in gimple

Re: [PATCH] Set default to -fomit-frame-pointer

2017-11-08 Thread Wilco Dijkstra
Joseph Myers wrote: > On Fri, 3 Nov 2017, Wilco Dijkstra wrote: > > > Almost all targets add an explict -fomit-frame-pointer in the target > > specific > > options.  Rather than doing this in a target-specific way, do this in the > > Which targets do not?  You should explicitly list them and CC th

Re: [PATCH 22/22] Enable building libitm with Intel CET

2017-11-08 Thread Jeff Law
On 11/07/2017 09:28 AM, Tsimbalist, Igor V wrote: > Enable building libitm with Intel CET. The patch is based on previous patch > [PATCH 21/22] Add extra field to gtm_jmpbuf on x86 only. > > Ok for trunk? > > Igor > > > 0022-Enable-building-libitm-with-Intel-CET.PATCH > > > From 2a83369b28b2

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Jakub Jelinek
On Wed, Nov 08, 2017 at 05:17:50PM +, Joseph Myers wrote: > On Wed, 8 Nov 2017, Jakub Jelinek wrote: > > > of course only if LVAL is false. Additionally, I've added folding of > > "foo"[2] into 'o'. We have it in gimple-fold.c or so, so that one > > Note that if the 2 there comes from an ov

Re: [Diagnostic Patch] don't print column zero

2017-11-08 Thread Nathan Sidwell
On 11/02/2017 04:33 PM, Nathan Sidwell wrote: On 10/26/2017 10:34 AM, David Malcolm wrote: [CCing Rainer and Mike for the gcc-dg.exp part] My Tcl skills aren't great, so hopefully someone else can review this; CCing Rainer and Mike. Ping? https://gcc.gnu.org/ml/gcc-patches/2017-10/msg01911

Re: [PATCH 20/22] Enable building libobjc with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:18 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [PATCH 18/22] Enable building libmpx with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:15 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-pat

Re: [PATCH 19/22] Enable building libgfortran with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:16 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [PATCH 17/22] Enable building libquadmath with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:13 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Martin Sebor
On 11/08/2017 09:51 AM, Richard Sandiford wrote: Martin Sebor writes: On 11/08/2017 02:32 AM, Richard Sandiford wrote: Martin Sebor writes: I haven't done nearly a thorough review but the dtor followed by the placement new in the POLY_SET_COEFF() macro caught my eye so I thought I'd ask soon

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Martin Sebor
On 11/08/2017 09:51 AM, Richard Sandiford wrote: Martin Sebor writes: On 11/08/2017 02:32 AM, Richard Sandiford wrote: Martin Sebor writes: I haven't done nearly a thorough review but the dtor followed by the placement new in the POLY_SET_COEFF() macro caught my eye so I thought I'd ask soon

Re: [PATCH 16/22] Enable building libssp with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:12 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

[Ada] Implementation of AI12-0127 : delta aggregate

2017-11-08 Thread Pierre-Marie de Rodat
This patch updates the implementation of Ada2020 delta aggregatesa to conform to the latest version of AI12-0127. this patch adds checks to reject statically delta aggregates that specify values for components that appear in different variants of a record type. Compiling test2.adb in Ada2020 mode

[Ada] Warn on missing deallocation of coextension

2017-11-08 Thread Pierre-Marie de Rodat
This patch adds an informational warning to alert the user to the fact that GNAT currently mishandles coextensions and that they will not be finalized or deallocated with their respective owners in some as they should according to RM 13.11.2 (9/3). -- Source -- -- types

[Ada] Crash on access-to-object in SPARK

2017-11-08 Thread Pierre-Marie de Rodat
This patch corrects the light expansion of object renamings for SPARK to prevent a crash by querying the subtype mark when the renaming carries an access definition. - -- Sources -- - -- p.ads package P with SPARK_Mode is type T is record Ptr : access constant I

Re: [PATCH 15/22] Enable building libvtv with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:10 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [PATCH, rs6000] Fix scheduling description for quad-precision multiply instructions

2017-11-08 Thread Segher Boessenkool
Hi Pat, On Wed, Nov 08, 2017 at 10:59:23AM -0600, Pat Haugen wrote: > The following patch creates a new insn type to annotate quad precision > multiply instructions, updates the appropriate insns to use the new type > and creates an entry in the Power9 machine description which describes > the co

Re: [PATCH 12/22] Enable building libgomp with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 06:00 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [PATCH 11/22] Enable building libatomic with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 05:58 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. >   > Ok for trunk? > > Igor > > >> -Original Message- >> From: Jeff Law [mailto:l...@redhat.com] >> Sent: We

Re: [PATCH 10/22] Enable building libcilkrts with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 05:54 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. > > Ok for trunk? > > Igor > > >> -Original Message- >> From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patc

Re: [PATCH 09/22] Enable building libbacktrace with Intel CET

2017-11-08 Thread Jeff Law
On 10/31/2017 05:47 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling. -iclude option is > dropped, each needed asm file is processed separately. > > Igor > > [ ... ] > > > From d41da

Re: [PATCH 07/22] Enable building libgcc with CET options.

2017-11-08 Thread Jeff Law
On 10/31/2017 05:29 AM, Tsimbalist, Igor V wrote: > The revised patch is attached. The differences are in what options are > defined and propagated to Makefile for CET enabling, also needed asm files > are updated. > [ ... ] > > 0007-Enable-building-libgcc-with-CET-options.patch > > > From d

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Joseph Myers
On Wed, 8 Nov 2017, Jakub Jelinek wrote: > of course only if LVAL is false. Additionally, I've added folding of > "foo"[2] into 'o'. We have it in gimple-fold.c or so, so that one Note that if the 2 there comes from an overflowing expression that's not valid as an extension to constant express

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Jakub Jelinek
On Wed, Nov 08, 2017 at 05:42:07PM +0100, Marek Polacek wrote: > > Not sure about the COND_EXPR/VEC_COND_EXPR cases, right now I'm passing > > false as LVAL for the first operand (condition) and lval as LVAL for the > > other two (i.e. if called with lval == true on the whole *_COND_EXPR > > decl_c

[PATCH, rs6000] Fix scheduling description for quad-precision multiply instructions

2017-11-08 Thread Pat Haugen
The following patch creates a new insn type to annotate quad precision multiply instructions, updates the appropriate insns to use the new type and creates an entry in the Power9 machine description which describes the correct latency/resources. Bootstrap/regtest on powerpc64le-linux with no new r

[PING] [PATCH] Add a warning for invalid function casts

2017-11-08 Thread Bernd Edlinger
Ping... for the C++ part of this patch: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00559.html Thanks Bernd. > On 10/10/17 00:30, Bernd Edlinger wrote: >> On 10/09/17 20:34, Martin Sebor wrote: >>> On 10/09/2017 11:50 AM, Bernd Edlinger wrote: On 10/09/17 18:44, Martin Sebor wrote:

[Ada] Accessibility violation flagged on anonymous access component

2017-11-08 Thread Pierre-Marie de Rodat
The compiler was incorrectly generating an unconditional raise of Program_Error (and associated warnings) for returning a component with an anonymous access type within a function of a generic instance. The code that was performing this check was intended to apply only to anonymous access discrimi

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Richard Sandiford
Martin Sebor writes: > On 11/08/2017 02:32 AM, Richard Sandiford wrote: >> Martin Sebor writes: >>> I haven't done nearly a thorough review but the dtor followed by >>> the placement new in the POLY_SET_COEFF() macro caught my eye so >>> I thought I'd ask sooner rather than later. Given the macr

Protect against min_profitable_iters going negative

2017-11-08 Thread Richard Sandiford
We had: if (vec_outside_cost <= 0) min_profitable_iters = 0; else { min_profitable_iters = ((vec_outside_cost - scalar_outside_cost) * assumed_vf - vec_inside_cost * peel_iters_prologue

Re: [001/nnn] poly_int: add poly-int.h

2017-11-08 Thread Martin Sebor
On 11/08/2017 02:32 AM, Richard Sandiford wrote: Martin Sebor writes: I haven't done nearly a thorough review but the dtor followed by the placement new in the POLY_SET_COEFF() macro caught my eye so I thought I'd ask sooner rather than later. Given the macro definition: + The dummy compari

[Ada] Implementation of AI12-0127 : delta aggregate

2017-11-08 Thread Pierre-Marie de Rodat
This patch updates the implementation of Ada2020 delta aggregates, so they can be used in the context of a private extension of a record type. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ 2017-11-08 Ed Schonberg * sem_ch4.adb (Analyze_Aggregate): For Ada2020 delta aggre

Re: [PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Marek Polacek
On Wed, Nov 08, 2017 at 05:22:45PM +0100, Jakub Jelinek wrote: > Hi! > > Here is an attempt to fix these two PRs. The C++ FE already has an LVAL Nice! > bool that it propagates through constexpr.c functions, or in > cp-gimplify.c through calling cp_fold_{maybe_,}rvalue where appropriate. > The

Add support for masked load/store_lanes

2017-11-08 Thread Richard Sandiford
This patch adds support for vectorising groups of IFN_MASK_LOADs and IFN_MASK_STOREs using conditional load/store-lanes instructions. This requires new internal functions to represent the result (IFN_MASK_{LOAD,STORE}_LANES), as well as associated optabs. The normal IFN_{LOAD,STORE}_LANES function

Re: [PATCH] Fix UBSAN errors in dse.c (PR rtl-optimization/82044).

2017-11-08 Thread Jeff Law
On 11/02/2017 07:15 AM, Martin Liška wrote: > PING^1 I don't see an updated patch in this thread? THe last message I see is this one where you indicate you're going to tweak the patch and re-test. Jeff > > On 10/19/2017 01:36 PM, Martin Liška wrote: >> On 09/20/2017 10:15 AM, Jakub Jelinek wrot

[PATCH] Add LVAL argument to c_fully_fold* and propagate it through (PR c/66618, PR c/69960)

2017-11-08 Thread Jakub Jelinek
Hi! Here is an attempt to fix these two PRs. The C++ FE already has an LVAL bool that it propagates through constexpr.c functions, or in cp-gimplify.c through calling cp_fold_{maybe_,}rvalue where appropriate. The C c_fully_fold was instead just calling decl_constant_value_for_optimization in som

[Ada] Ignore file and unit names when collecting SPARK cross-references

2017-11-08 Thread Pierre-Marie de Rodat
Human-readable file and unit names in SPARK cross-references were only needed to make the ALI file human-redable. They are now removed (but can be added to the debug routine dspark if needed). Modified code is only executed as part of GNATprove, so no impact on the frontend. Behaviour unaffected,

Re: [PATCH] Remove non needed check in bmp_iter_set_init (PR tree-optimization/82669).

2017-11-08 Thread Jeff Law
On 11/08/2017 12:13 AM, Martin Liška wrote: > Hello. > > Assert removal is logical as it's used in iteration and if sbitmap is empty, > iteration > macro will not touch any element of a bitmap. > > Ready after it survives regression tests? > > Thanks, > Martin > > gcc/ChangeLog: > > 2017-11-0

[Ada] Continue decontruction of SPARK frontend cross-references

2017-11-08 Thread Pierre-Marie de Rodat
While traversing the AST to collect SPARK cross-references (which are used to synthesize Global contracts for code with SPARK_Mode => Off), we always traverse body stubs. There is no need to configure this by a parameter. The modified code is only executed as part of GNATprove. Behaviour unchanged

[Ada] Missing categorization check on generic subprogram body

2017-11-08 Thread Pierre-Marie de Rodat
This patch adds a categorization check on a generic subprogram body, so that the compiler can reject a generic subprogram marked Pure if its body depends on an impure unit. Compiling gf.adb must yield: gf.adb:2:06: cannot depend on "Impure" (wrong categorization) gf.adb:2:06: pure unit cann

[Ada] Spurious ineffective use_clause warning on class-wide type

2017-11-08 Thread Pierre-Marie de Rodat
This patch corrects an issue whereby the use of a class-wide type's primitive did not lead to its base type being recognized as effective - causing to spurious use_clause warnings. Additionally, class-wide types used as generic actuals were not checked in certain cases due to not being flagged as p

[Ada] Store SPARK cross-references as Entity_Ids, not strings

2017-11-08 Thread Pierre-Marie de Rodat
GNATprove now picks frontend cross-references directly from memory and not from an ALI file), so there is no need to convert them to strings; it is cleaner and more efficient to store them as Entity_Ids. No test provided, because the behaviour is not affected. Tested on x86_64-pc-linux-gnu, commit

[Ada] Don't collect inessential data about SPARK cross-references

2017-11-08 Thread Pierre-Marie de Rodat
Part of deconstructing SPARK cross-references, which are used to synthesize Global contracts for code annotated with SPARK_Mode => Off. Data like line and column numbers was only needed to make the xrefs in the ALI file more readable. Now that the xrefs are not written to the ALI file at all, ther

Re: [PATCH] Replace has_single_use guards in store-merging

2017-11-08 Thread Jakub Jelinek
On Wed, Nov 08, 2017 at 04:20:15PM +0100, Richard Biener wrote: > Can't you simply use > >unsigned ret = 0; >FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_USE) > if (!has_single_use (op)) >++ret; >return ret; > > ? Not sure if the bit_not_p handling is required. Con

[Ada] Remove dead check in collecting SPARK cross-references

2017-11-08 Thread Pierre-Marie de Rodat
GNATprove never collects cross-references to empty entities. Removed code most likely became dead at some point and this was not noticed. No test, as the removed code was only executed as part of GNATprove and its behaviour appears not affected. Tested on x86_64-pc-linux-gnu, committed on trunk 2

Re: [PATCH] Replace has_single_use guards in store-merging

2017-11-08 Thread Richard Biener
On Mon, 6 Nov 2017, Jakub Jelinek wrote: > Hi! > > As mentioned earlier, the !has_single_use checks disable store merging > in many cases, it is enough to have a single multiple-use somewhere and > all of sudden we break the group. > > The following patch replaces it by heuristics, it is GIMPLE

[Ada] Missing finalization during deallocation

2017-11-08 Thread Pierre-Marie de Rodat
This patch corrects the expansion of Unchecked_Deallocation calls to operate with the available view of the designated type. This ensures that if the type is visible through a limited with clause, the expansion properly detects the case where the designated type requires finalization actions.

[Ada] Deconstruct storing SPARK cross-references in the ALI files

2017-11-08 Thread Pierre-Marie de Rodat
GNATprove relied on frontend writing cross-references data into the ALI files to synthesize Global contracts. Now this is done by the GNATprove itself. This patch deconstructs the frontend code, that is no longer needed. No test, as only dead code removed. Tested on x86_64-pc-linux-gnu, committed

  1   2   >