[PATCH] Default to an ARM cpu that exists

2018-10-20 Thread coypu
Regarding target/86383, it wasn't sufficient to not just pick arm6 for netbsd, as the default -mcpu is still arm6, which also fails to build. I assume the default is expected to be the oldest support, and I think now that's arm8, so maybe default to that. diff --git a/gcc/config.gcc b/gcc/config.

Re: [patch] new API for value_range

2018-10-20 Thread H.J. Lu
On Wed, Oct 17, 2018 at 7:39 AM Aldy Hernandez wrote: > > > > On 10/17/18 6:50 AM, Richard Biener wrote: > > On Thu, Oct 11, 2018 at 8:25 PM Aldy Hernandez wrote: > >> > >> > >> > >> On 10/11/18 5:47 AM, Richard Biener wrote: > >>> On Thu, Oct 11, 2018 at 10:19 AM Aldy Hernandez wrote: > >

[PATCH] i386: Add missing AVX512VL or/xor intrinsics

2018-10-20 Thread H.J. Lu
gcc/ PR target/87662 * i386/avx512vlintrin.h (_mm256_or_epi32): New. (_mm_or_epi32): Likewise. (_mm256_xor_epi32): Likewise. (_mm_xor_epi32): Likewise. (_mm256_or_epi64): Likewise. (_mm_or_epi64): Likewise. (_mm256_xor_epi64): Likewis

Re: [PATCH] avoid warning on constant strncpy until next statement is reachable (PR 87028)

2018-10-20 Thread Martin Sebor
On 10/16/2018 03:21 PM, Jeff Law wrote: On 10/4/18 9:51 AM, Martin Sebor wrote: On 10/04/2018 08:58 AM, Jeff Law wrote: On 8/27/18 9:42 AM, Richard Biener wrote: On Mon, Aug 27, 2018 at 5:32 PM Jeff Law wrote: On 08/27/2018 02:29 AM, Richard Biener wrote: On Sun, Aug 26, 2018 at 7:26 AM Je

Re: Avoid unnecessarily numbered clone symbols

2018-10-20 Thread Michael Ploujnikov
On 2018-10-20 07:39 AM, Bernhard Reutner-Fischer wrote: > On 20 October 2018 00:26:15 CEST, Michael Ploujnikov > wrote: >> While working on >> https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00228.html I've >> accumulated a few easy patches. > > > +/* Return decl name IDENTIFIER with string SUFF

Re: [PATCH 1/2] i386: Enable AVX512 memory broadcast for FP mul

