[PR71252][PR71269] Fix trunk errors due to stmt_to_insert

2016-05-25 Thread Kugan Vivekanandarajah
Hi, Sorry for the breakage due to the changes to tree-reassoc. Attached patch fixes this. I have tested the patch with spec2006 and cp2k_single_file.f90 from PR71252 in a x86-640linux-gnu. ./build/gcc/f951 cp2k_single_file.f90 -O3 -ffast-math -march=westmere works fine. Tested testcase from PR

Add option for whether ceil etc. can raise "inexact", adjust x86 conditions

2016-05-25 Thread Joseph Myers
In ISO C99/C11, the ceil, floor, round and trunc functions may or may not raise the "inexact" exception for noninteger arguments. Under TS 18661-1:2014, the C bindings for IEEE 754-2008, these functions are prohibited from raising "inexact", in line with the general rule that "inexact" is only whe

[PR tree-optimization/71272] Don't crash on zero length jump thread path

2016-05-25 Thread Jeff Law
I'm expecting to revamp a bit of this code shortly in a way that will eliminate the undesirable path stack manipulations. In the mean time, this fixes the regression on the trunk. Essentially we create a path that looks like BB X BB X in the vector representation. Which turns into an emp

Re: [v3 PATCH] PR libstdc++/66338

2016-05-25 Thread Ville Voutilainen
On 25 May 2016 at 16:55, Jonathan Wakely wrote: > On 24/05/16 19:49 +0300, Ville Voutilainen wrote: >> >> On 24 May 2016 at 19:35, Ville Voutilainen >> wrote: >>> >>> Slight tweak. The avoidance of _NotSameTuple wasn't quite correct for >>> the templates that >>> take const tuple<_UElements...>&

Re: [PATCH, RS6000] Add support for the vec_cmpne altivec builtins

2016-05-25 Thread Bill Seurer
On 05/25/16 14:50, Segher Boessenkool wrote: On Wed, May 25, 2016 at 10:37:43AM -0500, Bill Seurer wrote: This patch adds support for the vec_cmpne altivec builtins from the Power Architecture 64-Bit ELF V2 ABI OpenPOWER ABI for Linux Supplement (16 July 2015 Version 1.1). There are many of the

Re: C PATCH to add -Wswitch-unreachable (PR c/49859)

