Patch ping^2

2018-05-07 Thread Jakub Jelinek
Hi! I'd like to ping following patches: - PR85480 improve AVX512 128-bit insertion into 512-bit zero vector http://gcc.gnu.org/ml/gcc-patches/2018-04/msg01058.html - PR85572 implement absv2di2 and absv4di2 expanders for pre-avx512vl http://gcc.gnu.org/ml/gcc-patches/2018-04/msg01341.html Th

[PATCH] Add constant folding for _mm*movemask* intrinsics (PR target/85317)

2018-05-07 Thread Jakub Jelinek
Hi! The following patch handles constant folding of the builtins used in *movemask* intrinsics - they have single operand and the only useful folding seems to be if the argument is VECTOR_CST, we can do what the instruction would do on that input and return the resulting INTEGER_CST. Bootstrapped

Re: [PATCH] Add constant folding support for next{after,toward}{,f,l} (PR libstdc++/85466)

2018-05-07 Thread Tom de Vries
On 04/21/2018 07:36 PM, Jakub Jelinek wrote: * gcc.dg/nextafter-2.c: New test. Hi, FTR, I ran into a link error "unresolved symbol nexttowardf" using the standalone nvptx toolchain: ... PASS: gcc.dg/nextafter-1.c (test for excess errors) PASS: gcc.dg/nextafter-1.c execution test PASS

Re: [Aarch64] PR target/83009: Relax strict address checking for store pair lanes

2018-05-07 Thread Richard Sandiford
"Andre Vieira (lists)" writes: > Hi, > > See below a patch to address PR 83009. > > Tested with aarch64-linux-gnu bootstrap and regtests for c, c++ and fortran. > Ran the adjusted testcase for -mabi=ilp32. > > Is this OK for gcc-9? > > Cheers, > Andre > > PR target/83009: Relax strict address chec

[patch] Fix PR rtl-optimization/85638

2018-05-07 Thread Eric Botcazou
Hi, this is the build failure of the Ada runtime on platforms with SJLJ exceptions like 32-bit x86/Windows, a regression present on the mainline and 8 branch and caused by enabling -freorder-blocks-and-partition by default for x86. The CFG is somewhat different for EH regions in SJLJ mode becau

[openacc, testsuite] Allow installed testing of libgomp to find gomp-constants.h

2018-05-07 Thread Tom de Vries
[ was: Re: [PATCH, PR82428] Add __builtin_goacc_{gang,worker,vector}_{id,size} ] On 05/03/2018 12:36 PM, Tom de Vries wrote: On 01/18/2018 09:55 AM, Tom de Vries wrote: diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-static-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/gang-

Re: [PATCH] PR libstdc++/80506 fix constant used in condition

2018-05-07 Thread Jonathan Wakely
On 05/05/18 21:19 -0400, Ed Smith-Rowland wrote: On 04/26/2017 05:16 AM, Jonathan Wakely wrote: On 26/04/17 11:14 +0200, Paolo Carlini wrote: .. or maybe using the wrong constant only impacts the performance?!? Yes, I think so. I did some very simple sanity tests and the numbers were identica

[RFC] Configure and testsuite updates for ARM FDPIC target

2018-05-07 Thread Christophe Lyon
Hello, I am preparing the submission of a patch series to support the FDPIC ABI for Linux on ARM. During development, we internally used arm-linux-uclibceabi as target name, but I had to change it to handle feedback when I submitted the binutils patches. These have been merged to binutils ma

Re: [PATCH] Add constant folding support for next{after,toward}{,f,l} (PR libstdc++/85466)

2018-05-07 Thread Christophe Lyon
On 7 May 2018 at 12:04, Tom de Vries wrote: > On 04/21/2018 07:36 PM, Jakub Jelinek wrote: >> >> * gcc.dg/nextafter-2.c: New test. > > > Hi, > > FTR, I ran into a link error "unresolved symbol nexttowardf" using the > standalone nvptx toolchain: > ... > PASS: gcc.dg/nextafter-1.c (test for

Re: [PATCH] Add constant folding support for next{after,toward}{,f,l} (PR libstdc++/85466)

2018-05-07 Thread Jakub Jelinek
On Mon, May 07, 2018 at 03:41:58PM +0200, Christophe Lyon wrote: > I noticed the same problem on arm and aarch64 bare-metal targets using newlib, > and I thought it was a matter of adding the c99_runtime effective target, > as done in the attached patch. > > Even if newlib gets a fix for this, the

Re: [PATCH 0/2] Require that constraints are used to reference global regs

2018-05-07 Thread Alexander Monakov
On Tue, 1 May 2018, Jeff Law wrote: > The very nature of a traditional asm implies that it can read or write > anything visible to compiler. No? Basic asms are not allowed to read/write general purpose registers, the stack pointer, the instruction pointer. I think they are considered to be wild me

Re: [PATCH 1/2] Introduce prefetch-minimum stride option

2018-05-07 Thread Luis Machado
On 05/01/2018 03:30 PM, Jeff Law wrote: On 01/22/2018 06:46 AM, Luis Machado wrote: This patch adds a new option to control the minimum stride, for a memory reference, after which the loop prefetch pass may issue software prefetch hints for. There are two motivations: * Make the pass less agg

New Swedish PO file for 'gcc' (version 8.1.0)

2018-05-07 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 Swedish team of translators. The file is available at: http://translationproject.org/latest/gcc/sv.po (This file, 'gcc-8.1.0.sv.po', has just

Re: [PATCH 2/2] Introduce prefetch-dynamic-strides option.

2018-05-07 Thread Luis Machado
On 05/01/2018 03:30 PM, Jeff Law wrote: On 01/22/2018 06:46 AM, Luis Machado wrote: The following patch adds an option to control software prefetching of memory references with non-constant/unknown strides. Currently we prefetch these references if the pass thinks there is benefit to doing so

Re: [PATCH, v2] Recognize a missed usage of a sbfiz instruction

2018-05-07 Thread Luis Machado
Hi, On 02/08/2018 10:45 AM, Luis Machado wrote: Hi Kyrill, On 02/08/2018 09:48 AM, Kyrill Tkachov wrote: Hi Luis, On 06/02/18 15:04, Luis Machado wrote: Thanks for the feedback Kyrill. I've adjusted the v2 patch based on your suggestions and re-tested the changes. Everything is still sane.

[gomp5] Parsing of depend(mutexinoutset:)

2018-05-07 Thread Jakub Jelinek
Hi! This patch adds parsing of mutexinoutset depend kind, which is similar to out/inout, except that there is no ordering between the tasks with mutexinoutset dependencies, just requirement of mutual exclusivity. For now the patch implements it like out/inout, which is valid (because mutexinoutset

Re: [PATCH 1/2] Introduce prefetch-minimum stride option

2018-05-07 Thread H.J. Lu
On Mon, May 7, 2018 at 7:09 AM, Luis Machado wrote: > > > On 05/01/2018 03:30 PM, Jeff Law wrote: >> >> On 01/22/2018 06:46 AM, Luis Machado wrote: >>> >>> This patch adds a new option to control the minimum stride, for a memory >>> reference, after which the loop prefetch pass may issue software

[og7] Update deviceptr handling in Fortran

2018-05-07 Thread Cesar Philippidis
This patch teaches both the Fortran FE and the gimplifier how to only utilize one data mapping for OpenACC deviceptr clauses. Before, the Fortran FE would create three (one for the dereferenced pointer data, one for the array descriptor, and another for a firstprivate pointer) and gimplifier would

Re: [PATCH 1/2] Introduce prefetch-minimum stride option

2018-05-07 Thread Luis Machado
On 05/07/2018 12:15 PM, H.J. Lu wrote: On Mon, May 7, 2018 at 7:09 AM, Luis Machado wrote: On 05/01/2018 03:30 PM, Jeff Law wrote: On 01/22/2018 06:46 AM, Luis Machado wrote: This patch adds a new option to control the minimum stride, for a memory reference, after which the loop prefetc

[og7] Backport libgomp gomp_copy_host2dev coalesce optimization from trunk

2018-05-07 Thread Cesar Philippidis
This patch backports Jakub's gomp_copy_host2dev optimization from . There were a couple of changes required due to the new async infrastructure in og7. I've applied this patch to og7. Cesar 2018-05-07 Thomas Schwinge Cesar Philippid

[libstdc++, PATCH] PR libstdc++/83140 - assoc_legendre returns negated value when m is odd.

2018-05-07 Thread Ed Smith-Rowland
All, We were using a different convention for P_l^m assoc_legendre(int l, int m, FloatTp x)  - the so-called Condon-Shortley convention which includes (-1)^m.  This unfortunately is common. This factor is taken out to match the standard.  The underlying __detail code has an arg that allows

[PATCH] PR libstdc++/85671 allow copy elision in path concatenation

2018-05-07 Thread Jonathan Wakely
By performing the /= operation on a named local variable instead of a temporary the copy made for the return value can be elided. PR libstdc++/85671 * include/bits/fs_path.h (operator/): Permit copy elision. * include/experimental/bits/fs_path.h (operator/): Likewise. Tes

[PATCH] Document -lstdc++fs requirement for std::filesystem

2018-05-07 Thread Jonathan Wakely
* doc/xml/manual/using.xml (table.cmd_options): Document that the C++17 Filesystem implementation also needs -lstdc++fs. Committed to trunk. commit c12f73eb5111b4a1f4c8cc19e3875bd2e20390d4 Author: Jonathan Wakely Date: Mon May 7 20:13:17 2018 +0100 Document -lstdc++fs re

C++ PATCH for c++/85618, ICE with initialized VLA

2018-05-07 Thread Jason Merrill
The fix for 84560 clarified that an array with multiple non-constant bounds is not an N3639 array of runtime bound, because that proposal only allowed a single variable bound. But store_init_value was using array_of_runtime_bound_p to decide whether we need to use build_vec_init for initialization

Re: [PATCHv2] PR libstdc++/84654 Do not use __float128 if it is disabled by the compiler

2018-05-07 Thread Jonathan Wakely
On 01/05/18 15:34 +0100, Jonathan Wakely wrote: On 12/03/18 16:02 -0300, Tulio Magno Quites Machado Filho wrote: Changes since v1: - Completely rewrite of the patch to set ENABLE_FLOAT128 at libstdc++ build time and undef _GLIBCXX_USE_FLOAT128 when building user code. --- 8< --- In order to u

Debug Mode ENH 1/4: Add pretty function

2018-05-07 Thread François Dumont
Hi     Here is the 1st patch of a series to improve Debug Mode feedback.     This patch add the content of __PRETTY_FUNCTION__ in the debug assertion output.     Tested under Linux x86_64.     I'll commit tomorrow if not told otherwise.     * include/debug/formatter.h (_Error_formatter::_M_

Debug Mode ENH 2/4: Range constructor check

2018-05-07 Thread François Dumont
Hi     This is to fix what is reported as the pretty function in case of debug assertion failure in the range constructor. Result looks like this: /home/fdt/dev/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/vector:188: In function:     std::__debug::vector<_Tp, _Allocator>::vector(

Debug Mode ENH 3/4: Add backtrace

2018-05-07 Thread François Dumont
Hi     Here is the patch to add backtrace info to debug assertion failure output. Example: /home/fdt/dev/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/vector:188: In function:     std::__debug::vector<_Tp, _Allocator>::vector(_InputIterator,     _InputIterator, const _Allocator&) [

[PATCH, rs6000] Map dcbtst, dcbtt to n2=0 for __builtin_prefetch builtin.

2018-05-07 Thread Carl Love
GCC maintainers: The architecture independent builtin __builtin_prefetch() is defined as: void __builtin_prefetch (const void *addr, int n1, int n2) n1 - prefetch read = 0, prefetch write = 1 n2 - temporal locality 0 to 3. No temporal locality = 0, high temporal locality = 3. The impleme

Re: [patch, fortran] Implement BACK for minloc and maxloc

2018-05-07 Thread Steve Kargl
On Tue, May 01, 2018 at 10:07:05PM +0200, Thomas Koenig wrote: > > Index: gcc/fortran/simplify.c > === > --- gcc/fortran/simplify.c(Revision 259683) > +++ gcc/fortran/simplify.c(Arbeitskopie) > @@ -32,7 +32,7 @@ along with GC

[C++ PATCH] Kill -fno-for-scope

2018-05-07 Thread Nathan Sidwell
As prophesied by gcc 8.1, I have nuked the ARM-era for-scope compatibilty of -fno-for-scope. It has been a c++98-only feature, and that's not the default anymore. Time for this to go. nathan -- Nathan Sidwell 2018-05-07 Nathan Sidwell gcc/cp/ Remove fno-for-scope * cp-tree.h (DECL_ERRO

C++ PATCH for c++/85646, lambda visibility

2018-05-07 Thread Jason Merrill
I spent a while tweaking the visibility code while I was working on the lambdas in templates overhaul, but ended up putting that aside. This PR led me to pull that out again, but I hadn't realized that some of the code I was messing with was only a year old, from Nathan's fix for c++/79296. Specif