[PATCH] Handle __builtin_bswap{16,32,64} in bitwise ccp (PR tree-optimization/89475)

2019-02-24 Thread Jakub Jelinek
Hi! These builtins are perfect candidates for bitwise ccp, the bytes are preserved, just byte-swapped. Noticed this while wondering why we haven't optimized the f9 function in another PR, bswap64 zero extended from 32-bits, later casted to 32-bit unsigned int is 0. Bootstrapped/regtested on x86_

New French PO file for 'gcc' (version 9.1-b20190203)

2019-02-24 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 French team of translators. The file is available at: https://translationproject.org/latest/gcc/fr.po (This file, 'gcc-9.1-b20190203.fr.po',

[patch, fortran] Fix PR 89174, segfault on allocate with MOLD

2019-02-24 Thread Thomas Koenig
Hello world, the attached patch fixes a regression where a segfault occured at runtime for the attached test case. The regression made it out into the wild with the 8.3 release. Unfortunately, it was discovered too late before release to do anything about it. In effect, this patch reverts a par

Re: [PATCH] Handle __builtin_bswap{16,32,64} in bitwise ccp (PR tree-optimization/89475)

2019-02-24 Thread Richard Biener
On February 24, 2019 12:58:05 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >These builtins are perfect candidates for bitwise ccp, the bytes are >preserved, just byte-swapped. > >Noticed this while wondering why we haven't optimized the f9 function >in another PR, bswap64 zero extended from 32-bits,

[PATCH] Fix arm *subsi3_carryin_{compare_,}const patterns (PR target/89434)

2019-02-24 Thread Jakub Jelinek
Hi! As the testcase shows, *subsi3_carryin_{const,compare_const} patterns don't express in RTL what they are actually doing, which may (on the testcase) does cause miscompilation if we manage to propagate constants into it or for other reason simplify-rtx.c etc. tries to simplify them, or if combi

[PATCH] PR d/89177 - Fix unaligned access in std.digest.murmurhash

2019-02-24 Thread Johannes Pfau
Backport latest murmurhash version from upstream (2.084.1). Ran gdc testsuite on X86_64 linux and got feedback on the bugzilla this really fixes the issue. libphobos/ChangeLog: 2019-02-24 Johannes Pfau * src/std/digest/murmurhash.d: PR d/89177: Backport from upstream. Fixes un

Re: [PATCH] libstdc++/89130 and libstdc++/89090 fixes for vector relocation

2019-02-24 Thread Jonathan Wakely
On 21/02/19 20:47 +, Jonathan Wakely wrote: On 05/02/19 14:45 +, Jonathan Wakely wrote: This fixes two PRs, one trivial (don't use C++17 features in C++11 mode) and one more serious (don't require MoveInsertable when we should only need CopyInsertable). It would be nice to rely on if-co

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

2019-02-24 Thread coypu
Pinging with updated patch. I removed a conflict with copyright year change. No longer using unwind-arm (we use dwarf on eabi). I re-tested cross compilation and resulting C and C++ works (caveat: with text relocations, i tested small programs) I believe matt #2 (green) has sent a copyright assign

Re: [patch, fortran] Fix PR 89174, segfault on allocate with MOLD

2019-02-24 Thread Paul Richard Thomas
Hi Thomas, > Of course, there could also be a more profound way of fixing this > bug :-) I wish that it were the case. I am unable to decide whether the design choices made for an F95 compiler have cause the add-ons to be intrinsically complicated or whether or whether F2018, extensions and legac

Re: [patch, fortran] Fix PR 89174, segfault on allocate with MOLD

2019-02-24 Thread Steve Kargl
On Sun, Feb 24, 2019 at 05:42:14PM +, Paul Richard Thomas wrote: > > > Of course, there could also be a more profound way of fixing this > > bug :-) > > I wish that it were the case. I am unable to decide whether the design > choices made for an F95 compiler have cause the add-ons to be > int

Re: [PATCH] Limit simplify_merge_mask optimization to cases where it can't trap (PR rtl-optimization/89445)

2019-02-24 Thread Richard Biener
On February 23, 2019 1:27:46 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >The following testcase is miscompiled on x86_64. The problem is that >simplify_merge_mask optimization throws away an inner VEC_MERGE when >there >is an outer one with the same mask. This can be done only if the >change >do

Re: [PR fortran/89266, patch] - ICE with TRANSFER of len=0 character array constructor

2019-02-24 Thread Harald Anlauf
Committed as rev. 269177. As this patch also fixed PR88326, I added the testcase below. Thanks for the review, Harald 2019-02-24 Harald Anlauf PR fortran/88326 * gfortran.dg/pr88326.f90: New test. On 02/23/19 19:10, Thomas Koenig wrote: > Hi Harald, > >> OK for trunk? Or r

[PATCH] i386: Compile PR target/87007 tests with -mfpmath=sse

2019-02-24 Thread H.J. Lu
-mfpmath=sse is needed to enable SSE for FP math in 32-bit. PR target/87007 * gcc.target/i386/pr87007-1.c: Compile with -mfpmath=sse. * gcc.target/i386/pr87007-2.c: Likewise. --- gcc/testsuite/ChangeLog | 6 ++ gcc/testsuite/gcc.target/i386/pr87007-1.

Re: [ping] [PATCH doc] correct/improve -Wmissing-attributes and -Wattribute-alias

2019-02-24 Thread Sandra Loosemore
On 2/15/19 6:57 PM, Sandra Loosemore wrote: On 2/6/19 9:16 AM, Martin Sebor wrote: The manual documents the -Wno-missing-attributes form of the option as if it was enabled by default, even though it's enabled by -Wall (I can't get this -Wno- convention straight in my head).  I also got private c