[PING, testsuite] Add dot-file scan to test-case

2016-04-16 Thread Tom de Vries
[ was: PATCH, PR70161] Fix fdump-ipa-all-graph ] On 18/03/16 10:35, Tom de Vries wrote: On 18/03/16 10:23, Tom de Vries wrote: On 15/03/16 12:37, Richard Biener wrote: On Mon, 14 Mar 2016, Tom de Vries wrote: Hi, this patch fixes PR70161, a 4.9/5/6 regression. Currently when using -fdump-i

[PATCH] Fix PR c++/27100

2016-04-16 Thread Patrick Palka
The problem here is that duplicate_decls doesn't preserve the DECL_PENDING_INLINE_P flag of the old decl in the new decl. This happens only when a friend function is defined inside a class and then redeclared. The initial definition sets the DECL_PENDING_INLINE_P flag, but the subsequent redeclar

[RFC][PR61839]Convert CST BINOP COND_EXPR to COND_EXPR ? (CST BINOP 1) : (CST BINOP 0)

2016-04-16 Thread kugan
As explained in PR61839, Following difference results in extra instructions: - c = b != 0 ? 486097858 : 972195717; + c = a + 972195718 >> (b != 0); As suggested in PR, attached patch converts CST BINOP COND_EXPR to COND_EXPR ? (CST BINOP 1) : (CST BINOP 0). Bootstrapped and regression teste

[PATCH] Fix missed DSE opportunity with operator delete.

2016-04-16 Thread Mikhail Maltsev
Hi, all! Currently GCC can optimize away the following dead store: void test(char *x) { *x = 1; free(x); } but not this one (Clang handles both cases): void test(char *x) { *x = 1; delete x; } The attached patch fixes this by introducing a new __attribute__((free)). I first tried to ad

Re: [wwwdocs,Java] java/index.html -- fix formatting on gcc.gnu.org

2016-04-16 Thread Gerald Pfeifer
On Sun, 10 Apr 2016, Andrew Hughes wrote: >> That said, looking at the page, and how since 2005 nearly all changes >> have been maintainance ones from me, is it really worthwhile keeping >> this (short of historic reasons)? > I guess the next news will be the removal of GCJ during the > GCC 7 devel

[PATCH] lto-streamer.h: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE.

2016-04-16 Thread Khem Raj
gcc/: 2016-04-16 Khem Raj * lto-streamer.h: Include gimple.h for LAST_AND_UNUSED_GIMPLE_CODE. Fixes build errors e.g. | ../../../../../../../work-shared/gcc-6.0.0-r0/git/gcc/lto-streamer.h:159:34: error: 'LAST_AND_UNUSED_GIMPLE_CODE' was not declared in this scope |LTO_bb0 = 1 +

Fix pure/const discovery WRT interposition part 2

2016-04-16 Thread Jan Hubicka
Hi, this patch updates ipa-pure-const.c to only propagate PURE flag across calls that does not bind to local defs and are not explicitly declared const. This gets memory state into shape that the callee produced by other compiler and still accessing memory is safe. We need similar logic for -fnon-

Re: [PATCH 1/4] Add gcc-auto-profile script

2016-04-16 Thread Andi Kleen
Andi Kleen writes: Ping for the patch series! > From: Andi Kleen > > Using autofdo is currently something difficult. It requires using the > model specific branches taken event, which differs on different CPUs. > The example shown in the manual requires a special patched version of > perf that

Re: [PATCH, libgomp] Rewire OpenACC async

2016-04-16 Thread Chung-Lin Tang
Ping. On 2016/4/8 07:02 PM, Chung-Lin Tang wrote: > Ping. > > On 2016/3/29 5:48 PM, Chung-Lin Tang wrote: >> I've updated this patch for trunk (as attached), and re-tested without >> regressions. This patch is still a fix for >> libgomp.oacc-c-c++-common/asyncwait-1.c, >> which FAILs right now.

Re: [PATCH 1/4, libgomp] Resolve deadlock on plugin exit

2016-04-16 Thread Chung-Lin Tang
Ping. On 2016/3/21 06:21 PM, Chung-Lin Tang wrote: > Hi, this is the set of patches from > https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01411.html > revised again, this time also with audits for the HSA plugin. > > The changes are pretty minor, mainly that the unload_image hook now > receives s

Re: [PATCH, libgomp] Fix deadlock in acc_set_device_type

2016-04-16 Thread Chung-Lin Tang
Ping. On 2016/3/28 05:45 PM, Chung-Lin Tang wrote: > Hi Jakub, there's a path for deadlock on acc_device_lock when going > through the acc_set_device_type() OpenACC library function. > Basically, the gomp_init_targets_once() function should not be > called with that held. The attached patch moves

Re: [PATCH 3/4, libgomp] Resolve deadlock on plugin exit, HSA plugin parts

2016-04-16 Thread Chung-Lin Tang
On 2016/3/29 09:35 PM, Martin Jambor wrote: > Hi, > > On Sun, Mar 27, 2016 at 06:26:29PM +0800, Chung-Lin Tang wrote: >> On 2016/3/25 上午 02:40, Martin Jambor wrote: >>> On the whole, I am fine with the patch but there are two issues: >>> >>> First, and generally, when you change the return type of