Re: [PING][PATCH] Remove incorrect warning for kernels copy clause

2016-04-08 Thread Tom de Vries
On 05/04/16 12:16, Tom de Vries wrote: On 24/03/16 17:59, Tom de Vries wrote: Hi, This patch fixes an incorrect warning for the oacc copy clause. Consider this test-case: ... void foo (void) { int i; #pragma acc kernels { i = 1; } } ... When compiling with -fopenacc -Wuninitia

[PING][PATCH] Remove incorrect warning for kernels copy clause

2016-04-05 Thread Tom de Vries
On 24/03/16 17:59, Tom de Vries wrote: Hi, This patch fixes an incorrect warning for the oacc copy clause. Consider this test-case: ... void foo (void) { int i; #pragma acc kernels { i = 1; } } ... When compiling with -fopenacc -Wuninitialized, we get an 'is used uninitialized'

[PATCH] Remove incorrect warning for kernels copy clause

2016-03-24 Thread Tom de Vries
Hi, This patch fixes an incorrect warning for the oacc copy clause. Consider this test-case: ... void foo (void) { int i; #pragma acc kernels { i = 1; } } ... When compiling with -fopenacc -Wuninitialized, we get an 'is used uninitialized' warning for variable 'i', which is confusi