Re: [PATCH PR70729] The second part of patch.

2016-06-28 Thread Richard Biener
On Tue, Jun 28, 2016 at 5:50 PM, Yuri Rumyantsev wrote: > Hi All! > > Here is the second part of patch to improve loop invariant code motion > for loop marked with pragma omp simd. > > Bootstrapping and regression testing did not show any new failures. > Is it OK for trunk? Ok. Thanks, Richard.

[patch, fortran] Bug 71686 - ICE on broken character continuation

2016-06-28 Thread Jerry DeLisle
I plan to commit this patch as obvious and simple. Regression tested on x86-64. I will provide two test cases from the PR Regards, Jerry 2016-06-28 Jerry DeLisle PR fortran/71686 * scanner.c (gfc_next_char_literal): Only decrement nextc if it is not NULL. diff --g

[PATCH, rs6000] Enable some existing __float128 tests for powerpc64*

2016-06-28 Thread Bill Schmidt
Hi, As Uros pointed out, there are a number of existing tests for __float128 in gcc.dg and gcc.dg/torture. This patch enables an appropriate subset of those tests for 64-bit PowerPC, BE and LE. A few of the tests aren't appropriate for our architecture, as Joseph stated. Still, this gives us so

[committed] Remove unnecessary calls to pa_output_arg_descriptor in 64-bit patterns in pa.md

