Re: [PATCH, Fortran, pr78672, ctp1, v1] Gfortran test suite failures with a sanitized compiler

2016-12-10 Thread Mikael Morin
Hello, Le 09/12/2016 à 11:55, Andre Vehreschild a écrit : Hi Mikael, thanks a lot for your comments. Note I also have added the reply to your latest email here. On Thu, 8 Dec 2016 23:49:57 +0100 Mikael Morin wrote: diff --git a/gcc/fortran/data.c b/gcc/fortran/data.c index 139ce88..4f835b

committed: make i486 default arch for x86 NetBSD

2016-12-10 Thread Krister Walfridsson
I have committed the attached patch to make i486 the default arch on NetBSD in the same way as for FreeBSD, as 386 CPUs are not supported on any maintained version of NetBSD. Bootstrapped and tested on i386-unknown-netbsdelf6.1 /Krister 2016-12-10 Krister Walfridsson * config.

Re: [PATCH/AARCH64] Handle ILP32 multi-arch

2016-12-10 Thread Andrew Pinski
On Thu, Nov 10, 2016 at 6:58 PM, Andrew Pinski wrote: > On Tue, Oct 25, 2016 at 3:25 PM, Matthias Klose wrote: >> On 07.10.2016 23:08, Andrew Pinski wrote: >>> Hi, >>> This patch adds ilp32 multi-arch support. This is needed to support >>> multi-arch on Debian like systems. >>> >>> OK? Bootst

committed: add i386/t-crtstuff to i[34567]86-*-netbsdelf tmake_file

2016-12-10 Thread Krister Walfridsson
I have committed the attached patch to add i386/t-crtstuff to tmake_file for i[34567]86-*-netbsdelf*. Bootstrapped and tested on i386-unknown-netbsdelf6.1 (fixes 29378 failures) /Krister 2016-12-10 Krister Walfridsson * config.host (i[34567]86-*-netbsdelf*): Add i386/t-crtstu

Re: [PATCHv3] [AARCH64] Add variant support to -m="native"and add thunderxt88p1.

2016-12-10 Thread Andrew Pinski
On Sat, Nov 26, 2016 at 1:54 PM, Andrew Pinski wrote: > On Tue, Nov 1, 2016 at 11:08 AM, Andrew Pinski wrote: >> On Tue, Nov 17, 2015 at 2:10 PM, Andrew Pinski wrote: >>> Since ThunderX T88 pass 1 (variant 0) is a ARMv8 part while pass 2 (variant >>> 1) >>> is an ARMv8.1 part, I needed to add d

Re: cprop fix for PR78626

2016-12-10 Thread Segher Boessenkool
On Thu, Dec 08, 2016 at 01:21:04PM +0100, Bernd Schmidt wrote: > This is another case where an optimization turns a trap_if > unconditional. We have to defer changing the CFG, since the rest of > cprop seems to blow up when we modify things while scanning. > > Bootstrapped and tested on x86_64-l

Re: [PATCH] [x86] Don't use builtins for SIMD shifts

2016-12-10 Thread Marc Glisse
On Sat, 10 Dec 2016, Allan Sandfeld Jensen wrote: On Saturday 10 December 2016, Marc Glisse wrote: On Sat, 10 Dec 2016, Marc Glisse wrote: On Sat, 10 Dec 2016, Allan Sandfeld Jensen wrote: Replaces the definitions of the shift intrinsics with GCC extension syntax to allow GCC to reason about

Re: [RFC] combine: Improve change_zero_ext, call simplify_set afterwards.

2016-12-10 Thread Segher Boessenkool
On Sat, Dec 10, 2016 at 10:37:38AM -0600, Segher Boessenkool wrote: > Okay for trunk with those changes (did you bootstrap+regcheck this > already?) Thanks, Oh, and a changelog :-) Segher

Re: [PATCH] PR fortran/65173 -- kill off old_cl_list from gfc_namespace.

2016-12-10 Thread Paul Richard Thomas
Dear Steve and Andre, It turns out that Andre's instrumented gfortran came up trumps. There was a block in resolve_structure_cons that attempted to remove a charlen and, in so doing, broke the charlen chain. I have left it to namespace cleanup to do the job in revision 243517. The module.c stuff w

Re: [PATCH] [x86] Don't use builtins for SIMD shifts

2016-12-10 Thread Marc Glisse
On Sat, 10 Dec 2016, Marc Glisse wrote: On Sat, 10 Dec 2016, Allan Sandfeld Jensen wrote: Replaces the definitions of the shift intrinsics with GCC extension syntax to allow GCC to reason about what the instructions does. Tests are added to ensure the intrinsics still produce the right instru

Re: [PATCH] [x86] Don't use builtins for SIMD shifts

2016-12-10 Thread Marc Glisse
On Sat, 10 Dec 2016, Allan Sandfeld Jensen wrote: Replaces the definitions of the shift intrinsics with GCC extension syntax to allow GCC to reason about what the instructions does. Tests are added to ensure the intrinsics still produce the right instructions, and that a few basic optimizations

Re: [RFC] combine: Improve change_zero_ext, call simplify_set afterwards.

