Re: [PATCH i386 AVX512] [69/n] Add vpmulhrsw insn support.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 1:12 PM, Kirill Yukhin wrote: > Hello, > This patch adds support for vpmulhrsw insn. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/sse.md > (define_insn "avx512bw_umulhrswv3

Re: [PATCH i386 AVX512] [70/n]

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 1:36 PM, Kirill Yukhin wrote: > Hello, > This patch further extends maxmin patterns. You didn't update field ;) > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/sse.md > (defi

Re: [PATCH i386 AVX512] [71/n] [Obvious?] Remove redudant iterator attribute.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 1:39 PM, Kirill Yukhin wrote: > Hello, > This obvious patch removes redundant iterator attribute > > Bootstrapped. > > Is it ok for trunk? > > gcc/ > * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove. OK. Thanks, Uros.

Re: [RFC: Patch, PR 60102] [4.9/4.10 Regression] powerpc fp-bit ices@dwf_regno

2014-10-09 Thread Maciej W. Rozycki
On Thu, 9 Oct 2014, Ulrich Weigand wrote: > > The patch works for me. > > Tested with GCC v4.9 branch rev 216036 and GCC trunk rev 216027. > > Thanks for testing! Can you work with Maciej to find out why he's > seeing different results? Seeing Rohit got good results it has struck me that perha

Re: [PATCH i386 AVX512] [72/n] Extend VI itterator.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 1:47 PM, Kirill Yukhin wrote: > Hello, > This patch extends VI mode iterator. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/i386.c > (ix86_expand_vector_logical_operator): H

Re: [PATCH i386 AVX512] [73/n] Extend reduc min/max autogen.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 1:55 PM, Kirill Yukhin wrote: > Hello, > This patch extends pattern for reducation maxmin autogen. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/sse.md > (define_mode_iterat

Re: [PATCH i386 AVX512] [74/n] Add byte/word max/mix reduction.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 2:02 PM, Kirill Yukhin wrote: > Hello, > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/i386.c > (emit_reduc_half): Handle V64QI and V32HI mode. > * config/i386/sse.md

Re: [PATCH i386 AVX512] [75/n] Update vec_init.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 2:13 PM, Kirill Yukhin wrote: > Hello, > This patch extends vec_init-related routines/patterns. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/i386.c > (ix86_expand_vector_in

Re: [PATCH i386 AVX512] [76/n] Extend int 2 float conversions.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 5:01 PM, Kirill Yukhin wrote: > Hello, > This patch extends autogeneration of SI-2-SF > conversions. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/i386.c > (ix86_expand_vect

Re: [PATCH i386 AVX512] [77/n] Use blend for cond-set V32HI and V64QI.

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 5:07 PM, Kirill Yukhin wrote: > Hello, > This patch extends movcc/vcond autogen. > > Bootstrapped. > AVX-512* tests on top of patch-set all pass > under simulator. > > Is it ok for trunk? > > gcc/ > * config/i386/i386.c > (ix86_expand_sse_movcc): Handle V64QI

Re: [gomp4] reduction bug fix

2014-10-09 Thread Thomas Schwinge
Hi Cesar! On Wed, 8 Oct 2014 09:57:22 -0700, Cesar Philippidis wrote: > On 10/08/2014 02:38 AM, Thomas Schwinge wrote: > > > On Fri, 3 Oct 2014 09:22:52 -0700, Cesar Philippidis > > wrote: > >> There is a reduction bug [...] > >> This patch also includes a runtime test case. I won't apply it

Re: [PATCH, i386, Pointer Bounds Checker 31/x] Pointer Bounds Checker builtins for i386 target

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 4:07 PM, Ilya Enkovich wrote: > It appeared I changed a semantics of BNDMK expand when replaced tree > operations with rtl ones. > > Original code: > > + op1 = expand_normal (fold_build2 (PLUS_EXPR, TREE_TYPE (arg1), > + arg1, inte

Re: [i386] Replace builtins with vector extensions

2014-10-09 Thread Olivier Hainque
Hello Marc, On Oct 9, 2014, at 12:33 PM, Marc Glisse wrote: > If this is accepted, I will gladly prepare patches removing the unused > builtins and extending this to a few more operations (integer vectors in > particular). If this is not the direction we want to go, I'd like to hear it > clearl

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [12/n] Optimize string functions

2014-10-09 Thread Jeff Law
On 10/08/14 13:18, Ilya Enkovich wrote: Hi, This patch introduces simple optimization of string function calls using variants with no checks and/or bounds copy when possible. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (check_infos): New. (chkp_get_nobnd_fndecl):

Re: Towards GNU11

2014-10-09 Thread Joseph S. Myers
On Thu, 9 Oct 2014, Marek Polacek wrote: > On Wed, Oct 08, 2014 at 08:39:40PM -0600, Jeff Law wrote: > > I like it. And one could reasonably argue that now is the time to change > > since that maximizes the time for folks to find broken code. > > Yep, this is definitely stage1 stuff. We still h

Re: [PATCH 0/14+2][Vectorizer] Made reductions endianness-neutral, fixes PR/61114

2014-10-09 Thread Alan Lawrence
Okwell, I see a path forward, somewhere there however (bah), I can't push that subset of patches - I came back from a week's holiday and misremembered - the AArch64 changes depend upon the introduction of the _scal_optabs, not just the tree changes :( . I'll try to post optab migration

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [14/n] Optimize constant checks

2014-10-09 Thread Jeff Law
On 10/08/14 13:21, Ilya Enkovich wrote: Hi, This patch adds a removal of checks known to always pass into checker optimization. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_remove_check_if_pass): New. (chkp_remove_constant_checks): New. (chkp_opt_exe

Re: [Google 4.9] Backport of r210828

2014-10-09 Thread Carrot Wei
LGTM. Your description could be more detail, such as which tests on which target. On Tue, Oct 7, 2014 at 2:06 PM, Sterling Augustine wrote: > The enclosed patch for google 4.9 is a backport of r210828 from > trunk. > > googleref:b/14623977 > > The given tests now pass when run by hand, but timeou

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [16/n] Reduce bounds lifetime

2014-10-09 Thread Jeff Law
On 10/08/14 13:24, Ilya Enkovich wrote: Hi, This patch adds a bounds lifetime reduction into checker optimization. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_reduce_bounds_lifetime): New. (chkp_opt_execute): Run bounds lifetime reduction algorithm.

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [15/n] Optimize redundant checks

2014-10-09 Thread Jeff Law
On 10/08/14 13:22, Ilya Enkovich wrote: Hi, This patch adds removal of redundant (covered by other) checks into checker optimization. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_compare_checks): New. (chkp_remove_redundant_checks): New. (chkp_opt_ex

Re: [i386] Replace builtins with vector extensions

2014-10-09 Thread Marc Glisse
On Thu, 9 Oct 2014, Olivier Hainque wrote: On Oct 9, 2014, at 12:33 PM, Marc Glisse wrote: If this is accepted, I will gladly prepare patches removing the unused builtins and extending this to a few more operations (integer vectors in particular). If this is not the direction we want to go, I

Re: [PATCH] Fix r216010 fallout

2014-10-09 Thread Jan Hubicka
> This fixes fallout from r216010, which causes Firefox build failures. > Just move the gcc_assert below the new if statement. > > Boostrapped and tested on powerpc64-unknown-linux-gnu. > Ok for trunk? OK, thanks! Honza > Thanks. > > 2014-10-09 Markus Trippelsdorf > > * pa-polymorphic-

Re: [i386] Replace builtins with vector extensions

2014-10-09 Thread Uros Bizjak
On Thu, Oct 9, 2014 at 7:46 PM, Marc Glisse wrote: >>> If this is accepted, I will gladly prepare patches removing the unused >>> builtins and extending this to a few more operations (integer vectors in >>> particular). If this is not the direction we want to go, I'd like to hear it >>> clearly s

C++ PATCH for c++/63437 (C++14 return (x))

2014-10-09 Thread Jason Merrill
In C++14 mode the compiler turns (x) into static_cast(x) in order to prevent decltype(auto) from treating it as plain x. But that also messes with the magic for treating a local variable as an rvalue in a return statement. So we need to mark the obfuscation as coming from (x) so we can undo i

C++ PATCH for c++/63415 (value-dependent int(T{}))

2014-10-09 Thread Jason Merrill
T{} is expressed as a CONSTRUCTOR with TREE_HAS_CONSTRUCTOR set, so we need to consider the type and not just assume that all CONSTRUCTORs have init-list type. Tested x86_64-pc-linux-gnu, applying to trunk. commit 81e370f51099c049313b9f6f1d8910e2475fbbcf Author: Jason Merrill Date: Wed Oct 8

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [13/n] Optimize bounds intersections

2014-10-09 Thread Jeff Law
On 10/08/14 13:19, Ilya Enkovich wrote: Hi, This patch adds removal of unnecessary intersections into checker optimizations. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_release_check_info): New. (chkp_init_check_info): New. (chkp_gather_checks_info):

Re: [i386] Replace builtins with vector extensions

2014-10-09 Thread Marc Glisse
On Thu, 9 Oct 2014, Uros Bizjak wrote: Given that this will be a substantial work and considering the request from Kirill, what do you think about separate development branch until AVXn stuff is finished? This will give a couple of weeks and a playground to finalize the approach for the conversi

C++ PATCH for c++/63309 (ICE with invalid definition of template member)

2014-10-09 Thread Jason Merrill
push_template_decl handles checking that template parameter lists make sense, but we were never calling it for a definition of a member class of a class template. Fixed by calling it in cp_parser_class_head, where previously we had only called it for redefinition of primary templates. Tested

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [11/n] Optimization helpers

2014-10-09 Thread Jeff Law
On 10/08/14 13:16, Ilya Enkovich wrote: Hi, This patch introduces structures and manipulation functions used by simple checker optimizations. Structures are used to hold checks information - type of check and checked address in a polinomial form. Thanks, Ilya -- 2014-10-08 Ilya Enkovich

Re: [PATCH] PR libstdc++/60132, implement the remaining C++11 is_trivially_* traits

2014-10-09 Thread Jonathan Wakely
Now that we have is_trivially_copyable ... Update the docs and fix a TODO in . I asked Doug Gregor recently about the __is_location_invariant trait that he used in our std::tr1::function and std::function implementations and he confirmed that in C++11 std::is_trivially_copyable is a better tes

Re: [PATCH i386 AVX512] [63.1/n] Add vpshufb, perm autogen (except for v64qi).

2014-10-09 Thread Jakub Jelinek
On Thu, Oct 09, 2014 at 04:15:23PM +0400, Ilya Tocar wrote: > --- a/gcc/config/i386/i386.c > +++ b/gcc/config/i386/i386.c > @@ -21358,32 +21358,169 @@ ix86_expand_int_vcond (rtx operands[]) >return true; > } > > +/* AVX512F does support 64-byte integer vector operations, > + thus the longe

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [10/n] Stores handler

2014-10-09 Thread Jeff Law
On 10/08/14 13:12, Ilya Enkovich wrote: Hi, This patch adds an assignment processing function which is used by lnliner for newly generated stores. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_copy_bounds_for_assign): New. * tree-chkp.h (chkp_copy_bounds_for_

Re: [gofrontend-dev] [PATCH 2/9] Gccgo port to s390[x] -- part I

2014-10-09 Thread Ian Lance Taylor
On Tue, Sep 9, 2014 at 5:49 AM, Dominik Vogt wrote: > A test case added to golang for the previous patch. > > gcc/testsuite/ChangeLog > 2014-09-05 Dominik Vogt > > * go.test/test/recover.go (test1): Test recover() from deferred > recursive function. Proposed for master testsuit

[4.9 PATCH, testsuite]: Fix g++.dg/cpp1y/feat-cxx14.C testsuite errors

2014-10-09 Thread Uros Bizjak
Hello! 2014-10-09 Uros Bizjak * g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet. (dg-do): Use c++1y target. Tested on x86_64. OK for branch? Uros. Index: g++.dg/cpp1y/feat-cxx14.C === --- g++.dg/cpp1y/feat-cxx14

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [9/n] Static constructors

2014-10-09 Thread Jeff Law
On 10/08/14 13:10, Ilya Enkovich wrote: Hi, This patch introduces functions to handle static pointers and static bounds. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (MAX_STMTS_IN_STATIC_CHKP_CTOR): New. (chkp_ctor_stmt_list): New. (chkp_register_var_initia

Re: [gofrontend-dev] [PATCH 5/9] Gccgo port to s390[x] -- part I

2014-10-09 Thread Ian Lance Taylor
On Tue, Oct 7, 2014 at 3:45 AM, Dominik Vogt wrote: > > The only points in that patch are that on one hand - as far as I > know - the Abi does not guarantee that section symbols are either > zero or not relocated, even if that may be the case in reality. > And on the other hand, if that code is ev

Re: [PATCH 4/n] OpenMP 4.0 offloading infrastructure: lto-wrapper

2014-10-09 Thread Ilya Verbin
On 09 Oct 16:07, Ilya Verbin wrote: > > > + /* By default linker does not discard .gnu.offload_lto_* sections. > > > */ > > > + const char *linker_script = make_temp_file ("_linker_script.x"); > > > + FILE *stream = fopen (linker_script, "w"); > > > + if (!stream) > > > + fata

[Patch, Fortran] IMPLICIT fixes

2014-10-09 Thread Tobias Burnus
Hi all, this patch fixes Alan's issue with IMPLICIT followed by ";". I am not sure whether using the _eos machinery is really needed – especially as "!" seem to be already handled. Additionally, I missed the inner "[...]" for the new: R563 implicit-stmt is IMPLICIT implicit-spec-list

Re: [Patch, Fortran] IMPLICIT fixes

2014-10-09 Thread Steve Kargl
On Thu, Oct 09, 2014 at 10:27:09PM +0200, Tobias Burnus wrote: > > this patch fixes Alan's issue with IMPLICIT followed by ";". I am not > sure whether using the _eos machinery is really needed ??? especially as > "!" seem to be already handled. > > Additionally, I missed the inner "[...]" for

Re: [PATCH C++] - SD-6 Implementation Part 4 - Test suite.

2014-10-09 Thread Matthias Klose
Am 07.09.2014 um 03:48 schrieb Ed Smith-Rowland: > Greetings, > > I am finally getting back to my SD-6 C++ features test work. > > This adds front end and preprocessor tests for the language feature tests and > __has_include. > > I am still working on the fifth and last in this series to add > _

Merge from trunk to gccgo branch

2014-10-09 Thread Ian Lance Taylor
I merged trunk revision 216040 to the gccgo branch. Ian

Re: [PATCH, Pointer Bounds Checker 14/x] Passes [8/n] Remove useless builtin calls

2014-10-09 Thread Jeff Law
On 10/08/14 13:08, Ilya Enkovich wrote: Hi, This patch adds removal of user calls to chkp builtins which become useless after instrumentation. Thanks, Ilya -- 2014-10-08 Ilya Enkovich * tree-chkp.c (chkp_remove_useless_builtins): New. (chkp_execute): Remove useless calls to

Re: [patch] Add -static-libquadmath option

2014-10-09 Thread Mike Stump
On Oct 9, 2014, at 3:39 AM, FX wrote: > Version 2 of the patch, now handling the darwin case (thanks Iain) > OK to commit? For the bits I can approve, Ok.

Re: [google/gcc-4_9] Add gcc driver option -no-pie

2014-10-09 Thread Sriraman Tallam
On Mon, Oct 6, 2014 at 4:19 PM, Sriraman Tallam wrote: > On Mon, Oct 6, 2014 at 3:22 PM, Joseph S. Myers > wrote: >> If adding a new option, you need to document it in invoke.texi. > > Patch updated. Is this alright for google/gcc-4_9? Sri > > Thanks > Sri > >> >> -- >> Joseph S. Myers >> jos

Re: Towards GNU11

2014-10-09 Thread Mike Stump
On Oct 7, 2014, at 2:07 PM, Marek Polacek wrote: > I'd like to kick off a discussion about moving the default standard > for C from gnu89 to gnu11. I endorse the change of default. > The things I had to fix in the testsuite nicely reflect what we can expect > in the real life: A wiki page that

Re: [4.9 PATCH, testsuite]: Fix g++.dg/cpp1y/feat-cxx14.C testsuite errors

2014-10-09 Thread Mike Stump
On Oct 9, 2014, at 11:56 AM, Uros Bizjak wrote: > 2014-10-09 Uros Bizjak > >* g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet. >(dg-do): Use c++1y target. > > Tested on x86_64. OK for branch? So, I need Ed or Jason to review it… Index: g++.dg/cpp1y/feat-cxx14.C

Re: [Patch, testsuite] check if -shared is supported

2014-10-09 Thread Mike Stump
On Oct 7, 2014, at 2:54 PM, Christophe Lyon wrote: > When Jason added the new g++.dg/ipa/devirt-28a.C test along with his > fix for PR c++/58678 > (https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00838.html), this new > test was failing in the ARM and AArch64 configuration I am testing. > Is it OK

Re: [PATCH] AutoFDO patch for trunk

2014-10-09 Thread Jan Hubicka
> >> Index: gcc/bb-reorder.c > >> === > >> --- gcc/bb-reorder.c (revision 210180) > >> +++ gcc/bb-reorder.c (working copy) > >> @@ -2663,7 +2663,7 @@ pass_partition_blocks::gate (function *fun) > >> user defined section attribu

Re: [google/gcc-4_9] Add gcc driver option -no-pie

2014-10-09 Thread Cary Coutant
>>> If adding a new option, you need to document it in invoke.texi. >> >> Patch updated. > > Is this alright for google/gcc-4_9? +no-pie +Driver RejectNegative Negative(pie) +Create a position dependent executable I'd suggest adding an alias for "-no-pie" (meaning "--no-pie") -- see earlier in co

Re: [google/gcc-4_9] Add gcc driver option -no-pie

2014-10-09 Thread Sriraman Tallam
On Thu, Oct 9, 2014 at 3:34 PM, Cary Coutant wrote: If adding a new option, you need to document it in invoke.texi. >>> >>> Patch updated. >> >> Is this alright for google/gcc-4_9? > > +no-pie > +Driver RejectNegative Negative(pie) > +Create a position dependent executable > > I'd suggest add

Re: [google/gcc-4_9] Add gcc driver option -no-pie

2014-10-09 Thread Cary Coutant
>> I'd suggest adding an alias for "-no-pie" (meaning "--no-pie") -- see >> earlier in common.opt where "-pie" is declared as an alias for "pie", >> and similarly for "-shared". > > Patch Updated. OK for google/gcc-4_9 branch. Thanks! -cary

Go patch committed: Accept "for range v"

2014-10-09 Thread Ian Lance Taylor
The Go language was tweaked slightly to permit the variable to be omitted in a range clause, so that one can write "for range v" instead of having to write "for _ = range v". This patch from Chris Manghane implements this in gccgo. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. C

Re: [4.9 PATCH, testsuite]: Fix g++.dg/cpp1y/feat-cxx14.C testsuite errors

2014-10-09 Thread Ed Smith-Rowland
On 10/09/2014 05:54 PM, Mike Stump wrote: On Oct 9, 2014, at 11:56 AM, Uros Bizjak wrote: 2014-10-09 Uros Bizjak * g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet. (dg-do): Use c++1y target. Tested on x86_64. OK for branch? So, I need Ed or Jason to review it… Yes, plea

Re: [4.9 PATCH, testsuite]: Fix g++.dg/cpp1y/feat-cxx14.C testsuite errors

2014-10-09 Thread Mike Stump
On Oct 9, 2014, at 5:09 PM, Ed Smith-Rowland <3dw...@verizon.net> wrote: > On 10/09/2014 05:54 PM, Mike Stump wrote: >> On Oct 9, 2014, at 11:56 AM, Uros Bizjak wrote: >>> 2014-10-09 Uros Bizjak >>> >>>* g++.dg/cpp1y/feat-cxx14.C: Variable templates not in yet. >>>(dg-do): Use c++1y ta

Re: [PATCH] AutoFDO patch for trunk

2014-10-09 Thread Dehao Chen
>> >> This will cause bzip2 performance to degrade 6%. I haven't had time to >> triage the problem. Will investigate this later. > > Still I would preffer to make this by default > flag_reorder_blocks_and_partition > to false with auto_profile. We could do that incrementally, lets just drop > thi

Re: [C++ PAtch] More C++11 and C++14 constexpr work

2014-10-09 Thread Jason Merrill
On 10/09/2014 11:15 AM, Paolo Carlini wrote: I noticed today that given the actual C++11 the error messages we provide: "constexpr constructor does not have empty body" and: "body of constexpr function ‘XXX’ not a return-statement" are rather outdated and misleading. In principle we

C++ PATCH for c++/63207 (ICE with lambda and const var)

2014-10-09 Thread Jason Merrill
When we see a reference to an outer const variable that might be usable in a constant-expression, we wait until instantiation time to see. If it turns out not to be usable, we need to do the same lambda magic that we would have done in finish_id_expression. Tested x86_64-pc-linux-gnu, applyin

Re: [PATCH 4/n] OpenMP 4.0 offloading infrastructure: lto-wrapper

2014-10-09 Thread Jakub Jelinek
On Fri, Oct 10, 2014 at 12:07:03AM +0400, Ilya Verbin wrote: > On 09 Oct 16:07, Ilya Verbin wrote: > > > > + /* By default linker does not discard .gnu.offload_lto_* > > > > sections. */ > > > > + const char *linker_script = make_temp_file ("_linker_script.x"); > > > > + FILE *stre

<    1   2