2018-10-20 Thread H.J. Lu
On 10/20/18, Uros Bizjak wrote: > On Fri, Oct 19, 2018 at 11:08 PM H.J. Lu wrote: >> >> Many AVX512 vector operations can broadcast from a scalar memory source. >> This patch enables memory broadcast for FP mul operations. >> >> gcc/ >> >> PR target/72782 >> * config/i386/sse.md (

[PATCH] bring netbsd/arm support up to speed. eabi, etc.

2018-10-20 Thread Maya Rashish
--- gcc/config.gcc | 33 +- gcc/config.host | 2 +- gcc/config/arm/netbsd-eabi.h| 108 gcc/config/arm/netbsd-elf.h | 10 +++ gcc/config/netbsd-elf.h | 15 + libgcc/config.host | 11 +++-

[PATCH] Add a fun parameter to three stmt_could_throw... functions

2018-10-20 Thread Martin Jambor
Hi, This long patch only does one simple thing, adds an explicit function parameter to predicates stmt_could_throw_p, stmt_can_throw_external and stmt_can_throw_internal. My motivation was ability to use stmt_can_throw_external in IPA analysis phase without the need to push cfun. As I have disco

Re: [PATCH 02/14] Add D frontend (GDC) implementation.

2018-10-20 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 11:48, Richard Sandiford wrote: > > Iain Buclaw writes: > > +/* The LHS expression could be an assignment, to which it's operation > > gets > > + lost during gimplification. */ > > +if (TREE_CODE (lhs) == MODIFY_EXPR) > > + { > > + lexpr = compound_

Re: [PATCH 02/14] Add D frontend (GDC) implementation.

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 11:03, Richard Sandiford wrote: > > Iain Buclaw writes: > > On 14 October 2018 at 17:29, Richard Sandiford > > wrote: > >> [Sorry if this turns out to do be a dup] > >> > >> Iain Buclaw writes: > >>> +/* Clear the DECL_BUILT_IN_CLASS flag on the function in CALLEXP. */ >

Re: PATCH to enable testing C++17 by default

2018-10-20 Thread Marek Polacek
On Wed, Oct 17, 2018 at 03:19:42PM -0600, Jeff Law wrote: > On 10/17/18 1:31 PM, Marek Polacek wrote: > > As discussed in > > it > > seems to be a high time we turned on testing C++17 by default. > > > > The only interesting part is at th

Re: [RFC][PATCH LRA] WIP patch to fix one part of PR87507

2018-10-20 Thread Segher Boessenkool
On Fri, Oct 19, 2018 at 05:39:07PM -0500, Peter Bergner wrote: > On 10/19/18 4:16 PM, Peter Bergner wrote: > > Thoughts? I'll note that this does not fix the S390 bugs, since those seem > > to be due to problems with early clobber operands and "matching" constraint > > operands. I'm still working

Re: [PATCH, rs6000] Use unaligned vector types for some pointer casts

2018-10-20 Thread Segher Boessenkool
Hi! On Fri, Oct 19, 2018 at 04:27:27PM -0500, Bill Schmidt wrote: > The x86 intrinsic compatibility headers contain a couple of instances of > undefined behavior where a cast to an aligned type is used when that > alignment is not guaranteed by the expression to be cast from. This > patch fixes t

Re: [PATCH] Add sinh(tanh(x)) and cosh(tanh(x)) rules

2018-10-20 Thread Giuliano Augusto Faulin Belinassi
So I did some further investigation comparing the ULP error. With the formula that Wilco Dijkstra provided, there are cases where the substitution is super precise. With floats: with input : = 9.9940395355224609375000e-01 sinh: before: = 2.896310058593750

Re: [PATCH, rs6000] Don't use __vector __m64 for compatibility reasons

2018-10-20 Thread Segher Boessenkool
Hi Bill, On Fri, Oct 19, 2018 at 04:22:56PM -0500, Bill Schmidt wrote: > For historical reasons, there are different interpretations of whether a > type "__vector " is allowed when is a typedef. For maximum > compatibility between compilers, this patch removes some such cases from > the x86 intr

Re: [RFC][PATCH LRA] WIP patch to fix one part of PR87507

2018-10-20 Thread Segher Boessenkool
Hi Peter, On Fri, Oct 19, 2018 at 04:16:12PM -0500, Peter Bergner wrote: > In lra-constraints.c:process_alt_operands(), we notice that pseudo 92 is > assigned to x1 and that an early clobber operand is also assigned to x1, or > rather, that it uses x1 explicitly. This is enough to trigger reload(

Re: [Patc, fortran] PR85603 - ICE with character array substring assignment

2018-10-20 Thread Paul Richard Thomas
Hmmm! It helps to provide the patch. 2018-10-18 Paul Thomas PR fortran/85603 * frontend-passes.c (get_len_call): New function to generate a call to intrinsic LEN. (create_var): Use this to make length expressions for variable rhs string lengths. Clean up some white spac

Re: [PATCH 02/14] Add D frontend (GDC) implementation.

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 11:03, Richard Sandiford wrote: > > Iain Buclaw writes: > > On 14 October 2018 at 17:29, Richard Sandiford > > wrote: > >> [Sorry if this turns out to do be a dup] > >> > >> Iain Buclaw writes: > >>> +/* Helper routine for all error routines. Reports a diagnostic > >>>

Re: [Patc, fortran] PR85603 - ICE with character array substring assignment

2018-10-20 Thread Paul Richard Thomas
Hi Dominique, Thanks for picking that up. For some reason that I do now see, the regression is caused by the component references. The frontend temporary is picking up the deferred tag from somewhere, even though it is not set. Anyway, all is well if the patch is restricted to character right hand

Re: Avoid unnecessarily numbered clone symbols

2018-10-20 Thread Bernhard Reutner-Fischer
On 20 October 2018 00:26:15 CEST, Michael Ploujnikov wrote: >While working on >https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00228.html I've >accumulated a few easy patches. +/* Return decl name IDENTIFIER with string SUFFIX appended. */ + +tree +suffixed_function_name (tree identifier, const

Re: [PATCH 07/14] Add patches for D language support in GCC targets.

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 10:34, Richard Sandiford wrote: > > Iain Buclaw writes: > > On Tue, 16 Oct 2018 at 17:28, Richard Sandiford > > wrote: > >> > >> Iain Buclaw writes: > >> > diff --git a/gcc/Makefile.in b/gcc/Makefile.in > >> > index 4b7cec82382..0b2daa320c3 100644 > >> > --- a/gcc/Makefil

Re: [PATCH] Add splay-tree "view" for bitmap

2018-10-20 Thread Richard Sandiford
Richard Biener writes: > On Fri, 19 Oct 2018, Richard Sandiford wrote: > >> Richard Biener writes: >> > On October 18, 2018 11:05:32 PM GMT+02:00, Richard Sandiford >> > wrote: >> >>During recent stage3s I've tried to look at profiles of cc1plus >> >>to see whether there was something easy we co

[Driver] Add support for -fuse-ld=lld

2018-10-20 Thread Romain Geissler
Hi, I would like to raise again the question of supporting -fuse-ld=ldd. A patch implementing it was already submitted in https://gcc.gnu.org/ml/gcc-patches/2016-06/msg01722.html by Davide Italiano. This patch still applies correctly to current trunk. I am CC-ing the original author and re-posting

Re: [PATCH 2/2] i386: Enable AVX512 memory broadcast for FP div

2018-10-20 Thread Uros Bizjak
On Fri, Oct 19, 2018 at 11:08 PM H.J. Lu wrote: > > Many AVX512 vector operations can broadcast from a scalar memory source. > This patch enables memory broadcast for FP div operations. > > gcc/ > > PR target/72782 > * config/i386/sse.md (*_div3_bcst): New. > > gcc/testsuite/ > >

Re: [PATCH 1/2] i386: Enable AVX512 memory broadcast for FP mul

2018-10-20 Thread Uros Bizjak
On Fri, Oct 19, 2018 at 11:08 PM H.J. Lu wrote: > > Many AVX512 vector operations can broadcast from a scalar memory source. > This patch enables memory broadcast for FP mul operations. > > gcc/ > > PR target/72782 > * config/i386/sse.md (*mul3_bcst_1): New. > (*mul3_bcst_2

Re: [PATCH] Make strlen range computations more conservative

2018-10-20 Thread Bernd Edlinger
On 10/17/18 11:56 PM, Jeff Law wrote: > On 10/12/18 9:34 PM, Bernd Edlinger wrote: >> On 10/12/18 16:55, Jeff Law wrote: >>> On 9/15/18 2:43 AM, Bernd Edlinger wrote: Hi, this is an update on my strlen range patch (V7). Again re-based and retested to current trunk. I

Re: [PATCH 02/14] Add D frontend (GDC) implementation.

2018-10-20 Thread Richard Sandiford
Iain Buclaw writes: > On 14 October 2018 at 17:29, Richard Sandiford > wrote: >> [Sorry if this turns out to do be a dup] >> >> Iain Buclaw writes: >>> +/* Build nodes that are used by the D front-end. >>> + These are distinct from C types. */ >>> + >>> +static void >>> +d_build_d_type_nodes

Re: [PATCH 07/14] Add patches for D language support in GCC targets.

2018-10-20 Thread Richard Sandiford
Iain Buclaw writes: > On Tue, 16 Oct 2018 at 17:28, Richard Sandiford > wrote: >> >> Iain Buclaw writes: >> > diff --git a/gcc/Makefile.in b/gcc/Makefile.in >> > index 4b7cec82382..0b2daa320c3 100644 >> > --- a/gcc/Makefile.in >> > +++ b/gcc/Makefile.in >> > @@ -2496,6 +2525,7 @@ s-tm-texi: buil

Re: [PATCH] Fix ICE with address of (static) compound literal (PR middle-end/87647)

2018-10-20 Thread Richard Biener
On October 20, 2018 1:00:52 AM GMT+02:00, Jakub Jelinek wrote: >Hi! > >COMPOUND_LITERAL_EXPRs are removed from static initializers in >record_references_in_initializer, unfortunately decode_addr_const can >be >called from const_hash_1 from output_constant_def before that happens >and as record_re

Re: [committed] v3: gccint.texi: add user experience guidelines

2018-10-20 Thread Andreas Schwab
makeinfo 4.12 doesn't like this: ../../gcc/doc//ux.texi:32: Node `Guidelines for Diagnostics' requires a sectioning command (e.g., @unnumberedsec). ../../gcc/doc//ux.texi:593: Node `Guidelines for Options' requires a sectioning command (e.g., @unnumberedsec). ../../gcc/doc//ux.texi:593: `Guidel