2016-12-10 Thread Segher Boessenkool
On Fri, Dec 09, 2016 at 04:23:44PM +0100, Dominik Vogt wrote: > 0001-* > > Deal with mode expanding zero_extracts in change_zero_ext. The > patch looks good to me, but not sure whether endianness is > handled properly. Is the second argument of gen_rtx_SUBREG > correct? > >From 600ed3da

New Spanish PO file for 'gcc' (version 6.2.0)

2016-12-10 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the Spanish team of translators. The file is available at: http://translationproject.org/latest/gcc/es.po (This file, 'gcc-6.2.0.es.po', has just

Re: [PATCH] gcc: config: tilegx: Reserve prev insn when delete useless insn

2016-12-10 Thread Bernd Edlinger
On 12/10/16 12:23, cheng...@emindsoft.com.cn wrote: > From: Chen Gang > > When check bundle, gcc may still need modify the prev insn. Original > implementation will lose the prev insn. > > Also correct the coding styles of relate code. > > 2016-12-10 Chen Gang > > gcc/ > PR target/78

Re: [PATCH] Fix A < 0 ? C : 0 optimization (PR tree-optimization/78720)

2016-12-10 Thread Richard Biener
On December 10, 2016 12:01:37 PM GMT+01:00, Jakub Jelinek wrote: >On Sat, Dec 10, 2016 at 11:45:35AM +0100, Marc Glisse wrote: >> On Sat, 10 Dec 2016, Jakub Jelinek wrote: >> >> >* match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift >> >is negative, first convert to @1's type

Re: [PATCH] Add support for Fuchsia (OS)

2016-12-10 Thread Richard Earnshaw
On 08/12/16 22:55, Josh Conner wrote: > + arm*-*-fuchsia*) > + tm_file="${tm_file} fuchsia.h arm/fuchsia-elf.h glibc-stdint.h" > + tmake_file="${tmake_file} arm/t-bpabi" > + ;; This will leave the default cpu as arm7tdmi. Is that what you want? It's fine if it is, but if no

[PATCH] gcc: config: tilegx: Reserve prev insn when delete useless insn

2016-12-10 Thread chengang
From: Chen Gang When check bundle, gcc may still need modify the prev insn. Original implementation will lose the prev insn. Also correct the coding styles of relate code. 2016-12-10 Chen Gang gcc/ PR target/78222 * tilegx.c (tilegx_gen_bundle): Reserve prev insn when

Re: [PATCH, GCC/ARM] Define arm_arch_core_flags in a single file

2016-12-10 Thread Richard Earnshaw (lists)
On 09/12/16 16:56, Thomas Preudhomme wrote: > Hi, > > This patch moves the definition of arm_arch_core_flags along with the > declaration of its structure element type to > common/config/arm/arm-common.c so that it is not *defined* in all object > files including tm.h. Otherwise, GCC gets bloated

[C++ PATCH] Demangle decltype(auto) (PR c++/78761)

2016-12-10 Thread Jakub Jelinek
Hi! Mangling of decltype(auto) has been added back in April 2013: https://gcc.gnu.org/ml/gcc-patches/2013-04/msg01273.html and matches the https://mentorembedded.github.io/cxx-abi/abi.html#mangling ::= Da # auto ::= Dc # decltype(auto) part, but the corresponding

Re: [PATCH] Fix A < 0 ? C : 0 optimization (PR tree-optimization/78720)

2016-12-10 Thread Jakub Jelinek
On Sat, Dec 10, 2016 at 11:45:35AM +0100, Marc Glisse wrote: > On Sat, 10 Dec 2016, Jakub Jelinek wrote: > > > * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift > > is negative, first convert to @1's type and then lshift it by -shift. > > Thanks, the ChangeLog needs updati

Re: [PATCH] Fix A < 0 ? C : 0 optimization (PR tree-optimization/78720)

2016-12-10 Thread Marc Glisse
On Sat, 10 Dec 2016, Jakub Jelinek wrote: * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift is negative, first convert to @1's type and then lshift it by -shift. Thanks, the ChangeLog needs updating. --- gcc/match.pd.jj 2016-12-09 10:19:10.909735559 +0100

Re: [PATCH] Fix A < 0 ? C : 0 optimization (PR tree-optimization/78720)

2016-12-10 Thread Jakub Jelinek
On Sat, Dec 10, 2016 at 10:05:50AM +0100, Paolo Bonzini wrote: > > > On 09/12/2016 20:26, Jakub Jelinek wrote: > > +tree ctype = TREE_TYPE (@1); > > + } > > + (if (shift >= 0) > > +(bit_and > > + (convert (rshift @0 { build_int_cst (integer_type_node, shift); })) > > + @1) > >

Re: [PATCH] Fix A < 0 ? C : 0 optimization (PR tree-optimization/78720)

2016-12-10 Thread Paolo Bonzini
On 09/12/2016 20:26, Jakub Jelinek wrote: > +tree ctype = TREE_TYPE (@1); > + } > + (if (shift >= 0) > +(bit_and > + (convert (rshift @0 { build_int_cst (integer_type_node, shift); })) > + @1) > +(bit_and > + (lshift (convert:ctype @0) { build_int_cst (integer_type_nod