2016-06-28 Thread John David Anglin
The attached patch removes some unnecessary calls to pa_output_arg_descriptor. It just returns on TARGET_64BIT. Tested on hppa64-hp-hpux11.11. Committed to trunk. Dave -- John David Anglin dave.ang...@bell.net 2016-06-28 John David Anglin * config/pa/pa.md (call_symref_64bi

Re: [C PATCH] Fix ICE due to clearing of C_TYPE_INCOMPLETE_VARS (PR c/71685)

2016-06-28 Thread Joseph Myers
On Tue, 28 Jun 2016, Jakub Jelinek wrote: > Hi! > > The following testcase ICEs because C_TYPE_INCOMPLETE_VARS is cleared even > on the main type, while it should be cleared only on the variant types. > > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for > trunk/6.2? O

Re: [PATCH], Pr 71667, Fix PowerPC ISA 3.0 DImode Altivec load/store

2016-06-28 Thread Michael Meissner
As we discussed in the patch review, there were some issues with using %Y for the ISA 3.0 instructions LXSD and STXSD. I have rewritten the patch so that we have a new memory constraint (%wY) that explicitly targets those instructions. I went back to the mov{DF,DD} patterns and changed their use

[PATCH, rs6000] Use direct moves for __builtin_signbit for 128-bit floating-point

2016-06-28 Thread Bill Schmidt
Hi, Currently GCC generates a store followed by a load for __builtin_signbit for both IBM long double and IEEE-128 floating point. This patch, originating with Michael Meissner, adds logic to instead use direct move instructions. The original patch also added direct-move support for single- and

Re: [PATCH] Fix FFI return type for closures in the java interpreter

2016-06-28 Thread Tom Tromey
> "Matthew" == Matthew Fortune writes: Matthew> I'm not sure this will matter if the only arch is x86 as Matthew> ffi_arg will be 32-bit anyway there. Aha, right. Thanks for looking. Matthew> There would need to be a Matthew> 64bit arch using the raw api. I don't really understand what Mat

Re: [PATCH, rs6000] Clean up powerpc __float128 tests for older hardware

2016-06-28 Thread Segher Boessenkool
Hi Bill, On Tue, Jun 28, 2016 at 02:28:37PM -0500, Bill Schmidt wrote: > On POWER7 and earlier hardware, -mvsx is not on by default, causing the new > tests for __float128 builtins to fail. This patch makes the dependency on VSX > hardware explicit in the tests. > > Tested on powerpc64-unknown-l

Improve insert/emplace robustness to self insertion

2016-06-28 Thread François Dumont
Hi Following below discussion here is a patch to make sure we correctly deal with insertion of instances stored into the vector itself. When we don't need reallocation I have implemented the libc++ trick to avoid an intermediate copy. I did my best to detect when a value_type instanc

[PATCH, rs6000] Clean up powerpc __float128 tests for older hardware

2016-06-28 Thread Bill Schmidt
Hi, On POWER7 and earlier hardware, -mvsx is not on by default, causing the new tests for __float128 builtins to fail. This patch makes the dependency on VSX hardware explicit in the tests. Tested on powerpc64-unknown-linux-gnu on POWER7. Ok for trunk, and for later backport to 6.2? Thanks, Bi

Re: [PATCH,rs6000] Improve tests for Power9 vector shift variable instructions

2016-06-28 Thread Segher Boessenkool
On Tue, Jun 28, 2016 at 01:06:46PM -0600, Kelvin Nilsen wrote: > This patch improves upon a recently committed patch to change the > DejaGnu conditionals that control when the tests run. The patch > corrects failures that occur on aix platforms. > > This patch has bootstrapped on and regression t

[PATCH,rs6000] Improve tests for Power9 vector shift variable instructions

2016-06-28 Thread Kelvin Nilsen
This patch improves upon a recently committed patch to change the DejaGnu conditionals that control when the tests run. The patch corrects failures that occur on aix platforms. This patch has bootstrapped on and regression tested on powerpc64le- unknown-linux-gnu with no regressions. Is this ok

[C PATCH] Fix ICE due to clearing of C_TYPE_INCOMPLETE_VARS (PR c/71685)

2016-06-28 Thread Jakub Jelinek
Hi! The following testcase ICEs because C_TYPE_INCOMPLETE_VARS is cleared even on the main type, while it should be cleared only on the variant types. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/6.2? 2016-06-28 Jakub Jelinek PR c/71685 *

Re: [PATCH] PR target/71549: Convert V1TImode register to TImode in debug insn

2016-06-28 Thread Gary Funck
On 06/20/16 04:55:16, H.J. Lu wrote: > TImode register referenced in debug insn can be converted to V1TImode > by scalar to vector optimization. We need to convert a debug insn if > it has a variable in a TImode register. Hello, We have a situation on a few of the UPC tests, where they ICE on th

Re: [PATCH], Pr 71667, Fix PowerPC ISA 3.0 DImode Altivec load/store

2016-06-28 Thread Michael Meissner
On Tue, Jun 28, 2016 at 12:49:12PM -0500, Segher Boessenkool wrote: > On Tue, Jun 28, 2016 at 01:27:45PM -0400, Michael Meissner wrote: > > > > Thanks for the explanation. > > > I think the thing to do is create yet another memory constraint, that is > > just > > an offsetable address, with th

Re: [patch, avr,wwwdocs] PR 58655

2016-06-28 Thread Denis Chertykov
Committed. 2016-06-27 14:41 GMT+03:00 Pitchumani Sivanupandi : > Ping! > > > On Wednesday 22 June 2016 12:05 PM, Pitchumani Sivanupandi wrote: >> >> On Tuesday 21 June 2016 09:39 PM, Georg-Johann Lay wrote: >>> >>> Pitchumani Sivanupandi schrieb: Attached patches add documentation for -m

Re: [PATCH], Pr 71667, Fix PowerPC ISA 3.0 DImode Altivec load/store

2016-06-28 Thread Segher Boessenkool
On Tue, Jun 28, 2016 at 01:27:45PM -0400, Michael Meissner wrote: Thanks for the explanation. > I think the thing to do is create yet another memory constraint, that is just > an offsetable address, with the bottom 2 bits 0, and no PRE_MODIFY, etc. That sounds best yes. The current patch seem

Re: [PATCH], Pr 71667, Fix PowerPC ISA 3.0 DImode Altivec load/store

2016-06-28 Thread Michael Meissner
On Mon, Jun 27, 2016 at 09:37:16PM -0500, Segher Boessenkool wrote: > On Mon, Jun 27, 2016 at 08:08:20PM -0400, Michael Meissner wrote: > > This patch fixes PR 71667 that I discovered when trying to build the Spec > > 2006 > > xalancbmk benchmark for the Power9. The Altivec indexed memory load/st

Re: RFC: pass to warn on questionable uses of alloca().

2016-06-28 Thread Szabolcs Nagy
On 21/06/16 17:52, Martin Sebor wrote: > On 06/21/2016 10:00 AM, Jakub Jelinek wrote: >> On Tue, Jun 21, 2016 at 09:57:59AM -0600, Jeff Law wrote: Would a new attribute to annotate async-signal safe functions help? I envision that the attribute on a function definition would turn of

[PATCH, committed] TILEPro/TILE-Gx: remove linux header dependencies

2016-06-28 Thread Walter Lee
This patch removes the build dependencies on linux headers, by defining a few definitions that we need from those headers. libgcc/ChangeLog: 2016-06-28 Walter Lee * config/tilepro/atomic.h: Do not include arch/spr_def.h and asm/unistd.h. (SPR_CMPEXCH_VALUE): Define for tilegx.

Re: RFC: pass to warn on questionable uses of alloca().

2016-06-28 Thread Martin Sebor
On 06/28/2016 08:40 AM, Aldy Hernandez wrote: Hi. In addressing the issues that were brought up I ran into bounded allocas that are bounded by an unknown size. Should we warn on these?: if (n < SOME_GLOBAL) alloca(n) In my WIP I am warning with: x.c:6:5: warning: alloca

Re: [PATCH, rs6000] Fix PR target 71656, reload ICE when -mcpu=power9 -mpower9-dform-vector

2016-06-28 Thread Peter Bergner
On 6/27/16 8:30 PM, Peter Bergner wrote: On 6/27/16 3:21 PM, Segher Boessenkool wrote: On Sat, Jun 25, 2016 at 07:14:01PM -0500, Peter Bergner wrote: Okay for trunk, okay for 6 later. One comment: + if (VECTOR_MODE_P (mode) + && !mode_supports_vsx_dform_quad (mode)) +return false;

Re: [PATCH][ARM] Fix gcc.target/arm/builtin-bswap16-1.c

2016-06-28 Thread Richard Earnshaw (lists)
On 03/06/16 09:30, Kyrill Tkachov wrote: > Hi all, > > The test gcc.target/arm/builtin-bswap16-1.c refuses to compile when > testing a toolchain configured with > --with-mode=thumb --with-float=hard and an architecture that supports > Thumb2. > This is because the test explicitly sets the -march o

[PATCH] correct atomic_compare_exchange_n return type (c++/71675)

2016-06-28 Thread Martin Sebor
c++/71675 - __atomic_compare_exchange_n returns wrong type for typed enum __atomic_compare_exchange_n is documented to return bool but when its operands are of one of the character types or derived from it (such as a class enum in C++) it converts the bool result to that type. The attached patch

[PATCH PR70729] The second part of patch.

2016-06-28 Thread Yuri Rumyantsev
Hi All! Here is the second part of patch to improve loop invariant code motion for loop marked with pragma omp simd. Bootstrapping and regression testing did not show any new failures. Is it OK for trunk? ChangeLog: 2016-06-28 Yuri Rumyantsev PR tree-optimization/70729 * tree-ssa-loop-im.c (

RE: [PATCH] Fix FFI return type for closures in the java interpreter

2016-06-28 Thread Matthew Fortune
Tom Tromey writes: > > "Matthew" == Matthew Fortune writes: > Matthew> I've identified a latent bug in the java interpreter that affects > MIPS > Matthew> n32 and n64 ABIs both little and big endian and, I presume, any > 64-bit > Matthew> big endian target with int as 32-bit. > [...] > > M

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Uros Bizjak
On Tue, Jun 28, 2016 at 4:19 PM, Jakub Jelinek wrote: > On Tue, Jun 28, 2016 at 12:26:55PM +0200, Jakub Jelinek wrote: >> On Tue, Jun 28, 2016 at 12:09:51PM +0200, Uros Bizjak wrote: >> > > So, this patch instead changes ix86_expand_vector_move, so that >> > > for SUBREGs it forces the SUBREG_REG

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Uros Bizjak
On Tue, Jun 28, 2016 at 12:26 PM, Jakub Jelinek wrote: > On Tue, Jun 28, 2016 at 12:09:51PM +0200, Uros Bizjak wrote: >> > So, this patch instead changes ix86_expand_vector_move, so that >> > for SUBREGs it forces the SUBREG_REG into memory (or register if >> > that fails, though I don't have a te

Re: [Bug libstdc++/71640] [7 Regression] include/c++/7.0.0/bits/hashtable.h:293:7: error: too many template parameters in template redeclaration

2016-06-28 Thread Markus Trippelsdorf
On 2016.06.28 at 14:40 +0100, Jonathan Wakely wrote: > On 27/06/16 22:45 +0200, François Dumont wrote: > >Trivial attached patch applied to fix this regression. I am surprised that > >gcc had not detected it. > > Yes, we should report a front-end bug for this if there isn't one > already. FYI I'v

Re: RFC: pass to warn on questionable uses of alloca().

2016-06-28 Thread Aldy Hernandez
Hi. In addressing the issues that were brought up I ran into bounded allocas that are bounded by an unknown size. Should we warn on these?: if (n < SOME_GLOBAL) alloca(n) In my WIP I am warning with: x.c:6:5: warning: alloca bound is unknown [-Walloca] Though

Re: [Patch, lra] PR70751, correct the cost for spilling non-pseudo into memory

2016-06-28 Thread Jiong Wang
On 28/06/16 11:01, Jiong Wang wrote: On 28/06/16 10:51, Jiong Wang wrote: On 27/06/16 17:26, Dominik Vogt wrote: On Thu, Jun 09, 2016 at 09:52:39AM -0600, Jeff Law wrote: On 06/08/2016 10:47 AM, Jiong Wang wrote: As discussed on the PR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70751

[PATCH] tree-ssa-strlen improvements (PR tree-optimization/71625)

2016-06-28 Thread Jakub Jelinek
Hi! This is just first small step towards this PR. It brings the ADDR_EXPR of DECL_P bases roughly on the same level as SSA_NAMEs pointers - so get_stridx_plus_constant works for them, and more importantly, before this patch there was a very severe bug in addr_stridxptr (missing list = list->next;

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Jakub Jelinek
On Tue, Jun 28, 2016 at 12:26:55PM +0200, Jakub Jelinek wrote: > On Tue, Jun 28, 2016 at 12:09:51PM +0200, Uros Bizjak wrote: > > > So, this patch instead changes ix86_expand_vector_move, so that > > > for SUBREGs it forces the SUBREG_REG into memory (or register if > > > that fails, though I don't

Re: [PATCH, vec-tails 07/10] Support loop epilogue combining

2016-06-28 Thread Ilya Enkovich
On 28 Jun 15:24, Ilya Enkovich wrote: > On 16 Jun 10:54, Jeff Law wrote: > > > > I don't see anything particularly worrisome here either -- I have a slight > > concern about correctness issues with only masking loads/stores and > > reductions. But I will defer to your judgment on whether or not t

Re: [PATCH][ARM] Fix gcc.target/arm/builtin-bswap16-1.c

2016-06-28 Thread Kyrill Tkachov
Ping. Thanks, Kyrill On 10/06/16 10:28, Kyrill Tkachov wrote: Ping. https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00249.html Thanks, Kyrill On 03/06/16 09:30, Kyrill Tkachov wrote: Hi all, The test gcc.target/arm/builtin-bswap16-1.c refuses to compile when testing a toolchain configured wi

Re: [PATCH, vec-tails 05/10] Check if loop can be masked

2016-06-28 Thread Ilya Enkovich
On 23 Jun 12:54, Ilya Enkovich wrote: > > Here is an updated version with less typos and more comments. > > Thanks, > Ilya > -- Here is an updated version with trapping statements check added to vect_analyze_stmt. Thanks, Ilya -- gcc/ 2016-06-28 Ilya Enkovich * tree-vect-loop.c: In

Re: RFA (gimplify): PATCH to implement C++ order of evaluation paper

2016-06-28 Thread Richard Biener
On Thu, Jun 16, 2016 at 6:15 PM, Jakub Jelinek wrote: > On Thu, Jun 16, 2016 at 11:28:48AM -0400, Jason Merrill wrote: >> gimple_predicate >> rhs_predicate_for (tree lhs) >> { >> - if (is_gimple_reg (lhs)) >> + if (will_be_gimple_reg (lhs)) >> return is_gimple_reg_rhs_or_call; >>else

Re: [PATCH] Mark -fstack-protect as optimization flag (PR middle-end/71585)

2016-06-28 Thread Richard Biener
On Tue, Jun 28, 2016 at 3:38 PM, Martin Liška wrote: > Hello. > > Following patch marks -fstack-protect as Optimization flag. > That let a user to mark a function with #pragma GCC optimize > ("-fno-stack-protector") > to disable the optimization for a function. > > Patch survives regression tests

Re: [PATCH, PR tree-optimization/71655] Fix LE and LT masks comparison cases

2016-06-28 Thread Richard Biener
On Tue, Jun 28, 2016 at 1:26 PM, Ilya Enkovich wrote: > Hi, > > Currently we use operands swap when compare masks using LT and LE codes. > Operands swap misses swap for their definition types and this patch > fixes it. Testing is in progress. OK for trunk if pass? Ok. Thanks, Richard. > Thank

[gomp4.5] Small fix after merge from trunk

2016-06-28 Thread Jakub Jelinek
Hi! I've merged trunk into gomp-4_5-branch, the following change was all that was needed to make it build. 2016-06-28 Jakub Jelinek * openmp.c (match_acc): Change mask type from uint64_t to const omp_mask. --- gcc/fortran/openmp.c.jj 2016-06-28 14:51:11.0 +0200 ++

Re: [Bug libstdc++/71640] [7 Regression] include/c++/7.0.0/bits/hashtable.h:293:7: error: too many template parameters in template redeclaration

2016-06-28 Thread Jonathan Wakely
On 27/06/16 22:45 +0200, François Dumont wrote: Trivial attached patch applied to fix this regression. I am surprised that gcc had not detected it. Yes, we should report a front-end bug for this if there isn't one already. 2016-06-27 François Dumont PR libstdc++/71640 * include/bits

[PATCH] Mark -fstack-protect as optimization flag (PR middle-end/71585)

2016-06-28 Thread Martin Liška
Hello. Following patch marks -fstack-protect as Optimization flag. That let a user to mark a function with #pragma GCC optimize ("-fno-stack-protector") to disable the optimization for a function. Patch survives regression tests and bootstraps on x86_64-linux-gnu. Ready to install? Thanks, Mart

Re: [PATCH] Fix big-endian bswap

2016-06-28 Thread Richard Biener
On Thu, Jun 23, 2016 at 6:34 PM, Wilco Dijkstra wrote: > This patch fixes a bug in the bswap pass. In big-endian BIT_FIELD_REF uses > big-endian bit numbering so we need to adjust the bit position. > The existing version could potentially generate incorrect code however GCC > doesn't > emit a BI

Re: [PATCH, vec-tails 07/10] Support loop epilogue combining

2016-06-28 Thread Ilya Enkovich
On 16 Jun 10:54, Jeff Law wrote: > On 05/19/2016 01:44 PM, Ilya Enkovich wrote: > >Hi, > > > >This patch introduces support for loop epilogue combining. This includes > >support in cost estimation and all required changes required to mask > >vectorized loop. > > > >Thanks, > >Ilya > >-- > >gcc/ >

Re: Improve diagnostic messages of "#pragma omp cancel", "#pragma omp cancellation point" parsing (was: Clarify PRAGMA_OACC_* and PRAGMA_OMP_*)

2016-06-28 Thread Jakub Jelinek
On Tue, Jun 28, 2016 at 02:19:13PM +0200, Thomas Schwinge wrote: > This also makes it obvious that stuff like: > > void foo() > { > if (0) > #pragma omp cancellation FOO > ; > } > > ... currently produces "wrong" ;-) diagnostics: > > ../omp.c: In function 'foo':

Re: Clarify PRAGMA_OACC_* and PRAGMA_OMP_*

2016-06-28 Thread Jakub Jelinek
On Tue, Jun 28, 2016 at 02:13:24PM +0200, Thomas Schwinge wrote: > Looking at how OpenMP declare simd is handled in the C++ front end, I ran > into it being parsed for PRAGMA_OMP_DECLARE_REDUCTION, which got me > confused. OK to commit the following to un-confuse this, in that > PRAGMA_OACC_* and

Improve diagnostic messages of "#pragma omp cancel", "#pragma omp cancellation point" parsing (was: Clarify PRAGMA_OACC_* and PRAGMA_OMP_*)

2016-06-28 Thread Thomas Schwinge
Hi! On Tue, 28 Jun 2016 14:13:24 +0200, I wrote: > PRAGMA_OACC_* and PRAGMA_OMP_* don't describe what *eventually* is to be > parsed [...], but instead they describe what *so far* has been parsed. > --- gcc/c/c-parser.c > +++ gcc/c/c-parser.c > @@ -10186,7 +10186,7 @@ c_parser_pragma (c_parser *p

Clarify PRAGMA_OACC_* and PRAGMA_OMP_*

2016-06-28 Thread Thomas Schwinge
Hi! Looking at how OpenMP declare simd is handled in the C++ front end, I ran into it being parsed for PRAGMA_OMP_DECLARE_REDUCTION, which got me confused. OK to commit the following to un-confuse this, in that PRAGMA_OACC_* and PRAGMA_OMP_* don't describe what *eventually* is to be parsed (which

[PATCH] Fix alias machinery for DECL_BIT_FIELD_REPRESENTATIVE

2016-06-28 Thread Richard Biener
I am reviving this patch from 2013 which properly handles DECL_BIT_FIELD_REPRESENTATIVE appearing as FIELD_DECL operand in a COMPONENT_REF (as I am currently reviving a patch to lower bitfield accesses now that BIT_INSERT_EXPR is on trunk). Bootstrapped and tested on x86_64-unknown-linux-gnu, app

[PATCH, PR tree-optimization/71655] Fix LE and LT masks comparison cases

2016-06-28 Thread Ilya Enkovich
Hi, Currently we use operands swap when compare masks using LT and LE codes. Operands swap misses swap for their definition types and this patch fixes it. Testing is in progress. OK for trunk if pass? Thanks, Ilya -- gcc/ 2016-06-28 Ilya Enkovich * tree-vect-stmts.c (vectorizable_c

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Jakub Jelinek
On Tue, Jun 28, 2016 at 12:09:51PM +0200, Uros Bizjak wrote: > > So, this patch instead changes ix86_expand_vector_move, so that > > for SUBREGs it forces the SUBREG_REG into memory (or register if > > that fails, though I don't have a testcase for when that would happen), > > and just re-creates a

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Uros Bizjak
On Tue, Jun 28, 2016 at 11:27 AM, Jakub Jelinek wrote: > On Tue, Jun 28, 2016 at 09:15:13AM +0200, Richard Biener wrote: >> I wonder why we can rely on the MODE_FLOAT case not seeing >> (subreg:DF (reg:V2DF ) 0) but have to handle >> (subreg:V1DF (reg:DF ...) 0) in the MODE_VECTOR case. > > Seems

Re: [Patch, lra] PR70751, correct the cost for spilling non-pseudo into memory

2016-06-28 Thread Jiong Wang
On 28/06/16 10:51, Jiong Wang wrote: On 27/06/16 17:26, Dominik Vogt wrote: On Thu, Jun 09, 2016 at 09:52:39AM -0600, Jeff Law wrote: On 06/08/2016 10:47 AM, Jiong Wang wrote: As discussed on the PR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70751, here is the patch. This commit has i

Re: [Patch, lra] PR70751, correct the cost for spilling non-pseudo into memory

2016-06-28 Thread Jiong Wang
On 27/06/16 17:26, Dominik Vogt wrote: On Thu, Jun 09, 2016 at 09:52:39AM -0600, Jeff Law wrote: On 06/08/2016 10:47 AM, Jiong Wang wrote: As discussed on the PR https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70751, here is the patch. This commit has introduced an ICE with s390x, march=z13.

[PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626, take 2)

2016-06-28 Thread Jakub Jelinek
On Tue, Jun 28, 2016 at 09:15:13AM +0200, Richard Biener wrote: > I wonder why we can rely on the MODE_FLOAT case not seeing > (subreg:DF (reg:V2DF ) 0) but have to handle > (subreg:V1DF (reg:DF ...) 0) in the MODE_VECTOR case. Seems all of force_const_mem is just unprepared to handle SUBREGs of C

Re: move increase_alignment from simple to regular ipa pass

2016-06-28 Thread Prathamesh Kulkarni
ping https://gcc.gnu.org/ml/gcc-patches/2016-06/msg01703.html Thanks, Prathamesh On 23 June 2016 at 22:51, Prathamesh Kulkarni wrote: > On 17 June 2016 at 19:52, Prathamesh Kulkarni > wrote: >> On 14 June 2016 at 18:31, Prathamesh Kulkarni >> wrote: >>> On 13 June 2016 at 16:13, Jan Hubicka w

Re: [PATCH, AARCH64] add qdf24xx tuning structure

2016-06-28 Thread Kyrill Tkachov
On 28/06/16 02:03, Jim Wilson wrote: On Mon, Jun 13, 2016 at 3:01 AM, Kyrill Tkachov wrote: Hi Jim, On 10/06/16 23:48, Jim Wilson wrote: This adds a tuning structure for qdf24xx. This was tested with an aarch64-linux bootstrap and a make check, with no regressions. I also tested it with an

Re: [RFC] __atomic_compare_exchange* optimizations (PR middle-end/66867, alternative)

2016-06-28 Thread Richard Biener
On Fri, 24 Jun 2016, Jakub Jelinek wrote: > On Thu, Jun 23, 2016 at 05:23:21PM +0200, Jakub Jelinek wrote: > > Thinking about this again, there could be another option - keep > > __atomic_compare_exchange_N in the IL, but under certain conditions (similar > > to what the patch uses in fold_builtin

Re: [RFC] __atomic_compare_exchange* optimizations (PR middle-end/66867)

2016-06-28 Thread Richard Biener
On Thu, 23 Jun 2016, Jakub Jelinek wrote: > Hi! > > This PR is about 2 issues with the *atomic_compare_exchange* APIs, which > didn't exist with __sync_*_compare_and_swap: > 1) the APIs make the expected argument addressable, although it is very >common it is an automatic variable that is add

Re: [PATCH] Fix FFI return type for closures in the java interpreter

2016-06-28 Thread Tom Tromey
> "Matthew" == Matthew Fortune writes: Matthew> I've identified a latent bug in the java interpreter that affects MIPS Matthew> n32 and n64 ABIs both little and big endian and, I presume, any 64-bit Matthew> big endian target with int as 32-bit. [...] Matthew> libjava/ Matthew> * interpret-ru

Re: [PATCH][vectorizer][2/2] Hook up mult synthesis logic into vectorisation of mult-by-constant

2016-06-28 Thread Richard Biener
On Thu, 16 Jun 2016, Kyrill Tkachov wrote: > > On 15/06/16 22:53, Marc Glisse wrote: > > On Wed, 15 Jun 2016, Kyrill Tkachov wrote: > > > > > This is a respin of > > > https://gcc.gnu.org/ml/gcc-patches/2016-06/msg00952.html following > > > feedback. > > > I've changed the code to cast the opera

Re: [PATCH] Fix ICE with V1DImode ctor (PR middle-end/71626)

2016-06-28 Thread Richard Biener
On Mon, 27 Jun 2016, Jakub Jelinek wrote: > Hi! > > This patch is an attempt to fix ICE on the following testcase. > In output_constant_pool_2 we assume that for vector modes, force_const_mem > must be a CONST_VECTOR, but for the weirdo vector modes with single element > it could very well be jus

Re: [PATCH] Fix ICE with __builtin_*_overflow_p on bitfields (PR rtl-optimization/71673)

2016-06-28 Thread Richard Biener
On Mon, 27 Jun 2016, Jakub Jelinek wrote: > Hi! > > On targets which don't support sub-word operations trying OPTAB_DIRECT > AND on e.g. QImode or HImode leads to NULL being returned, so we ICE on > builtin-arith-overflow-p-19.c e.g. on arm, aarch64 or sparc*. > > Fixed thusly, bootstrapped/regt

Re: OpenACC wait clause

2016-06-28 Thread Jakub Jelinek
On Mon, Jun 27, 2016 at 04:22:01PM -0700, Cesar Philippidis wrote: > + while (ret == MATCH_YES) > { > - if (cp->gang_static) > - return MATCH_ERROR; > + if (gfc_match (" static :") == MATCH_YES) > + { > + if (cp->gang_static) > + return M