2016-05-25 Thread Martin Sebor
Why exempt GIMPLE_TRY? It suppresses the warning in cases like: switch (i) { try { } catch (...) { } case 1: ; } (If excluding GIMPLE_TRY is unavoidable, it might be worthwhile to add a comment to the code, and perhaps also mention it in the documentation to preempt bug reports by n

Re: PR 71181 Avoid rehash after reserve

2016-05-25 Thread François Dumont
On 25/05/2016 16:01, Jonathan Wakely wrote: On 22/05/16 17:16 +0200, François Dumont wrote: Hi To fix 71181 problem I propose to change how we deal with reserve called with pivot values that is to say prime numbers. Now _M_next_bkt always return a value higher than the input value. This w

Fix ICE in factor_out_conditional_conversion

2016-05-25 Thread Eric Botcazou
This is a regression present on the mainline and 6 branch and introduced by the new factor_out_conditional_conversion function: eric@polaris:~/build/gcc/native> gcc/xgcc -Bgcc -S opt55.adb -O +===GNAT BUG DETECTED==+ | 7.0.0 20160523 (experimen

Re: [Patch, testsuite] Make some more tests xfail/pass/unsupported for avr

2016-05-25 Thread Mike Stump
On May 25, 2016, at 6:23 AM, Senthil Kumar Selvaraj wrote: > If ok, could someone commit please? Ok. Committed revision 236741. > 2016-05-25 Senthil Kumar Selvaraj > > * c-c++-common/Wduplicated-cond-1.c: Use smaller const literal. > * c-c++-common/pr60226.c: Require int32plus

Re: [PATCH, RS6000] Add support for the vec_cmpne altivec builtins

2016-05-25 Thread Segher Boessenkool
On Wed, May 25, 2016 at 10:37:43AM -0500, Bill Seurer wrote: > This patch adds support for the vec_cmpne altivec builtins from the Power > Architecture 64-Bit ELF V2 ABI OpenPOWER ABI for Linux Supplement (16 July > 2015 Version 1.1). There are many of the builtins that are missing and this > is pa

Re: [Patch] Implement is_[nothrow_]swappable (p0185r1)

2016-05-25 Thread Mike Stump
On May 24, 2016, at 9:50 PM, Daniel Krügler wrote: > > 2016-05-23 13:50 GMT+02:00 Jonathan Wakely : >> On 17/05/16 20:39 +0200, Daniel Krügler wrote: >>> >>> This is an implementation of the Standard is_swappable traits according to >>> >>> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/201

Re: [PATCH] Use flag_general_regs_only with -mgeneral-regs-only

2016-05-25 Thread Uros Bizjak
Hello! I have committed following patch that also implements ix86_target_string handling of the new option. 2016-05-25 Uros Bizjak H.J. Lu PR target/70738 * common/config/i386/i386-common.c (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New. (ix86_handle_option) : Disabl

Re: [PATCH] Clean up tests where a later dg-do completely overrides another.

2016-05-25 Thread Mike Stump
On May 18, 2016, at 2:59 PM, Jeff Law wrote: > > On 05/02/2016 10:24 AM, Dominik Vogt wrote: >> On Mon, May 02, 2016 at 09:29:50AM -0600, Jeff Law wrote: >>> On 04/29/2016 05:56 PM, Dominik Vogt wrote: ... Maybe a comment should be added to the test case /* If this test is *r

Re: [PATCH, testsuite] Skip tail call tests on Thumb-1 targets

2016-05-25 Thread Mike Stump
On May 25, 2016, at 10:20 AM, Thomas Preudhomme wrote: > > 2016-05-24 Thomas Preud'homme > >* gcc.dg/plugin/plugin.exp: skip tail call tests for Thumb-1. > Is this ok for trunk? Ok. Normally I'd just punt to the arm folks. Better to Cc them on the patch. I watch all the changes

Re: [SPARC] Support for --with-{cpu,tune}-{32,64} in sparc*-* targets

2016-05-25 Thread Jose E. Marchesi
> This patch adds support for the --with-{cpu,tune}-{32,64} configure > options to sparc*-* targets. This allows to separately select cpus and > tune options for -m32 and -m64 modes in multilib compilers. SPARC/Linux is not the only SPARC target though. :-) Nope :)

Re: C++ PATCH for c++/70735 (static locals and generic lambdas)

2016-05-25 Thread Mike Stump
On May 25, 2016, at 3:40 AM, Marek Polacek wrote: > On Tue, May 24, 2016 at 04:28:51PM -0700, Mike Stump wrote: >> I think: >> >> g++.dg/pr65295.C >> >> can be updated to use c++14 as well. It is the last one that needs updating. > > Thus the following. (It'd be wrong to change cplusplus_1y.

Re: C++ PATCH for c++/70522 (friend hides name in unnamed namespace)

2016-05-25 Thread Jason Merrill
On 04/19/2016 09:39 AM, Jason Merrill wrote: cp_binding_level_find_binding_for_name can find a binding for a hidden friend declaration, in which case we shouldn't stop looking into anonymous namespaces. This bug blocked the use of N4381 customization points. This caused 71173: when looking up

[PATCH, testsuite] Skip tail call tests on Thumb-1 targets

2016-05-25 Thread Thomas Preudhomme
Hi, The sibcall_epilogue expand in arm.md is only defined for TARGET_32BIT targets and thus is not defined for TARGET_THUMB1 targets. As a result, tail call plugin tests fail with "cannot tail-call: machine description does not have a sibcall_epilogue instruction pattern". This patch skip these

[PATCH, arm-embedded] Map armv8-m.main+dsp multilib to armv8-m.main one

2016-05-25 Thread Thomas Preudhomme
Hi, ARMv8-M Mainline with DSP extension currently uses ARMv4T multilib because no multilib is built for it and there is no directive telling GCC how to map it to the right multilib. Therefore, we have applied the below patch ARM/embedded-5-branch to add a directive to map it to ARMv8-M Mainline

Re: [patch, libstdc++] std::shuffle: Generate two swap positions at a time if possible

2016-05-25 Thread Eelis
On 2016-05-01 16:18, Eelis wrote: The attached patch optimizes std::shuffle for the very common case where the generator range is large enough that a single invocation can produce two swap positions. This reduces the runtime of the following testcase by 37% on my machine: Gentle ping. :) Did

Re: [PATCH] Use flag_general_regs_only with -mgeneral-regs-only

2016-05-25 Thread H.J. Lu
On Wed, May 25, 2016 at 4:38 AM, Uros Bizjak wrote: > On Tue, May 24, 2016 at 11:47 PM, Joseph Myers > wrote: >> On Tue, 24 May 2016, Uros Bizjak wrote: >> >>> > I have thrown together a quick patch that defines target_flags as >>> > HOST_WIDE_INT. >>> > >>> > (Patch still needs a small correct

Re: [RFA 1/2]: Don't ignore target_header_dir when deciding inhibit_libc

2016-05-25 Thread Andre Vieira (lists)
On 07/04/16 10:30, Andre Vieira (lists) wrote: > On 17/03/16 16:33, Andre Vieira (lists) wrote: >> On 23/10/15 12:31, Bernd Schmidt wrote: >>> On 10/12/2015 11:58 AM, Ulrich Weigand wrote: Index: gcc/configure.ac === >

Re: [patch,openacc] use firstprivate pointers for subarrays in c and c++

2016-05-25 Thread Thomas Schwinge
Hi! A few more comments on the patch, as committed in r236678, also for Chung-Lin and Tom. The ChangeLos are missing references to GCC PRs, so these now should be updated manually. For example, your changes relate to PR70688 "bogus OpenACC data clause errors involving reductions", and some of th

Re: [PATCH 3/3][AArch64] Emit division using the Newton series

2016-05-25 Thread James Greenhalgh
On Wed, Apr 27, 2016 at 04:15:53PM -0500, Evandro Menezes wrote: >gcc/ > * config/aarch64/aarch64-protos.h > (tune_params): Add new member "approx_div_modes". > (aarch64_emit_approx_div): Declare new function. > * config/aarch64/aarch64.c > (generic_tunin

Re: [patch] Fix configure test for sendfile()

2016-05-25 Thread Jonathan Wakely
On 19/04/16 19:30 +0100, Jonathan Wakely wrote: One more fix for the Filesystem library: my configure test for the GNU and Solaris version of sendfile was failing because it used NULL without stddef.h, so we never used sendfile. That was useful, because it meant someone found and reported a bug i

Re: [PATCH 2/3][AArch64] Emit square root using the Newton series

2016-05-25 Thread James Greenhalgh
On Wed, Apr 27, 2016 at 04:15:45PM -0500, Evandro Menezes wrote: >gcc/ > * config/aarch64/aarch64-protos.h > (aarch64_emit_approx_rsqrt): Replace with new function > "aarch64_emit_approx_sqrt". > (tune_params): New member "approx_sqrt_modes". > * config/a

Re: [PTX] crt0

2016-05-25 Thread Alexander Monakov
On Wed, 25 May 2016, Nathan Sidwell wrote: > On 05/25/16 09:28, Alexander Monakov wrote: > > On Wed, 25 May 2016, Nathan Sidwell wrote: > > > > > This patch reimplements crt0 as C rather than assembly. That means > > > it;ll be > > > good with 32 bit addresses. I've also completely moved abort

Re: [PATCH][RTL ifcvt] PR rtl-optimization/66940: Avoid signed overflow in noce_get_alt_condition

2016-05-25 Thread Kyrill Tkachov
On 23/05/16 15:06, Richard Biener wrote: On Mon, May 23, 2016 at 3:19 PM, Kyrill Tkachov wrote: On 23/05/16 13:46, Richard Biener wrote: n Mon, May 23, 2016 at 2:28 PM, Kyrill Tkachov wrote: On 23/05/16 12:27, Richard Biener wrote: On Mon, May 23, 2016 at 1:17 PM, Kyrill Tkachov wrote: H

[PATCH, RS6000] Add support for the vec_cmpne altivec builtins

2016-05-25 Thread Bill Seurer
This patch adds support for the vec_cmpne altivec builtins from the Power Architecture 64-Bit ELF V2 ABI OpenPOWER ABI for Linux Supplement (16 July 2015 Version 1.1). There are many of the builtins that are missing and this is part of a series of patches to add them. There aren't instructions for

Re: C PATCH to add -Wswitch-unreachable (PR c/49859)

2016-05-25 Thread Marek Polacek
On Mon, May 23, 2016 at 05:53:38PM -0600, Martin Sebor wrote: > Sorry I'm a little late with my comments but I noticed one minor > problem (I raised bug 71249 for it since the patch has already > been checked in), and have a question about the hunk below: Firstly, thanks for looking into this. >

New Russian PO file for 'gcc' (version 6.1.0)

2016-05-25 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 Russian team of translators. The file is available at: http://translationproject.org/latest/gcc/ru.po (This file, 'gcc-6.1.0.ru.po', has just

Re: [C PATCH] Fix ICE-on-invalid with old-style-parameter-declaration and __func__ (PR c/71265)

2016-05-25 Thread Joseph Myers
On Wed, 25 May 2016, Marek Polacek wrote: > Another ICE on invalid with old-style-parameter-declaration, this time with > __func__. The problem is in c_make_fname_decl: > > if (current_function_decl > && (!seen_error () || current_function_scope)) > bind (..., current_function_scope, ...)

Re: [C PATCH] Fix ICE-on-invalid with old-style-parameter-declaration and enum (PR c/71266)

2016-05-25 Thread Joseph Myers
On Wed, 25 May 2016, Marek Polacek wrote: > ICE-on-invalid on old-style-parameter-declaration arising from adding a bogus > parameter to the vector of parameters (seen_args). Skipping such parameters > prevents the ICE later on. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? OK. --

Commit: MSP430: Three small fixes

2016-05-25 Thread Nick Clifton
Hi Guys, I am checking in the patch below to fix three small problems with the MSP430 backend: Firstly interrupt handlers for the MSP430 cannot be static. Static interrupt handlers can be optimized away since no control flow path can be found to use them. Secondly there no longer is

Re: [PTX] crt0

2016-05-25 Thread Nathan Sidwell
On 05/25/16 09:28, Alexander Monakov wrote: On Wed, 25 May 2016, Nathan Sidwell wrote: This patch reimplements crt0 as C rather than assembly. That means it;ll be good with 32 bit addresses. I've also completely moved abort and exit into newlib (a fork on github), which had it's own copies

Re: PR 71181 Avoid rehash after reserve

2016-05-25 Thread Jonathan Wakely
On 22/05/16 17:16 +0200, François Dumont wrote: Hi To fix 71181 problem I propose to change how we deal with reserve called with pivot values that is to say prime numbers. Now _M_next_bkt always return a value higher than the input value. This way when reverse(97) is called we end up with

[C PATCH] Fix ICE-on-invalid with old-style-parameter-declaration and __func__ (PR c/71265)

2016-05-25 Thread Marek Polacek
Another ICE on invalid with old-style-parameter-declaration, this time with __func__. The problem is in c_make_fname_decl: if (current_function_decl && (!seen_error () || current_function_scope)) bind (..., current_function_scope, ...) The condition is wrong; if current_function_scope is n

Re: tuple move constructor

2016-05-25 Thread Jonathan Wakely
On 23/05/16 20:39 +0200, Marc Glisse wrote: Ping (re-attaching, I just added a one-line comment before the tag class as asked by Ville) This is OK for trunk - thanks.

[C PATCH] Fix ICE-on-invalid with old-style-parameter-declaration and enum (PR c/71266)

2016-05-25 Thread Marek Polacek
ICE-on-invalid on old-style-parameter-declaration arising from adding a bogus parameter to the vector of parameters (seen_args). Skipping such parameters prevents the ICE later on. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2016-05-25 Marek Polacek PR c/71266 * c-

Re: [v3 PATCH] PR libstdc++/66338

2016-05-25 Thread Jonathan Wakely
On 24/05/16 19:49 +0300, Ville Voutilainen wrote: On 24 May 2016 at 19:35, Ville Voutilainen wrote: Slight tweak. The avoidance of _NotSameTuple wasn't quite correct for the templates that take const tuple<_UElements...>& or tuple<_UElements...>&& instead of const _UElements&... or _UElements&

Re: [PATCH, libgcc/ARM 1/6, ping1] Fix Thumb-1 only == ARMv6-M & Thumb-2 only == ARMv7-M assumptions

2016-05-25 Thread Kyrill Tkachov
Hi Thomas, On 25/05/16 14:22, Thomas Preudhomme wrote: Hi Kyrill, Please find an updated version below. Note that I also: * removed the change to bpabi-v6m.S because that actually accurately describe the implementation (using instructions from ARMv6-M) and does not suggest it is not compatible

[Patch, testsuite] Make some more tests xfail/pass/unsupported for avr

2016-05-25 Thread Senthil Kumar Selvaraj
Hi, This patch attempts to fix some bogus testsuite failures by either slightly modifying the test, adding xfail for int16 targets, or by using the appropriate dg-require-effective-target/dg-skip-if directive. The only tricky changes I see are * changing usage of unsigned long to __SIZE_TY

Re: [PATCH 2/2][v3] Drop excess size used for run time allocated stack variables.

2016-05-25 Thread Dominik Vogt
On Wed, May 25, 2016 at 02:32:41PM +0100, Dominik Vogt wrote: > On Wed, May 25, 2016 at 02:30:54PM +0100, Dominik Vogt wrote: > > On Tue, May 03, 2016 at 03:17:53PM +0100, Dominik Vogt wrote: > > > Version two of the patch including a test case. > > > > > > On Mon, May 02, 2016 at 09:10:25AM -0600

Re: [PATCH, ARM 2/7, ping1] Add support for ARMv8-M

2016-05-25 Thread Kyrill Tkachov
Hi Thomas, On 25/05/16 14:26, Thomas Preudhomme wrote: On Thursday 19 May 2016 17:59:26 Kyrill Tkachov wrote: Hi Thomas, Hi Kyrill, Please find an updated patch in attachment. ChangeLog entries are now as follow: *** gcc/ChangeLog *** 2016-05-23 Thomas Preud'homme * config/arm/

Re: [PATCH 2/2][v3] Drop excess size used for run time allocated stack variables.

2016-05-25 Thread Dominik Vogt
On Wed, May 25, 2016 at 02:30:54PM +0100, Dominik Vogt wrote: > On Tue, May 03, 2016 at 03:17:53PM +0100, Dominik Vogt wrote: > > Version two of the patch including a test case. > > > > On Mon, May 02, 2016 at 09:10:25AM -0600, Jeff Law wrote: > > > On 04/29/2016 04:12 PM, Dominik Vogt wrote: > >

Re: [PATCH 1/2][v3] Drop excess size used for run time allocated stack variables.

2016-05-25 Thread Dominik Vogt
On Tue, May 03, 2016 at 03:17:53PM +0100, Dominik Vogt wrote: > Version two of the patch including a test case. > > On Mon, May 02, 2016 at 09:10:25AM -0600, Jeff Law wrote: > > On 04/29/2016 04:12 PM, Dominik Vogt wrote: > > >The attached patch removes excess stack space allocation with > > >allo

Re: [PTX] crt0

2016-05-25 Thread Alexander Monakov
On Wed, 25 May 2016, Nathan Sidwell wrote: > This patch reimplements crt0 as C rather than assembly. That means it;ll be > good with 32 bit addresses. I've also completely moved abort and exit into > newlib (a fork on github), which had it's own copies that failed to set the > exit code. Thin

Re: [PATCH, ARM 2/7, ping1] Add support for ARMv8-M

2016-05-25 Thread Thomas Preudhomme
On Thursday 19 May 2016 17:59:26 Kyrill Tkachov wrote: > Hi Thomas, Hi Kyrill, Please find an updated patch in attachment. ChangeLog entries are now as follow: *** gcc/ChangeLog *** 2016-05-23 Thomas Preud'homme * config/arm/arm-arches.def (armv8-m.base): Define new architecture.

Re: [PATCH, libgcc/ARM 1/6, ping1] Fix Thumb-1 only == ARMv6-M & Thumb-2 only == ARMv7-M assumptions

2016-05-25 Thread Thomas Preudhomme
Hi Kyrill, Please find an updated version below. Note that I also: * removed the change to bpabi-v6m.S because that actually accurately describe the implementation (using instructions from ARMv6-M) and does not suggest it is not compatible with other architecture (it does not say ARMv6-M only)

Re: [PATCH, ARM] Do not set ARM_ARCH_ISA_THUMB for armv5

2016-05-25 Thread Thomas Preudhomme
On Tuesday 24 May 2016 18:00:27 Kyrill Tkachov wrote: > Hi Thomas, > > On 10/05/16 14:26, Thomas Preudhomme wrote: > > Hi, > > > > ARM_ARCH_ISA_THUMB is currently set to 1 when compiling for armv5 despite > > armv5 not supporting Thumb instructions (armv5t does): > > > > arm-none-eabi-gcc -dM -m

New Russian PO file for 'gcc' (version 6.1.0)

2016-05-25 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 Russian team of translators. The file is available at: http://translationproject.org/latest/gcc/ru.po (This file, 'gcc-6.1.0.ru.po', has just

[PATCH] Fix asm X constraint (PR inline-asm/59155)

2016-05-25 Thread Bernd Edlinger
Hi! This restricts the X constraint in asm statements, which can be easily folded by combine in something completely invalid. It is necessary to allow scratch here, because on i386 the md_asm_adjust hook inserts them. The second test case fails because lra does not allow all register for anythin

New Russian PO file for 'gcc' (version 6.1.0)

2016-05-25 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 Russian team of translators. The file is available at: http://translationproject.org/latest/gcc/ru.po (This file, 'gcc-6.1.0.ru.po', has just

Re: [RFC] [2/2] divmod transform: override expand_divmod_libfunc for ARM and add test-cases

2016-05-25 Thread Prathamesh Kulkarni
On 23 May 2016 at 14:28, Prathamesh Kulkarni wrote: > Hi, > This patch overrides expand_divmod_libfunc for ARM port and adds test-cases. > I separated the SImode tests into separate file from DImode tests > because certain arm configs (cortex-15) have hardware div insn for > SImode but not for DIm

Re: [PATCH] nvptx per-warp compiler-defined stacks (-msoft-stack)

2016-05-25 Thread Nathan Sidwell
On 05/24/16 17:29, Alexander Monakov wrote: On Fri, 20 May 2016, Nathan Sidwell wrote: ah, that's much more understandable, thanks. Presumably this doesn't support worker-single mode (in OpenACC parlance, I don't know what the OpenMP version of that is?) I don't see why you have concerns.

Re: RFC [1/2] divmod transform

2016-05-25 Thread Prathamesh Kulkarni
On 25 May 2016 at 12:52, Richard Biener wrote: > On Tue, 24 May 2016, Prathamesh Kulkarni wrote: > >> On 24 May 2016 at 19:39, Richard Biener wrote: >> > On Tue, 24 May 2016, Prathamesh Kulkarni wrote: >> > >> >> On 24 May 2016 at 17:42, Richard Biener wrote: >> >> > On Tue, 24 May 2016, Pratham

[PTX] crt0

2016-05-25 Thread Nathan Sidwell
This patch reimplements crt0 as C rather than assembly. That means it;ll be good with 32 bit addresses. I've also completely moved abort and exit into newlib (a fork on github), which had it's own copies that failed to set the exit code. Things happened to work because they were never found

Re: [PATCH, i386, AVX-512] Add vectorizer support builtins

2016-05-25 Thread Kirill Yukhin
Hello Ilya. On 23 May 19:11, Ilya Verbin wrote: > Hi! > > This patch adds missed 512-bit rounding builtins for vectorization. > Regtested on x86_64-linux and i686-linux. OK for trunk? Patch is OK. -- Thanks, K

Re: [vec-cmp, patch 5/6] Disable bool patterns when possible

2016-05-25 Thread Ilya Enkovich
2016-05-25 14:37 GMT+03:00 Richard Biener : > On Thu, Oct 22, 2015 at 6:04 PM, Ilya Enkovich wrote: >> On 21 Oct 11:45, Jeff Law wrote: >>> On 10/08/2015 09:15 AM, Ilya Enkovich wrote: >>> >Hi, >>> > >>> >This patch disables transformation of boolean computations into integer >>> >ones in case ta

Re: [PATCH] Use flag_general_regs_only with -mgeneral-regs-only

2016-05-25 Thread Uros Bizjak
On Tue, May 24, 2016 at 11:47 PM, Joseph Myers wrote: > On Tue, 24 May 2016, Uros Bizjak wrote: > >> > I have thrown together a quick patch that defines target_flags as >> > HOST_WIDE_INT. >> > >> > (Patch still needs a small correction, so opth-gen.awk will emit >> > HOST_WIDE_INT_1 for MASK_* d

Re: [vec-cmp, patch 5/6] Disable bool patterns when possible

2016-05-25 Thread Richard Biener
On Thu, Oct 22, 2015 at 6:04 PM, Ilya Enkovich wrote: > On 21 Oct 11:45, Jeff Law wrote: >> On 10/08/2015 09:15 AM, Ilya Enkovich wrote: >> >Hi, >> > >> >This patch disables transformation of boolean computations into integer >> >ones in case target supports vector comparison. Pattern still appl

[PATCH PR68030/PR69710][RFC]Introduce a simple local CSE interface and use it in vectorizer

2016-05-25 Thread Bin Cheng
Hi, As analyzed in PR68303 and PR69710, vectorizer generates duplicated computations in loop's pre-header basic block when creating base address for vector reference to the same memory object. Because the duplicated code is out of loop, IVOPT fails to track base object for these vector referenc

[COMMITTED] Fix dump output typo

2016-05-25 Thread Martin Liška
Hi. This is simple correction of a dump printf in ipa-inline.c. Installed as obvious. Martin >From 1a8bff73f48641df20dddf8cbcee52f8541b2910 Mon Sep 17 00:00:00 2001 From: marxin Date: Wed, 25 May 2016 13:13:42 +0200 Subject: [PATCH] Fix dump output typo gcc/ChangeLog: 2016-05-25 Martin Liska

Re: Splitting up gcc/omp-low.c?

2016-05-25 Thread Martin Jambor
Hi, On Wed, May 25, 2016 at 08:03:41AM +0200, Thomas Schwinge wrote: > Hi! > > Ping. > > Given that we conceptually agreed about this task, but apparently nobody > is now interested in reviewing my proposed changes (and tells me how > they'd like me to submit the patch for review), should I mayb

[PATCH] Fix PR71264

2016-05-25 Thread Richard Biener
Bootstrapped and tested on x86_64-unknmown-linux-gnu, applied. Richard. 2016-05-25 Richard Biener PR tree-optimization/71264 * tree-vect-stmts.c (vect_init_vector): Properly deal with vector type val. * gcc.dg/vect/pr71264.c: New testcase. Index: gcc/tree-ve

Re: C++ PATCH for c++/70735 (static locals and generic lambdas)

2016-05-25 Thread Marek Polacek
On Tue, May 24, 2016 at 04:28:51PM -0700, Mike Stump wrote: > On May 24, 2016, at 3:35 PM, Paolo Carlini wrote: > > On 23/05/2016 21:01, Jason Merrill wrote: > >> +// PR c++/70735 > >> +// { dg-do run { target c++1y } } > >> + > > [...] > >> @@ -0,0 +1,19 @@ > >> +// PR c++/70735 > >> +// { dg-do

Re: [RFA] Minor cleanup to allocate_dynamic_stack_space

2016-05-25 Thread Dominik Vogt
On Fri, May 20, 2016 at 03:23:49PM -0600, Jeff Law wrote: > On 05/19/2016 05:11 PM, Jeff Law wrote: > [ ... ] > >This is a bit of a mess and I think the code > >needs some TLC before we start hacking it up further. > > > >Let's start with clean up of dead code: > > > > /* We will need to ensure tha

Re: [PATCH 1/3][AArch64] Add more choices for the reciprocal square root approximation

2016-05-25 Thread James Greenhalgh
On Wed, Apr 27, 2016 at 04:13:33PM -0500, Evandro Menezes wrote: >gcc/ > * config/aarch64/aarch64-protos.h > (AARCH64_APPROX_MODE): New macro. > (AARCH64_APPROX_{NONE,SP,DP,DFORM,QFORM,SCALAR,VECTOR,ALL}): >Likewise. > (tune_params): New member "approx_rsqrt_

Re: [PATCH] Fixes to must-tail-call tests

2016-05-25 Thread Rainer Orth
David Malcolm writes: > The following fixes the known failures of the must-tail-call tests. > > Tested with --target= > * aarch64-unknown-linux-gnu > * ia64-unknown-linux-gnu > * m68k-unknown-linux-gnu > * x86_64-pc-linux-gnu Even with this patch, there are still failures on sparc-sun-solaris2.1

[PATCH] Fix (partly) PR71261 compile-time hog

2016-05-25 Thread Richard Biener
The testcase currently spends all of its time in tree if-conversion bool pattern repair and most of its time in walking immediate uses of 'var' to look for the use operand to replace in a specifc stmt. When there are a lot of immediate uses that's slow and it is faster to walk the uses on the spe

Re: New hashtable power 2 rehash policy

2016-05-25 Thread Jonathan Wakely
/local/gcc/gcc-20160525/Build/ia64-suse-linux/libstdc++-v3/include/ia64-suse-linux/bits/c++config.h:326:4: error: #error illegal use of multiple inlined namespaces Fixed with this patch (we don't need the new macro anyway, so it can be simply removed). The mutable specifi

Re: [PATCH] Fix PR tree-optimization/71239

2016-05-25 Thread Richard Biener
On Wed, May 25, 2016 at 10:32 AM, Martin Liška wrote: > Hi. > > Following patch checks that we do not call operand_equal_p with > the first argument equals to NULL. > > Patch survives regression tests and bootstraps on x86_64-linux-gnu. > > Ready for trunk? Ok. Richard. > Thanks, > Martin

Add timevar for tree if-conversion

2016-05-25 Thread Richard Biener
PR71261 shows it can take some 80% of the compile-time. Committed as obvious. Richard. 2016-05-25 Richard Biener * timevar.def (TV_TREE_LOOP_IFCVT): Add. * tree-if-conv.c (pass_data_if_conversion): Use it. Index: gcc/timevar.def =

[PATCH] Fix PR tree-optimization/71239

2016-05-25 Thread Martin Liška
Hi. Following patch checks that we do not call operand_equal_p with the first argument equals to NULL. Patch survives regression tests and bootstraps on x86_64-linux-gnu. Ready for trunk? Thanks, Martin >From 46c4b641778d42a5567f2e12cf987bb25f501ce7 Mon Sep 17 00:00:00 2001 From: marxin Date: M

[PATCH] Fix gcc.dg/vect/pr58135.c UNRESOLVED

2016-05-25 Thread Richard Biener
It needs to be called bb-slp-pr58135.c Committed. Richard. 2016-05-25 Richard Biener * gcc/testsuite/gcc.dg/vect/pr58135.c: Rename to ... * gcc/testsuite/gcc.dg/vect/bb-slp-pr58135.c: ... this.

Re: New hashtable power 2 rehash policy

2016-05-25 Thread Andreas Schwab
François Dumont writes: > * include/bits/c++config (_GLIBCXX14_USE_CONSTEXPR): New. FAIL: ext/profile/mutex_extensions_neg.cc (test for errors, line 324) FAIL: ext/profile/mutex_extensions_neg.cc (test for excess errors) Excess errors: /usr/local/gcc/gcc-20160525/Build/ia64-suse-li

Re: [Patch V2] Fix SLP PR58135.

2016-05-25 Thread Christophe Lyon
On 25 May 2016 at 05:29, Kumar, Venkataramanan wrote: > Hi Christophe, > >> -Original Message- >> From: Christophe Lyon [mailto:christophe.l...@linaro.org] >> Sent: Tuesday, May 24, 2016 8:45 PM >> To: Kumar, Venkataramanan >> Cc: Richard Biener ; gcc-patches@gcc.gnu.org >> Subject: Re: [

[COMMITTED] Fix a typo in a comment

2016-05-25 Thread Bernd Edlinger
Hi, this fixes a typo in comment at three places. Boot-strapped and regression-tested as usual. Committed as obvious. Bernd. Index: ChangeLog === --- ChangeLog (Revision 236689) +++ ChangeLog (Revision 236690) @@ -1,3 +1,9 @@ +2016

RE: [PATCH][MIPS] Add -minline-intermix to ignore compression flags when inlining

2016-05-25 Thread Robert Suchanek
Hi Sandra, > > diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi > > index 73f1cb6..2f6195e 100644 > > --- a/gcc/doc/invoke.texi > > +++ b/gcc/doc/invoke.texi > > @@ -837,6 +837,7 @@ Objective-C and Objective-C++ Dialects}. > > -mips16 -mno-mips16 -mflip-mips16 @gol > > -minterlink-comp

RE: [PATCH][MIPS] Add support for code_readable function attribute

2016-05-25 Thread Robert Suchanek
Hi Sandra, > > +@item code_readable > > +@cindex @code{code_readable} function attribute, MIPS > > +For MIPS targets that support PC-relative addressing modes, this attribute > > +can be used to control how an object is addressed. The attribute takes > > +a single optional argument: > > The prob

Re: RFC [1/2] divmod transform

2016-05-25 Thread Richard Biener
On Tue, 24 May 2016, Prathamesh Kulkarni wrote: > On 24 May 2016 at 19:39, Richard Biener wrote: > > On Tue, 24 May 2016, Prathamesh Kulkarni wrote: > > > >> On 24 May 2016 at 17:42, Richard Biener wrote: > >> > On Tue, 24 May 2016, Prathamesh Kulkarni wrote: > >> > > >> >> On 23 May 2016 at 17: