update gthr-tpf.h

2015-06-02 Thread DJ Delorie
This patch updates gthr-tpf.h to the current gthr.h API and TPF API. Ok? * gthr-tpf.h (__GTHREADS_CXX0X): Define. (__gthread_t): Define. (__gthread_cond_t): Define. (__gthread_time_t): Define. (__GTHREAD_HAS_COND): Define. (__GTHREAD_COND_INIT): De

Re: C++ PATCH for c++/44282 (ia32 calling convention attributes and mangling)

2015-06-02 Thread Uros Bizjak
Hello! >PR c++/44282 >gcc/cp/ >* mangle.c (attr_strcmp): New. >(write_CV_qualifiers_for_type): Also write out attributes that >affect type identity. >(write_type): Strip all attributes after writing qualifiers. >libiberty/ >* cp-demangle.c (cplus_demangle_type): Han

Re: [PATCH] Fix misuse of always_inline attribute in 3 hotpatch tests

2015-06-02 Thread Dominik Vogt
On Mon, Jun 01, 2015 at 12:29:31PM +0200, Jakub Jelinek wrote: > On Mon, Jun 01, 2015 at 11:20:29AM +0100, Dominik Vogt wrote: > > There are many more > > test cases that forget the "inline" and filter the warning with > > "-Wno-attributes". I'll post an add-on patch later after testing > > it. >

[PATCH] Optimize SLP from scalars, workaround PR65961

2015-06-02 Thread Richard Biener
The following patch optimizes the case where we decide to build up all operands from a SLP node from scalars to just build up the result from scalars. That's usually less expensive and in the PR65961 works around a case that we don't handle correctly (yet). Bootstrapped and tested on x86_64-unkn

[commit] [patch] PR other/65366: Fix gdbhooks.py for GDB with Python3

2015-06-02 Thread Jan Kratochvil
On Mon, 01 Jun 2015 22:59:03 +0200, Jason Merrill wrote: > OK, thanks. Checked in: r224012 Jan

Re: [patch 10/10] debug-early merge: compiler proper

2015-06-02 Thread Richard Biener
On Mon, Jun 1, 2015 at 7:42 PM, Aldy Hernandez wrote: > On 06/01/2015 01:00 PM, Richard Biener wrote: >> >> On June 1, 2015 5:42:57 PM GMT+02:00, Aldy Hernandez >> wrote: >>> >>> On 06/01/2015 04:04 AM, Richard Biener wrote: On Mon, Jun 1, 2015 at 10:03 AM, Richard Biener > > >>> We sti

Re: [C/C++ PATCH] Implement -Wshift-overflow (PR c++/55095)

2015-06-02 Thread Richard Biener
On Mon, Jun 1, 2015 at 10:06 PM, Richard Sandiford wrote: > Marek Polacek writes: >> + /* Left-hand operand must be signed. */ >> + if (TYPE_UNSIGNED (type0)) >> +return false; >> + >> + /* Compute the result in infinite precision math (sort of). */ >> + widest_int w = wi::lshift (wi::t

Re: [PATCH][ARM][stage-1] Initialise cost to COSTS_N_INSNS (1) and increment in arm rtx costs

2015-06-02 Thread Kyrill Tkachov
Ping^4. Thanks, Kyrill On 21/05/15 18:00, Kyrill Tkachov wrote: Ping^3. Thanks, Kyrill On 12/05/15 10:09, Kyrill Tkachov wrote: Ping^2. Thanks, Kyrill On 30/04/15 13:00, Kyrill Tkachov wrote: Ping. https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01130.html Thanks, Kyrill On 21/04/15 10:11

Re: [patch] consolidate some includes into coretypes.h

2015-06-02 Thread Richard Biener
On Mon, Jun 1, 2015 at 11:02 PM, Andrew MacLeod wrote: > I've begun looking at cleaning up the include files. Before removing > unnecessary includes, I'd like to get a few other cleanups out of the way to > simplify the dependency web. This is the first. > > There are some interrelated numerical d

Re: [patch] Fix ICE on function [not] returning variable size

2015-06-02 Thread Richard Biener
On Mon, Jun 1, 2015 at 11:08 PM, Eric Botcazou wrote: >> Ok. (I wonder if there are any cases where the return value is allocated by >> the callee?) > > Thanks. > > Do you mean in GCC or in programming languages in general or...? In GNAT, we > have something like that: when a function returns an

Re: [BUILDROBOT] arc-elf: match_code "REG" matches nothing

2015-06-02 Thread Richard Sandiford
Jan-Benedict Glaw writes: > On Fri, 2015-05-22 16:42:44 +0100, Richard Sandiford > wrote: >> This patch adjusts the fix for PR target/65689 along the lines suggested >> in https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01559.html. The idea >> is to reuse the existing gensupport.c routine to work

Re: [PATCH 15/16] gcc: Use libgas and libld within the driver

2015-06-02 Thread Richard Biener
On Mon, Jun 1, 2015 at 11:04 PM, David Malcolm wrote: > This patch adds the ability for gcc to be configured with: > --with-embedded-as > --with-embedded-ld > If so, invocations of "as" and "ld" are detected in the gcc driver, and > specialcased by invoking these in-process as shared libraries

Re: [PATCH GCC]Improve how we handle overflow in scev by using overflow information computed for control iv in loop niter, part II

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 4:55 AM, Bin.Cheng wrote: > On Mon, Jun 1, 2015 at 6:45 PM, Richard Biener > wrote: >> On Tue, May 26, 2015 at 1:04 PM, Bin Cheng wrote: >>> Hi, >>> My first part patch improving how we handle overflow in scev is posted at >>> https://gcc.gnu.org/ml/gcc-patches/2015-05/msg

Re: [C/C++ PATCH] Implement -Wshift-overflow (PR c++/55095)

2015-06-02 Thread Richard Sandiford
Richard Biener writes: > On Mon, Jun 1, 2015 at 10:06 PM, Richard Sandiford > wrote: >> Marek Polacek writes: >>> + /* Left-hand operand must be signed. */ >>> + if (TYPE_UNSIGNED (type0)) >>> +return false; >>> + >>> + /* Compute the result in infinite precision math (sort of). */ >>>

[patch] Small tweak to gimplifier

2015-06-02 Thread Eric Botcazou
Hi, there is a trick in the gimplifier to alleviate some annoying effects of the gimplification on the debug info (for -O0 when var-tracking is not enabled but it's done unconditionally): /* Try to alleviate the effects of the gimplification creating artificial temporaries (see for examp

Re: [PATCH][AARCH64]Use shl for vec_shr_ rtx pattern.

2015-06-02 Thread Renlin Li
Is it Okay for me to backport it to gcc-5? Regards, Renlin Li On 30/04/15 16:21, Marcus Shawcroft wrote: On 30 April 2015 at 12:55, Renlin Li wrote: 2015-04-30 Renlin Li * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec. * config/aarch64/iterators.md (unspec): Ad

Re: [patch] Fix ICE on function [not] returning variable size

2015-06-02 Thread Eric Botcazou
> Yes, in general in GCC. In this case we could still remove the lhs (not > sure if it is worth the trouble or even easy to detect on GIMPLE)? At least for the case I described in Ada, that's already done since the function effectively returns a pointer type. -- Eric Botcazou

Re: [PATCH GCC]Improve how we handle overflow in scev by using overflow information computed for control iv in loop niter, part II

2015-06-02 Thread Bin.Cheng
On Tue, Jun 2, 2015 at 4:40 PM, Richard Biener wrote: > On Tue, Jun 2, 2015 at 4:55 AM, Bin.Cheng wrote: >> On Mon, Jun 1, 2015 at 6:45 PM, Richard Biener >> wrote: >>> On Tue, May 26, 2015 at 1:04 PM, Bin Cheng wrote: Hi, My first part patch improving how we handle overflow in scev i

Re: [patch] Small tweak to gimplifier

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 11:08 AM, Eric Botcazou wrote: > Hi, > > there is a trick in the gimplifier to alleviate some annoying effects of the > gimplification on the debug info (for -O0 when var-tracking is not enabled but > it's done unconditionally): > > /* Try to alleviate the effects of the g

Re: [PATCH GCC]Improve how we handle overflow in scev by using overflow information computed for control iv in loop niter, part II

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 11:30 AM, Bin.Cheng wrote: > On Tue, Jun 2, 2015 at 4:40 PM, Richard Biener > wrote: >> On Tue, Jun 2, 2015 at 4:55 AM, Bin.Cheng wrote: >>> On Mon, Jun 1, 2015 at 6:45 PM, Richard Biener >>> wrote: On Tue, May 26, 2015 at 1:04 PM, Bin Cheng wrote: > Hi, > M

Re: [PATCH, AARCH64] make stdarg functions work with +nofp

2015-06-02 Thread James Greenhalgh
On Sat, May 23, 2015 at 12:24:00AM +0100, Jim Wilson wrote: > The compiler currently ICEs when compiling a stdarg function with > +nofp, as reported in PR 66258. > > The aarch64.md file disables FP instructions using TARGET_FLOAT, which > supports both -mgeneral-regs-only and +nofp. But there is

[gomp4, committed] Add checks for num_gangs(32) in goacc kernels tests

2015-06-02 Thread Tom de Vries
Hi, this patch adds an extra check in the goacc kernels testcases. Committed to gomp-4_0-branch. Thanks, - Tom Add checks for num_gangs(32) in goacc kernels tests 2015-05-28 Tom de Vries * c-c++-common/goacc/kernels-counter-vars-function-scope.c: Add check for num_gangs (32). * c-c++-co

Re: [PATCH][AARCH64]Use shl for vec_shr_ rtx pattern.

2015-06-02 Thread Marcus Shawcroft
On 2 June 2015 at 10:30, Renlin Li wrote: > Is it Okay for me to backport it to gcc-5? OK provided the patch applies cleanly and there are no regressions. /Marcus > > Regards, > Renlin Li > > > On 30/04/15 16:21, Marcus Shawcroft wrote: >> >> On 30 April 2015 at 12:55, Renlin Li wrote: >> >>> 2

Re: [PATCH 01/35] Introduce new type-based pool allocator.

2015-06-02 Thread Andreas Schwab
In file included from ../../gcc/stmt.c:78:0: ../../gcc/alloc-pool.h: In function 'void expand_sjlj_dispatch_table(rtx, vec)': ../../gcc/alloc-pool.h:303:4: error: 'case_node_pool.pool_allocator:\ :m_block_size' may be used uninitialized in this function [-Werror=maybe-uninit\ ialized] block = X

Re: [gomp4] Worker-single predication

2015-06-02 Thread Thomas Schwinge
Hi Bernd! On Mon, 1 Jun 2015 17:58:51 +0200, Bernd Schmidt wrote: > This extends the previous vector-single support to also handle > worker-level predication. Thanks! > --- gcc/omp-low.c (revision 223974) > +++ gcc/omp-low.c (working copy) > +/* Allocate storage for OpenACC worker th

[PATCH]: Neaten df_scan_start_dump dump

2015-06-02 Thread Uros Bizjak
Hello! 2015-06-02 Uros Bizjak * df-scan.c (df_scan_start_dump): Add space between regno and regname. Tested on x86_64-linux-gnu, committed to mainline SVN. Uros. Index: df-scan.c === --- df-scan.c (revision 224011) +++ df

Re: [PATCH, AARCH64] make stdarg functions work with +nofp

2015-06-02 Thread Kyrill Tkachov
Hi James, Jim, On 02/06/15 10:42, James Greenhalgh wrote: On Sat, May 23, 2015 at 12:24:00AM +0100, Jim Wilson wrote: The compiler currently ICEs when compiling a stdarg function with +nofp, as reported in PR 66258. The aarch64.md file disables FP instructions using TARGET_FLOAT, which support

Re: [PATCH, AARCH64] make stdarg functions work with +nofp

2015-06-02 Thread James Greenhalgh
On Tue, Jun 02, 2015 at 11:38:29AM +0100, Kyrill Tkachov wrote: > Hi James, Jim, > > On 02/06/15 10:42, James Greenhalgh wrote: > > On Sat, May 23, 2015 at 12:24:00AM +0100, Jim Wilson wrote: > >> The compiler currently ICEs when compiling a stdarg function with > >> +nofp, as reported in PR 66258

Re: C++ PATCH for c++/44282 (ia32 calling convention attributes and mangling)

2015-06-02 Thread Uros Bizjak
On Tue, Jun 2, 2015 at 9:26 AM, Uros Bizjak wrote: > Hello! > >>PR c++/44282 >>gcc/cp/ >>* mangle.c (attr_strcmp): New. >>(write_CV_qualifiers_for_type): Also write out attributes that >>affect type identity. >>(write_type): Strip all attributes after writing qualifiers. >>

Re: [gomp4] Worker-single predication

2015-06-02 Thread Thomas Schwinge
Hi Bernd! On Mon, 1 Jun 2015 17:58:51 +0200, Bernd Schmidt wrote: > This extends the previous vector-single support to also handle > worker-level predication. [...] This causes the following regressions; would you please have a look? [-PASS:-]{+FAIL: g++.dg/goacc/template.C -std=c++11 (i

Re: [PATCH 15/16] gcc: Use libgas and libld within the driver

2015-06-02 Thread Trevor Saunders
On Tue, Jun 02, 2015 at 10:31:53AM +0200, Richard Biener wrote: > On Mon, Jun 1, 2015 at 11:04 PM, David Malcolm wrote: > > This patch adds the ability for gcc to be configured with: > > --with-embedded-as > > --with-embedded-ld > > If so, invocations of "as" and "ld" are detected in the gcc d

[patch] Document resolved DRs in libstdc++ manual

2015-06-02 Thread Jonathan Wakely
This replaces our local copies of the LWG issues lists with the latest revisions (from http://www.open-std.org/jtc1/sc22/wg21/docs/lwg93.zip) and updates https://gcc.gnu.org/onlinedocs/libstdc++/manual/bugs.html#manual.intro.status.bugs.iso to document some of the DRs we've implemented in the last

[PATCH 1/2] Memory statistics enhancement.

2015-06-02 Thread mliska
Hi. Following 2 patches improve memory statistics infrastructure. First one ports pool allocator to the new infrastructure. And the second one makes column alignment properly. Both can bootstrap on x86_64-linux-pc and survive regression tests. Ready for trunk? Thank you, Martin Port pool-alloca

[PATCH 2/2] Fix memory report layout at various places.

2015-06-02 Thread mliska
gcc/ChangeLog: 2015-06-02 Martin Liska * alloc-pool.h (struct pool_usage): Correct space padding. * ggc-page.c (ggc_print_statistics): Align columns in a report. * mem-stats.h (struct mem_usage): Add argument to print_dash_line. * tree.c (dump_tree_statistics):

[patch] Update ABI versioning info in libstdc++ manual

2015-06-02 Thread Jonathan Wakely
Committed to trunk, will also commit to the gcc-5-branch too. commit 0d264889b71aa29214f5414b707f8ba5735abe20 Author: Jonathan Wakely Date: Tue Jun 2 12:17:09 2015 +0100 * doc/xml/manual/abi.xml: Document versioning for 5.1.0 release. * doc/html/manual/*: Regenerate. diff --git a/li

Re: C++ PATCH for c++/44282 (ia32 calling convention attributes and mangling)

2015-06-02 Thread Uros Bizjak
On Tue, Jun 2, 2015 at 1:03 PM, Uros Bizjak wrote: > On Tue, Jun 2, 2015 at 9:26 AM, Uros Bizjak wrote: >> Hello! >> >>>PR c++/44282 >>>gcc/cp/ >>>* mangle.c (attr_strcmp): New. >>>(write_CV_qualifiers_for_type): Also write out attributes that >>>affect type identity. >>>(

[PR libgomp/65742, PR middle-end/66332] XFAIL acc_on_device compile-time evaluation (was: acc_on_device for device_type_host_nonshm)

2015-06-02 Thread Thomas Schwinge
Hi! On Thu, 7 May 2015 19:32:26 +0100, Julian Brown wrote: > On Fri, 17 Apr 2015 15:16:19 +0200 > Jakub Jelinek wrote: > > > On Tue, Apr 14, 2015 at 05:43:26PM +0200, Thomas Schwinge wrote: > > > Really, acc_on_device is implemented as a compiler builtin (which > > > is just disabled for a few

[PATCH] Remove stray cleanup-tree-dump

2015-06-02 Thread Richard Biener
Committed. Seems to cause half of the vectorizer tests to be dropped and test-summary breaking for me. Richard. 2015-06-02 Richard Biener * gcc.dg/vect/vect-outer-simd-1.c: Remove stray cleanup-tree-dump. Index: gcc/testsuite/gcc.dg/vect/vect-outer-simd-1.c

Re: [PATCH 15/16] gcc: Use libgas and libld within the driver

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 1:06 PM, Trevor Saunders wrote: > On Tue, Jun 02, 2015 at 10:31:53AM +0200, Richard Biener wrote: >> On Mon, Jun 1, 2015 at 11:04 PM, David Malcolm wrote: >> > This patch adds the ability for gcc to be configured with: >> > --with-embedded-as >> > --with-embedded-ld >>

Re: [PATCH] Fix PR65549, avoid force_decl_die in late compilation

2015-06-02 Thread Jason Merrill
OK. Jason

Re: [patch] consolidate some includes into coretypes.h

2015-06-02 Thread Andrew MacLeod
On 06/02/2015 04:26 AM, Richard Biener wrote: On Mon, Jun 1, 2015 at 11:02 PM, Andrew MacLeod wrote: Bootstraps from scratch on x86_64-unknown-linux-gnu with no new test regressions. I also built it on all the config-list.mk targets with no additional compilation errors. OK for trunk? Gener

Re: [wwwdocs] Buildstat update for 4.9

2015-06-02 Thread Gerald Pfeifer
On Mon, 1 Jun 2015, Tom G. Christensen wrote: > Testresults for 4.9.2: > s390-ibm-linux-gnu (new) Applied as well, thanks, Tom! Gerald

Re: [wwwdocs] Buildstat update for 4.8

2015-06-02 Thread Gerald Pfeifer
On Mon, 1 Jun 2015, Tom G. Christensen wrote: > Latest results for 4.8.x Applied, thanks Tom! Gerald

Re: [PATCH, 6/8] Add pass_copy_prop in pass_oacc_kernels

2015-06-02 Thread Tom de Vries
On 22-04-15 09:42, Richard Biener wrote: This patch adds pass_loop_ccp to pass group pass_oacc_kernels. > > > > > >We need this pass to simplify the loop body, and allow pass_parloops to detect > > >that loop iterations are independent. > > > > > > >As suggested here (https://gcc.gnu.org/ml/gcc

Re: C++ PATCH for c++/44282 (ia32 calling convention attributes and mangling)

2015-06-02 Thread Jason Merrill
On 06/02/2015 07:34 AM, Uros Bizjak wrote: Unfortunately, something is wrong with the testcase itself: FAIL: g++.dg/abi/mangle-regparm.C -std=c++98 (test for excess errors) WARNING: g++.dg/abi/mangle-regparm.C -std=c++98 compilation failed to produce executable FAIL: g++.dg/abi/mangle-regparm.

[PINGv9][PATCH] ASan on unaligned accesses

2015-06-02 Thread Marat Zakirov
On 05/26/2015 05:03 PM, Marat Zakirov wrote: On 05/20/2015 10:01 AM, Marat Zakirov wrote: On 05/12/2015 02:16 PM, Marat Zakirov wrote: On 04/07/2015 03:22 PM, Jakub Jelinek wrote: How are the automatic misaligned variables different from say heap allocated ones, or global vars etc.? No di

Re: [wwwdocs] Buildstat update for 5.1

2015-06-02 Thread Gerald Pfeifer
On Mon, 1 Jun 2015, Tom G. Christensen wrote: > Latest results for 5.1.x Thank you, Tom. This is online as well. Gerald

Re: [patch] consolidate some includes into coretypes.h

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 2:34 PM, Andrew MacLeod wrote: > On 06/02/2015 04:26 AM, Richard Biener wrote: >> >> On Mon, Jun 1, 2015 at 11:02 PM, Andrew MacLeod >> wrote: >>> >>> >>> Bootstraps from scratch on x86_64-unknown-linux-gnu with no new test >>> regressions. I also built it on all the confi

Re: [PATCH, 4/8] Add pass_tree_loop_{init,done} to pass_oacc_kernels

2015-06-02 Thread Tom de Vries
On 22-04-15 09:40, Richard Biener wrote: On Tue, 21 Apr 2015, Thomas Schwinge wrote: Hi! On Tue, 25 Nov 2014 12:29:28 +0100, Tom de Vries wrote: On 15-11-14 18:21, Tom de Vries wrote: On 15-11-14 13:14, Tom de Vries wrote: I'm submitting a patch series with initial support for the oacc ker

Re: [PATCH 01/35] Introduce new type-based pool allocator.

2015-06-02 Thread Martin Liška
On 06/02/2015 11:48 AM, Andreas Schwab wrote: > In file included from ../../gcc/stmt.c:78:0: > ../../gcc/alloc-pool.h: In function 'void expand_sjlj_dispatch_table(rtx, > vec ree_node*>)': > ../../gcc/alloc-pool.h:303:4: error: > 'case_node_pool.pool_allocator:\ > :m_block_size' may be used unini

Re: [PATCH][Testsuite] Disable tests with dg-require-fork for simulated targets

2015-06-02 Thread Alan Lawrence
Christophe Lyon wrote: On 18 May 2015 at 20:25, Mike Stump wrote: On May 18, 2015, at 8:01 AM, Alan Lawrence wrote: Simulators such as qemu report the presence of fork (it's in glibc) but generally do not support synchronization primitives between threads, so any tests using fork are unreli

Re: [PATCH 1/2] Memory statistics enhancement.

2015-06-02 Thread Jeff Law
On 06/01/2015 10:16 AM, mliska wrote: Hi. Following 2 patches improve memory statistics infrastructure. First one ports pool allocator to the new infrastructure. And the second one makes column alignment properly. Both can bootstrap on x86_64-linux-pc and survive regression tests. Ready for tr

Re: [PATCH, 4/8] Add pass_tree_loop_{init,done} to pass_oacc_kernels

2015-06-02 Thread Richard Biener
On Tue, 2 Jun 2015, Tom de Vries wrote: > On 22-04-15 09:40, Richard Biener wrote: > > On Tue, 21 Apr 2015, Thomas Schwinge wrote: > > > > > Hi! > > > > > > On Tue, 25 Nov 2014 12:29:28 +0100, Tom de Vries > > > wrote: > > > > On 15-11-14 18:21, Tom de Vries wrote: > > > > > On 15-11-14 13:14,

Re: [PATCH 2/2] Fix memory report layout at various places.

2015-06-02 Thread Jeff Law
On 06/01/2015 10:36 AM, mliska wrote: gcc/ChangeLog: 2015-06-02 Martin Liska * alloc-pool.h (struct pool_usage): Correct space padding. * ggc-page.c (ggc_print_statistics): Align columns in a report. * mem-stats.h (struct mem_usage): Add argument to print_dash_line.

Re: [PATCH 01/35] Introduce new type-based pool allocator.

2015-06-02 Thread Richard Biener
On Tue, Jun 2, 2015 at 3:52 PM, Martin Liška wrote: > On 06/02/2015 11:48 AM, Andreas Schwab wrote: >> In file included from ../../gcc/stmt.c:78:0: >> ../../gcc/alloc-pool.h: In function 'void expand_sjlj_dispatch_table(rtx, >> vec> ree_node*>)': >> ../../gcc/alloc-pool.h:303:4: error: >> 'case_

Re: C++ PATCH to handling of exception specs in system headers

2015-06-02 Thread Rainer Orth
Jason Merrill writes: > On 06/01/2015 11:34 AM, Rainer Orth wrote: >> Isn't this about global vs. std namespace? > > Probably. Does making the declaration in the testcase extern "C" help? It does indeed, and the test still passes on Linux. Rainer -- --

Re: [patch] consolidate some includes into coretypes.h

2015-06-02 Thread Andrew MacLeod
On 06/02/2015 09:30 AM, Richard Biener wrote: On Tue, Jun 2, 2015 at 2:34 PM, Andrew MacLeod wrote: On 06/02/2015 04:26 AM, Richard Biener wrote: On Mon, Jun 1, 2015 at 11:02 PM, Andrew MacLeod wrote: Bootstraps from scratch on x86_64-unknown-linux-gnu with no new test regressions. I also

[PATCH] Update check after force_const_mem call in the plus_constant function to see if the value returned is not a NULL_RTX.

2015-06-02 Thread Andrew Bennett
Hi, In the plus_constant function in explow.c the code to update a constant pool value does not deal with the case where the value returned from force_const_mem is a NULL_RTX. This occurs for the MIPS target because its cannot_force_const_mem target function does not allow constants (so that t

Re: [ping**2] Handle MULTILIB_REUSE in auto-generated SYSROOT_SUFFIX_SPEC macro

2015-06-02 Thread Joseph Myers
On Tue, 19 May 2015, Sandra Loosemore wrote: > Re-pinging a patch from last year that never got reviewed: > > https://gcc.gnu.org/ml/gcc-patches/2014-06/msg00511.html OK. -- Joseph S. Myers jos...@codesourcery.com

Re: [RFC / CFT] PR c++/66192 - Remove TARGET_RELAXED_ORDERING and use load acquires.

2015-06-02 Thread David Edelsohn
On Fri, May 29, 2015 at 9:18 AM, Ramana Radhakrishnan wrote: > - Turns build_atomic_load into build_atomic_load_byte in order > to do an atomic load of 1 byte instead of a full word atomic load. > - Restructures get_guard_cond to decide whether to use an atomic load > or a standard load depen

Re: [C patch] PR49551

2015-06-02 Thread Joseph Myers
On Sun, 31 May 2015, Prathamesh Kulkarni wrote: > However DECL_COMMON (olddecl) is still incorrectly set to 1 after the > call to memcpy(), while DECL_COMMON (olddecl) should be 0 for the > above test-case. This patch tries to correctly adjust DECL_COMMON > (newdecl) before it is copied into oldde

Re: [C/C++ PATCH] Implement -Wshift-overflow (PR c++/55095)

2015-06-02 Thread Marek Polacek
On Tue, Jun 02, 2015 at 09:53:14AM +0100, Richard Sandiford wrote: > unsigned int min_prec = (wi::min_precision (op0, SIGNED) > + TREE_INT_CST_LOW (op1)); > bool overflowed = min_prec > TYPE_PRECISION (type0); > if (overflowed && c_inhibit_evaluation_warnings == 0) >

Re: [PATCH 1/2] Memory statistics enhancement.

2015-06-02 Thread Martin Liška
On 06/02/2015 03:58 PM, Jeff Law wrote: > On 06/01/2015 10:16 AM, mliska wrote: >> Hi. >> >> Following 2 patches improve memory statistics infrastructure. First one >> ports pool allocator to the new infrastructure. And the second one makes >> column alignment properly. >> >> Both can bootstrap on

Re: [PATCH] Remove stray cleanup-tree-dump

2015-06-02 Thread Bernhard Reutner-Fischer
On June 2, 2015 2:08:47 PM GMT+02:00, Richard Biener wrote: > >Committed. Seems to cause half of the vectorizer tests to be dropped >and test-summary breaking for me. Right. There should be no cleanup-tree-dump left on trunk. Thanks, > >Richard. > >2015-06-02 Richard Biener > > * gcc.

Re: [PATCH, 4/8] Add pass_tree_loop_{init,done} to pass_oacc_kernels

2015-06-02 Thread Tom de Vries
On 02-06-15 15:58, Richard Biener wrote: Btw, I wonder why you don't organize the oacc-kernel passes in a new simple-IPA group after pass_local_optimization_passes. I've placed the pass group as early as possible (meaning after ealias) and put passes in front only when that served a purpose fo

Re: [PATCH testsuite]Refine scanning string in pr65447.c to support small address offset target

2015-06-02 Thread Bernhard Reutner-Fischer
On June 2, 2015 5:56:13 AM GMT+02:00, Bin Cheng wrote: >Hi, >On some arm processors, the offset supported in addressing modes is >very >small. As a result, the dozens of address induction variables will be >grouped into several groups, rather than only one as on armv7/8. This >patch >refines sca

Re: [PATCH] Fix eipa_sra AAPCS issue (PR target/65956)

2015-06-02 Thread Richard Earnshaw
On 01/06/15 13:07, Jakub Jelinek wrote: > On Thu, May 07, 2015 at 12:16:32PM +0100, Alan Lawrence wrote: >> So for my two cents, or perhaps three: > > Any progress on this PR? > A P1 bug that affects several packages stalled for a month isn't a very good > thing... (not to mention broken profiledb

RFA: RL78:

2015-06-02 Thread Nick Clifton
Hi DJ, This patch contains two small improvements for the RL78 compiler: 1. A peephole to match: movwax, ! movwbc, ax callbc with: movwax, ! callax 2. A change to avoid pushing the frame pointer register in an interru

Re: [PATCH] Fix eipa_sra AAPCS issue (PR target/65956)

2015-06-02 Thread Alan Lawrence
Richard Earnshaw wrote: On 01/06/15 13:07, Jakub Jelinek wrote: On Thu, May 07, 2015 at 12:16:32PM +0100, Alan Lawrence wrote: So for my two cents, or perhaps three: Any progress on this PR? A P1 bug that affects several packages stalled for a month isn't a very good thing... (not to mention b

Re: [Patch, fortran, PR44672, v6] [F08] ALLOCATE with SOURCE and no array-spec

2015-06-02 Thread Mikael Morin
Hello Andre, comments below (out of order, sorry). Le 29/05/2015 13:46, Andre Vehreschild a écrit : > Hi Mikael, > > comments inline below: > > On Thu, 28 May 2015 20:06:57 +0200 > Mikael Morin wrote: > >> Le 28/05/2015 17:29, Andre Vehreschild a écrit : >>> *** resolve_allocate_e

Re: [RFA] Factor conversion out of COND_EXPR using match.pd pattern

2015-06-02 Thread Jeff Law
On 05/30/2015 02:33 AM, Bernhard Reutner-Fischer wrote: On May 30, 2015 6:22:59 AM GMT+02:00, Jeff Law wrote: +/* { dg-final { cleanup-tree-dump "original" } } */ Please drop this cleanup dg-final, trunk now does this automatically. Yea, figured that'd need to be fixed up after your cleanups.

Re: [PATCH][AArch64][PR 66136] rewrite geniterators.sh in awk

2015-06-02 Thread Szabolcs Nagy
On 01/06/15 13:55, Marcus Shawcroft wrote: > On 18 May 2015 at 15:57, Szabolcs Nagy wrote: >> Rewrote the generator script in awk, to avoid dealing with >> sed portability issues. >> >> gcc/Changelog: >> >> 2015-05-18 Szabolcs Nagy >> >> PR target/66136 >> * config/aarch64/genit

Re: [PATCH 1/2] Memory statistics enhancement.

2015-06-02 Thread Jeff Law
On 06/02/2015 09:05 AM, Martin Liška wrote: On 06/02/2015 03:58 PM, Jeff Law wrote: On 06/01/2015 10:16 AM, mliska wrote: Hi. Following 2 patches improve memory statistics infrastructure. First one ports pool allocator to the new infrastructure. And the second one makes column alignment proper

Re: Teach gimple_canonical_types_compatible_p about incomplete types

2015-06-02 Thread Jan Hubicka
> On Sat, 30 May 2015, Jan Hubicka wrote: > > > Joseph, does the attached testcase make sense for you? Is it defined? It is > > my > > first attempt to really interpret C standard to detail. > > I suppose it's defined if unsigned int is the type chosen as compatible > with that enum. The test

Re: [RFA] Factor conversion out of COND_EXPR using match.pd pattern

2015-06-02 Thread Jeff Law
On 06/01/2015 05:07 AM, Richard Biener wrote: +(simplify + (cond @0 (convert @1) INTEGER_CST@2) + (if (INTEGRAL_TYPE_P (TREE_TYPE (@1)) + && COMPARISON_CLASS_P (@0) + && int_fits_type_p (@2, TREE_TYPE (@1)) + && ((operand_equal_p (TREE_OPERAND (@0, 0), @2, 0) + && op

Re: [RFA] Factor conversion out of COND_EXPR using match.pd pattern

2015-06-02 Thread Jeff Law
On 06/01/2015 04:55 AM, Richard Biener wrote: On Sat, May 30, 2015 at 11:11 AM, Marc Glisse wrote: (only commenting on the technique, not on the transformation itself) +(simplify + (cond @0 (convert @1) INTEGER_CST@2) + (if (INTEGRAL_TYPE_P (TREE_TYPE (@1)) + && COMPARISON_CLASS_P (@0

[gomp4.1] Support for OpenMP 4.1 privatization of non-static data members in methods

2015-06-02 Thread Jakub Jelinek
Hi! The OpenMP 4.1 standard is going to allow privatization of non-static data members separately from the containing class in methods. The behavior of access to those members in the OpenMP regions where they are privatized through this-> is unspecified, I chose to let to privatize only the acces

[PATCH] PR fortran/66380 -- Remove assert() to allow error condition

2015-06-02 Thread Steve Kargl
The attached patch returns an assert() and returns NULL during the simplification of a bad RESHAPE call. This allows gfortran to correctly issue and error message. Regression tested on trunk. OK to commit. 2015-05-27 Steven G. Kargl * simplify.c (gfc_simplify_reshape): Convert assert

Re: Teach gimple_canonical_types_compatible_p about incomplete types

2015-06-02 Thread Joseph Myers
On Tue, 2 Jun 2015, Jan Hubicka wrote: > > On Sat, 30 May 2015, Jan Hubicka wrote: > > > > > Joseph, does the attached testcase make sense for you? Is it defined? It > > > is my > > > first attempt to really interpret C standard to detail. > > > > I suppose it's defined if unsigned int is the t

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread David Edelsohn
On Fri, May 22, 2015 at 5:24 PM, Michael Meissner wrote: > This patch is the first in a series of patches that will eventually add > support > for IEEE 128-bit floating point support to the PowerPC GCC compiler. At the > current time, we do not plan to change the default for long double. I adde

Re: Teach gimple_canonical_types_compatible_p about incomplete types

2015-06-02 Thread Jan Hubicka
> > thanks. I did not notice we have -fshort-enum by default targets. I suppose > > we want: > > /* { dg-xfail-if "" { arm-eabi-* } { "*" } { "" } } */ > > Well, not that (which matches "eabi" against the vendor part of the > triplet), but skip for the short_enums effective-target keyword. Ok. D

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread Joseph Myers
Is the use of FRACTIONAL_FLOAT_MODE to avoid iterations over floating-point modes including these modes when they shouldn't, as discussed previously? If so, how do you deal (in subsequent patches?) with iterations that *should* include these modes? In particular, where libgcc uses __LIBGCC__*

Re: [gomp4] Worker-single predication

2015-06-02 Thread Cesar Philippidis
On 06/01/2015 08:58 AM, Bernd Schmidt wrote: > This extends the previous vector-single support to also handle > worker-level predication. We can't use the shfl insn because workers > will live across multiple warps, so we use a location in memory to > broadcast the branch target. > This also fixes

[Ping] Re: [C++ Patch[ PR 66130

2015-06-02 Thread Paolo Carlini
Hi, gently pinging the below. Should be largely uncontroversial... On 05/18/2015 06:29 PM, Paolo Carlini wrote: Hi, Manuel did most of the work for this rather simple issue filed by Tom: essentially, invalid_nonstatic_memfn_p gets a location_t parameter which is used to pass the location of

Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt=

2015-06-02 Thread Sriraman Tallam
On Mon, Jun 1, 2015 at 1:33 PM, Ramana Radhakrishnan wrote: > On Mon, Jun 1, 2015 at 7:55 PM, Sriraman Tallam wrote: >> On Mon, Jun 1, 2015 at 11:41 AM, Ramana Radhakrishnan >> wrote: >>> On Mon, Jun 1, 2015 at 7:01 PM, Sriraman Tallam wrote: On Mon, Jun 1, 2015 at 1:24 AM, Ramana Radhakri

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread Michael Meissner
On Tue, Jun 02, 2015 at 01:43:08PM -0400, David Edelsohn wrote: > Mike, > > What is the purpose of the TARGET_LONG_DOUBLE_128 change in > rs6000_hard_regno_mode_ok()? > > + /* If we don't allow 128-bit binary floating point, disallow the 128-bit > + types from going in any registers. Simila

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread Michael Meissner
On Tue, Jun 02, 2015 at 05:55:10PM +, Joseph Myers wrote: > Is the use of FRACTIONAL_FLOAT_MODE to avoid iterations over > floating-point modes including these modes when they shouldn't, as > discussed previously? > > If so, how do you deal (in subsequent patches?) with iterations that > *s

Heads-up: testsuite: removed cleanup-ipa-dump, cleanup-rtl-dump,cleanup-tree-dump, cleanup-dump, cleanup-saved-temps

2015-06-02 Thread Bernhard Reutner-Fischer
[just a try to keep fallout low] On June 2, 2015 5:38:06 PM GMT+02:00, Bernhard Reutner-Fischer wrote: >On June 2, 2015 2:08:47 PM GMT+02:00, Richard Biener > wrote: >> >>Committed. Seems to cause half of the vectorizer tests to be dropped >>and test-summary breaking for me. As a gentle remind

Re: [PATCH] PR fortran/66380 -- Remove assert() to allow error condition

2015-06-02 Thread FX
> 2015-05-27 Steven G. Kargl > > * simplify.c (gfc_simplify_reshape): Convert assert into returning > NULL, which triggers an error condition. OK to commit.

Re: [PR65768] Check rtx_cost when propagating constant

2015-06-02 Thread Jeff Law
On 05/31/2015 08:20 PM, Kugan wrote: On 30/05/15 14:54, Jeff Law wrote: On 05/29/2015 12:32 AM, Kugan wrote: PR target/65768 * cprop.c (try_replace_reg): Check cost of constants before propagating. I should have also noted, fresh bootstrap & regression test is needed too. Than

RE: [Patch MIPS] Enable TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook

2015-06-02 Thread Matthew Fortune
Robert Suchanek writes: > diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c > index c3755f5..976f844 100644 > --- a/gcc/config/mips/mips.c > +++ b/gcc/config/mips/mips.c > @@ -19415,6 +19415,21 @@ mips_lra_p (void) > { >return mips_lra_flag; > } > + > +/* Implement TARGET_IRA_CHAN

Re: [patch 10/10] debug-early merge: compiler proper

2015-06-02 Thread Aldy Hernandez
On 06/02/2015 04:11 AM, Richard Biener wrote: I suppose we can change things this way as a followup (as it needs some work) Ok. I cleaned things up using variably_modified_type_p() as you did, instead of the INTEGER_CST nonsense. Attached are the latest dwarf2out.c changes against mainline

Re: [C/C++ PATCH] Implement -Wshift-overflow (PR c++/55095) (take 2)

2015-06-02 Thread Marek Polacek
On Fri, May 29, 2015 at 08:49:58PM +, Joseph Myers wrote: > On Mon, 25 May 2015, Marek Polacek wrote: > > > +/* Warn if signed left shift overflows. Note that we don't warn > > + about left-shifting 1 into the sign bit; cf. > > + > >

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread David Edelsohn
On Tue, Jun 2, 2015 at 2:27 PM, Michael Meissner wrote: > On Tue, Jun 02, 2015 at 01:43:08PM -0400, David Edelsohn wrote: >> Mike, >> >> What is the purpose of the TARGET_LONG_DOUBLE_128 change in >> rs6000_hard_regno_mode_ok()? >> >> + /* If we don't allow 128-bit binary floating point, disallow

Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt=

2015-06-02 Thread Bernhard Reutner-Fischer
On June 2, 2015 8:15:42 PM GMT+02:00, Sriraman Tallam wrote: [] >I have now modified this patch. > >This patch does two things: > >1) Adds new generic function attribute "no_plt" that is similar in >functionality to -fno-plt except that it applies only to calls to >functions that are marked wi

Re: [RFC][PATCH][X86_64] Eliminate PLT stubs for specified external functions via -fno-plt=

2015-06-02 Thread Sriraman Tallam
On Tue, Jun 2, 2015 at 12:32 PM, Bernhard Reutner-Fischer wrote: > On June 2, 2015 8:15:42 PM GMT+02:00, Sriraman Tallam > wrote: > [] > >>I have now modified this patch. >> >>This patch does two things: >> >>1) Adds new generic function attribute "no_plt" that is similar in >>functionality to

Re: [PATCH] Update check after force_const_mem call in the plus_constant function to see if the value returned is not a NULL_RTX.

2015-06-02 Thread Jeff Law
On 06/02/2015 08:19 AM, Andrew Bennett wrote: Hi, In the plus_constant function in explow.c the code to update a constant pool value does not deal with the case where the value returned from force_const_mem is a NULL_RTX. This occurs for the MIPS target because its cannot_force_const_mem targe

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread Joseph Myers
On Tue, 2 Jun 2015, Michael Meissner wrote: > On Tue, Jun 02, 2015 at 05:55:10PM +, Joseph Myers wrote: > > Is the use of FRACTIONAL_FLOAT_MODE to avoid iterations over > > floating-point modes including these modes when they shouldn't, as > > discussed previously? > > > > If so, how do you

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread David Edelsohn
On Tue, Jun 2, 2015 at 4:14 PM, Joseph Myers wrote: > On Tue, 2 Jun 2015, Michael Meissner wrote: > >> On Tue, Jun 02, 2015 at 05:55:10PM +, Joseph Myers wrote: >> > Is the use of FRACTIONAL_FLOAT_MODE to avoid iterations over >> > floating-point modes including these modes when they shouldn't

Re: [PATCH], Add IEEE 128-bit floating point to PowerPC, patch #1

2015-06-02 Thread Michael Meissner
On Tue, Jun 02, 2015 at 08:14:12PM +, Joseph Myers wrote: > On Tue, 2 Jun 2015, Michael Meissner wrote: > > > On Tue, Jun 02, 2015 at 05:55:10PM +, Joseph Myers wrote: > > > Is the use of FRACTIONAL_FLOAT_MODE to avoid iterations over > > > floating-point modes including these modes when

  1   2   >