[Bug middle-end/83423] default_static_chain is sorry for non-nested functions

2017-12-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83423 --- Comment #6 from Tom de Vries --- Author: vries Date: Wed Dec 20 00:46:38 2017 New Revision: 255849 URL: https://gcc.gnu.org/viewcvs?rev=255849&root=gcc&view=rev Log: Don't call targetm.calls.static_chain in non-static function 2017-12-20 T

[Bug middle-end/83423] default_static_chain is sorry for non-nested functions

2017-12-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83423 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libgomp/82391] [openacc] acc_on_device not folded at -O0

2017-12-25 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82391 Tom de Vries changed: What|Removed |Added Attachment #42274|0 |1 is obsolete|

[Bug libgomp/83589] New: [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs

2017-12-25 Thread vries at gcc dot gnu.org
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- At r254929, with cuda 7.5, nvidia driver 384.90 on a Quadro M1200 and GOMP_NVPTX_JIT

[Bug libgomp/83590] New: [nvptx] openacc reduction C regressions

2017-12-25 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- At r254930, with cuda 7.5, nvidia driver 384.90 on a Quadro M1200 and GOMP_NVPTX_JIT=-O0 I observe these new nvptx offloading failures

[Bug libgomp/82391] [openacc] acc_on_device not folded at -O0

2017-12-26 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82391 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #3 from Tom de Vries -

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-26 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #9 from Tom de Vries --- Author: vries Date: Wed Dec 27 07:50:04 2017 New Revision: 256008 URL: https://gcc.gnu.org/viewcvs?rev=256008&root=gcc&view=rev Log: Workaround PR83046 in gang-static-2.c 2017-12-27 Tom de Vries

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-27 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 Tom de Vries changed: What|Removed |Added Target||nvptx --- Comment #10 from Tom de Vries

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-27 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #11 from Tom de Vries --- Rewriting the test-case like this triggers the ICE without -Wreturn-type being active: ... /* { dg-do run { target openacc_nvidia_accel_selected } } */ /* This code uses nvptx inline assembly guarded with acc

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-27 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #12 from Tom de Vries --- Tentative patch: ... diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index ed3df15b143..de5655abbb6 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -,6 +,16 @@ output_offload_tables (void)

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-27 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #13 from Tom de Vries --- Created attachment 42974 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42974&action=edit Tentative patch with testcase Currently doing: - bootstrap and reg test on x86_64, and - build & libgomp regtes

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #14 from Tom de Vries --- (In reply to Tom de Vries from comment #13) > Created attachment 42974 [details] > Tentative patch with testcase > > Currently doing: > - bootstrap and reg test on x86_64, and > - build & libgomp regtest on

[Bug testsuite/83612] New: FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-28 Thread vries at gcc dot gnu.org
Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- For x86_64 -m32 I observed: ... PASS: gcc.dg/ubsan/object-size-9.c -O2 (test for excess errors) PASS: gcc.dg/ubsan/object-size-9.c

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 Tom de Vries changed: What|Removed |Added CC||bernd.edlinger at hotmail dot de --- Com

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 --- Comment #2 from Tom de Vries --- Similar to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64078#c7 (PR64078 - FAIL: c-c++-common/ubsan/object-size-9.c): ... I suppose the output scan fails because of the '' messages. ...

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 --- Comment #3 from Tom de Vries --- Tentative patch, similar to https://gcc.gnu.org/viewcvs?rev=227886&root=gcc&view=rev : ... diff --git a/gcc/testsuite/gcc.dg/ubsan/object-size-9.c b/gcc/testsuite/gcc.dg/ubsan/object-size-9.c index e0a2980..41

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 Tom de Vries changed: What|Removed |Added Keywords||openmp CC|

[Bug c++/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #16 from Tom de Vries --- Created attachment 42977 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42977&action=edit Updated patch, with both openacc and openmp testcase

[Bug libgomp/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #17 from Tom de Vries

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 --- Comment #4 from Tom de Vries --- Author: vries Date: Sat Dec 30 10:31:54 2017 New Revision: 256042 URL: https://gcc.gnu.org/viewcvs?rev=256042&root=gcc&view=rev Log: Fix 'memory cannot be printed' in c-c++-common/ubsan/object-size-9.c 2017-

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 Tom de Vries changed: What|Removed |Added Target Milestone|--- |8.0

[Bug testsuite/83612] FAIL: gcc.dg/ubsan/object-size-9.c -O2 output pattern test

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83612 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libgomp/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 --- Comment #18 from Tom de Vries --- Author: vries Date: Sat Dec 30 17:02:00 2017 New Revision: 256045 URL: https://gcc.gnu.org/viewcvs?rev=256045&root=gcc&view=rev Log: Prune removed funcs from offload table 2017-12-30 Tom de Vries

[Bug libgomp/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 Tom de Vries changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|---

[Bug libgomp/82428] Builtins for openacc gang/worker/vector id/size

2017-12-30 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428 --- Comment #1 from Tom de Vries --- Created attachment 42991 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42991&action=edit Tentative patch, tested on host

[Bug libgomp/82428] Builtins for openacc gang/worker/vector id/size

2018-01-01 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428 Tom de Vries changed: What|Removed |Added Attachment #42991|0 |1 is obsolete|

[Bug libgomp/82428] Builtins for openacc gang/worker/vector id/size

2018-01-01 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > Created attachment 43000 [details] > Updated tentative patch > > Updated tentative patch, tested with nvptx accelerator. Bootstrap and reg-test on x86_64 also wen

[Bug libgomp/83046] ICE in nvptx offloading, C++ compilation of libgomp.oacc-c-c++-common/gang-static-2.c

2018-01-04 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83046 Tom de Vries changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libgomp/82428] Builtins for openacc gang/worker/vector id/size

2018-01-06 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #4 from Tom de Vries -

[Bug testsuite/83737] New: FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-08 Thread vries at gcc dot gnu.org
: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- Fox nvptx, I see the following failure: ... FAIL: gcc.dg/stdint-width-1.c (test for excess errors) ... In more detail

[Bug testsuite/83737] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-08 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 Tom de Vries changed: What|Removed |Added CC||jsm28 at gcc dot gnu.org --- Comment #1 f

[Bug rtl-optimization/83327] Spilling into hard regs not taken into account in lra liveness analysis

2018-01-08 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83327 Tom de Vries changed: What|Removed |Added CC||matthew.fortune at imgtec dot com --- Co

[Bug testsuite/83752] New: gfortran.dg/common_align_2.f90 fails in execution for target with __BIGGEST_ALIGNMENT__ < 8

2018-01-09 Thread vries at gcc dot gnu.org
MED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- The test contains a list of common vars: ... real(8) x, y common i, x, j, y ! { dg-warning "

[Bug other/83737] [nvptx] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-10 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 --- Comment #5 from Tom de Vries --- (In reply to jos...@codesourcery.com from comment #4) > Most configurations (for which the libc used has a working stdint.h) > should probably be using use_gcc_stdint=wrap, so that GCC's stdint.h > includes

[Bug other/83786] New: Add VEC_ORDERED_REMOVE_IF

2018-01-11 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- There's a common pattern of using vec::ordered_remove in a loop to remove some elements, which has O(n^2) complexity. I've written a patch that adds the macro VEC_ORDERED_REMOVE_IF wh

[Bug other/83786] Add VEC_ORDERED_REMOVE_IF

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83786 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #1 from Tom de Vries -

[Bug libgomp/83590] [nvptx] openacc reduction C regressions

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83590 --- Comment #3 from Tom de Vries --- (In reply to Jakub Jelinek from comment #2) > Created attachment 43098 [details] > gcc8-pr83590.patch > Can you give this a spin? Will do.

[Bug debug/83788] New: Add .loc is_stmt support test

2018-01-11 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01631.html : ... Now, perhaps it would be wise to introduce a test for is_stmt support in .loc directives, now that we know there are assemblers that

[Bug target/83790] New: Update nvptx target to work with cuda 9

2018-01-11 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- One issue is mentioned here: https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01318.html . There's a patch, but testing status is unclear.

[Bug testsuite/83791] New: Move tests to libgomp.c-c++-common

2018-01-11 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- The directory libgomp/testsuite/libgomp.c-c++-common was added recently. There are tests in libgomp/testsuite/libgomp.c that are reused in libgomp/testsuite/libgomp.c++ using an

[Bug testsuite/83791] Move tests to libgomp.c-c++-common

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83791 Tom de Vries changed: What|Removed |Added Keywords||openmp, patch --- Comment #1 from Tom de

[Bug libgomp/83792] New: [openacc] Factor out async argument utility functions

2018-01-11 Thread vries at gcc dot gnu.org
Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- The use of enum acc_async_t in libgomp is hard to understand. In order to understand what this means: ... if (async

[Bug libgomp/83792] [openacc] Factor out async argument utility functions

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83792 Tom de Vries changed: What|Removed |Added Keywords||openacc, patch CC|

[Bug libgomp/83795] New: Call atexit (gomp_target_fini) before calling target plugin

2018-01-11 Thread vries at gcc dot gnu.org
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Registering gomp_target_fini for execution at exit before calling a plugin function, makes sure

[Bug libgomp/83795] Call atexit (gomp_target_fini) before calling target plugin

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83795 Tom de Vries changed: What|Removed |Added Keywords||patch --- Comment #1 from Tom de Vries -

[Bug libgomp/83590] [nvptx] openacc reduction C regressions

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83590 --- Comment #4 from Tom de Vries --- (In reply to Tom de Vries from comment #3) > (In reply to Jakub Jelinek from comment #2) > > Created attachment 43098 [details] > > gcc8-pr83590.patch > > > Can you give this a spin? > > Will do. The patch

[Bug libgomp/83590] [nvptx] openacc reduction C regressions

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83590 --- Comment #5 from Tom de Vries --- (In reply to Tom de Vries from comment #4) > [ But I see new failures. I've > investigated the first failure, and it's due to a missing cuda.h, which > seems to have gone missing on my nvidia testing laptop. I

[Bug other/83786] Add VEC_ORDERED_REMOVE_IF

2018-01-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83786 --- Comment #2 from Tom de Vries --- Latest version: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00899.html

[Bug target/83812] New: nvptx-run: error getting kernel result: operation not supported on global/shared address space

2018-01-12 Thread vries at gcc dot gnu.org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- When running make check for an nvptx build (with newlib sources linked in), we get: ... build-gcc/nvptx

[Bug target/83737] [nvptx] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 --- Comment #6 from Tom de Vries --- Author: vries Date: Fri Jan 12 17:36:07 2018 New Revision: 256591 URL: https://gcc.gnu.org/viewcvs?rev=256591&root=gcc&view=rev Log: Set use_gcc_stdint=wrap for nvptx 2018-01-12 Tom de Vries PR t

[Bug target/83738] [avr] Don't save registers in main

2018-01-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83738 Tom de Vries changed: What|Removed |Added CC||vries at gcc dot gnu.org --- Comment #3

[Bug target/83737] [nvptx] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 Tom de Vries changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |vries at gcc dot gnu.org Target

[Bug libgomp/82428] Builtins for openacc gang/worker/vector id/size

2018-01-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82428 --- Comment #5 from Tom de Vries --- Created attachment 43147 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43147&action=edit Updated patch, using new interface New interface (as agreed upon here: https://gcc.gnu.org/ml/gcc-patches/2018-0

[Bug target/83737] [nvptx] FAIL: gcc.dg/stdint-width-1.c (test for excess errors) for with newlib stdint.h

2018-01-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83737 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #3 from Tom de Vries --- (In reply to cesar from comment #0) > I think there > might be other PTX JIT bugs lurking here, because the test program still > works as intended. I can make it fail on trunk, by changing the workaround to i

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #4 from Tom de Vries --- (In reply to cesar from comment #0) > the underlying problem is present > in og7 and impacts da-1.c). That's a failure I did not manage to reproduce. For me, at commit b4dd21b9a1f9f499c613b55225cad689b7928a7

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #1 from Tom de Vries --- Using the patch from PR83920 comment 3 and testing libgomp.oacc-c/c.exp makes the libgomp.oacc-c/c.exp failures of this PR go away. So, this might be a duplicate.

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #5 from Tom de Vries --- This ( PR83589 - "[nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0" ) may be a duplicate.

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #6 from Tom de Vries --- (In reply to Tom de Vries from comment #3) > Likewise, reversing the if-then-else order in gemm.f90 makes the testcase > fail on trunk without this patch. Minimal version: ... ! { dg-do run }

[Bug target/83920] [nvptx] bad predicate reset

2018-01-18 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #7 from Tom de Vries --- (In reply to Tom de Vries from comment #6) > (In reply to Tom de Vries from comment #3) > > Likewise, reversing the if-then-else order in gemm.f90 makes the testcase > > fail on trunk without this patch. > >

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #2 from Tom de Vries --- I've minimized mode-transitions.c to: ... #define n 32 int main (void) { int arr_a[n]; #pragma acc parallel copyout(arr_a) num_gangs(1) num_workers(1) vector_length(32) { #pragma acc loop vector for

[Bug target/83920] [8 Regression] [nvptx] bad predicate reset

2018-01-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 Tom de Vries changed: What|Removed |Added Keywords||openacc, patch CC|

[Bug target/83920] [8 Regression] [nvptx] bad predicate reset

2018-01-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 --- Comment #12 from Tom de Vries --- Author: vries Date: Fri Jan 19 16:29:41 2018 New Revision: 256894 URL: https://gcc.gnu.org/viewcvs?rev=256894&root=gcc&view=rev Log: [nvptx] Fix bug in jit bug workaround 2018-01-19 Tom de Vries

[Bug target/83920] [8 Regression] [nvptx] bad predicate reset

2018-01-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83920 Tom de Vries changed: What|Removed |Added Status|NEW |RESOLVED Version|unknown

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > This looks like another nvidia driver problem (with driver version 384.111). Confirmed. The empty branch > @ %r36 bra $L5; > $L5: is translated into: ...

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #4 from Tom de Vries --- Using this rudimentary workaround, I got the failing tests of this PR passing again: ... diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index afb0e4dd185..3ac28b3d903 100644 --- a/gcc/config/

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #5 from Tom de Vries --- Using the workaround, I get pretty good results: ... Running /home/vries/openacc/trunk/source-gcc/libgomp/testsuite/libgomp.c/c.exp ... FAIL: libgomp.c/target-32.c (test for excess errors) FAIL: libgomp.c/targ

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #7 from Tom de Vries --- (In reply to Jakub Jelinek from comment #6) > (In reply to Tom de Vries from comment #4) > > Using this rudimentary workaround, I got the failing tests of this PR > > passing again: > Shouldn't it be sufficie

[Bug target/80547] [6/7/8 Regression] nvptx back end ICE with OpenACC "reduction(OP:x)", "x = [...]"

2018-01-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80547 Tom de Vries changed: What|Removed |Added CC||vries at gcc dot gnu.org --- Comment #3

[Bug target/81352] [nvptx] trap placement for non-returning function call in vector-single mode

2018-01-21 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81352 --- Comment #1 from Tom de Vries --- Confirmed. This program (minimized from nested-function-1.f90) hangs at -O1 (with driver 384.111 on quadro m1200, for GOMP_NVPTX_JIT=-O[0-4]): ... program foo integer :: a(3,3), l, ll a = 0 !$acc paral

[Bug target/81352] [nvptx] trap placement for non-returning function call in vector-single mode

2018-01-21 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81352 --- Comment #2 from Tom de Vries --- Tentative patch: ... diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 69e55da8933..66131cbae7c 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -4057,7 +4057,12 @@

[Bug target/80547] [6/7/8 Regression] nvptx back end ICE with OpenACC "reduction(OP:x)", "x = [...]"

2018-01-21 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80547 --- Comment #4 from Tom de Vries --- (In reply to Tom de Vries from comment #3) > Using this tentative patch, the ICE is fixed and the test-case executes > successfully: Well, for nvptx target. For host fallback we have: ... x: 23 FAIL: libgomp

[Bug libgomp/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-22 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #8 from Tom de Vries --- Created attachment 43209 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43209&action=edit Patch inserting fake_nop only in case of branch-around-nothing

[Bug middle-end/70895] OpenACC: loop reduction does not work. Output is zero.

2018-01-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70895 Tom de Vries changed: What|Removed |Added CC||vries at gcc dot gnu.org --- Comment #9

[Bug target/81352] [nvptx] trap placement for non-returning function call in vector-single mode

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81352 --- Comment #3 from Tom de Vries --- Author: vries Date: Wed Jan 24 11:27:10 2018 New Revision: 257014 URL: https://gcc.gnu.org/viewcvs?rev=257014&root=gcc&view=rev Log: [nvptx, PR81352] Add exit insn after noreturn call for neutered threads in

[Bug libgomp/84020] New: [nvptx] Add GOMP_NVPTX_JIT=-O[0-4] in nvptx libgomp plugin

2018-01-24 Thread vries at gcc dot gnu.org
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- patch submitted at https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02004.html and approved for

[Bug libgomp/84020] [nvptx] Add GOMP_NVPTX_JIT=-O[0-4] in nvptx libgomp plugin

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84020 Tom de Vries changed: What|Removed |Added Keywords||openacc, openmp, patch Target Milestone

[Bug testsuite/84022] New: Run nvptx accel tests with GOMP_NVPTX_JIT=-O0

2018-01-24 Thread vries at gcc dot gnu.org
: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- With GOMP_NVPTX_JIT=-O[0-4] (see PR84020) approved, we can think of using this in the libgomp testing matrix in a more elaborate way that the occasional "{ dg-set-t

[Bug testsuite/84022] Run nvptx accel tests with GOMP_NVPTX_JIT=-O0

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84022 --- Comment #1 from Tom de Vries --- Created attachment 43231 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43231&action=edit Tentative patch, running nvptx accel tests with GOMP_NVPTX_JIT=-O0 in libgomp.{c,c++}

[Bug target/81352] [nvptx] trap placement for non-returning function call in vector-single mode

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81352 Tom de Vries changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |vries at gcc dot gnu.org Target

[Bug target/81352] [nvptx] trap placement for non-returning function call in vector-single mode

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81352 Tom de Vries changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/2018] Sqrt causes ice in emit_move_insn, at expr.c:2718

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=2018 --- Comment #3 from Tom de Vries --- Author: vries Date: Wed Jan 24 13:52:12 2018 New Revision: 257016 URL: https://gcc.gnu.org/viewcvs?rev=257016&root=gcc&view=rev Log: [nvptx, PR83589] Workaround for branch-around-nothing JIT bug 2018-01-24 T

[Bug target/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589 --- Comment #9 from Tom de Vries --- Author: vries Date: Wed Jan 24 13:52:12 2018 New Revision: 257016 URL: https://gcc.gnu.org/viewcvs?rev=257016&root=gcc&view=rev Log: [nvptx, PR83589] Workaround for branch-around-nothing JIT bug 2018-01-24

[Bug target/84025] New: [nvptx] Don't generate branch-around-nothing

2018-01-24 Thread vries at gcc dot gnu.org
onent: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- For PR83589 we have a non-invasive but non-minimal workaround for a JIT bug when translating a branch-around-nothing. We want to fix this better in stage1: b

[Bug target/83589] [nvptx] mode-transitions.c and private-variables.{c,f90} execution FAILs at GOMP_NVPTX_JIT=-O0

2018-01-24 Thread vries at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |vries at gcc dot gnu.org Target Milestone|--- |8.0 --- Comment #10 from Tom de Vries --- Patch with test-case committed. Filed PR84025 to work around this JIT bug in a more optimal way in

[Bug target/84028] New: [nvptx] nested-function-1.f90 hangs at -O1

2018-01-24 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- These openacc fails are left on trunk: ... WARNING: program timed out. FAIL: libgomp.oacc-fortran/nested-function-1.f90 -DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -O1

[Bug target/84028] [nvptx] nested-function-1.f90 hangs at -O1

2018-01-24 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84028 Tom de Vries changed: What|Removed |Added Keywords||openacc Target|

[Bug target/84035] New: [nvptx] Review jumps that are not JUMP_INSN

2018-01-25 Thread vries at gcc dot gnu.org
Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02028.html : ... > What are the nvptx conditional jumps > that aren't JUMP_INSN and why? That looks like a bad idea.

[Bug target/84028] [nvptx] nested-function-1.f90 hangs at -O1

2018-01-25 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84028 --- Comment #2 from Tom de Vries --- Author: vries Date: Thu Jan 25 10:25:14 2018 New Revision: 257046 URL: https://gcc.gnu.org/viewcvs?rev=257046&root=gcc&view=rev Log: [nvptx, PR84028] Add exit insn after noreturn call for neutered workers 20

[Bug target/84028] [nvptx] nested-function-1.f90 hangs at -O1

2018-01-25 Thread vries at gcc dot gnu.org
|--- |FIXED Assignee|unassigned at gcc dot gnu.org |vries at gcc dot gnu.org Target Milestone|--- |8.0 --- Comment #3 from Tom de Vries --- patch with test-case committed, marking resolved fixed.

[Bug libgomp/84041] New: [nvptx] Hang in for-3.c

2018-01-25 Thread vries at gcc dot gnu.org
: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- The following testcase, minimized from for-3.c hangs for nvptx (but passes with GOMP_NVPT_JIT=-O[01]): ... extern void abort (); #define CAT2(A, B) A

[Bug libgomp/84041] [nvptx] Hang in for-3.c

2018-01-25 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84041 --- Comment #1 from Tom de Vries --- So, using this patch: ... diff --git a/gcc/omp-expand.c b/gcc/omp-expand.c index 90e06310d81..af626d1568a 100644 --- a/gcc/omp-expand.c +++ b/gcc/omp-expand.c @@ -167,6 +167,7 @@ is_combined_parallel (struct o

[Bug libgomp/84041] [nvptx] Hang in for-3.c

2018-01-25 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84041 --- Comment #2 from Tom de Vries --- More minimal, using num_teams and num_threads: ... int main (void) { #pragma omp target teams num_teams(1) { unsigned int i; #pragma omp distribute parallel for schedule(dynamic,1) num_threads (2) f

[Bug objc/77428] incorrect 'set but not used' warning with @throw

2018-01-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77428 --- Comment #4 from Tom de Vries --- (In reply to Eric Gallager from comment #3) > (In reply to Tom de Vries from comment #1) > > Created attachment 39528 [details] > > tentative patch > > Have you sent this patch to the gcc-patches mailing list

[Bug libgomp/84086] New: [nvptx] segfault in instantiate_scev_r for libgomp.fortran/examples-4/simd-2.f90 -O1

2018-01-28 Thread vries at gcc dot gnu.org
Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- @r257131: ... FAIL: libgomp.fortran/examples-4/simd-2.f90 -O1

[Bug libgomp/84086] segfault in instantiate_scev_r for libgomp.fortran/examples-4/simd-2.f90 -O1

2018-01-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84086 Tom de Vries changed: What|Removed |Added Target|nvptx | Status|UNCONFIRMED

[Bug libgomp/84088] New: [nvptx] libgomp.oacc-fortran/declare-*.f90 execution fails

2018-01-28 Thread vries at gcc dot gnu.org
Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- @r257131, with GOMP_NVPTX_JIT=-O0, driver version 384.111, geforce 710, and cuda 8.0, kernel

[Bug libgomp/84088] [nvptx] libgomp.oacc-fortran/declare-*.f90 execution fails

2018-01-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84088 --- Comment #1 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > @r257131, with GOMP_NVPTX_JIT=-O0, driver version 384.111, geforce 710, and > cuda 8.0, kernel version 4.13.0-32-generic: Same result without GOMP_NVPTX_JIT=-O0.

[Bug libgomp/84088] [nvptx] libgomp.oacc-fortran/declare-*.f90 execution fails

2018-01-29 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84088 --- Comment #2 from Tom de Vries --- Minimal version: ... ! { dg-do run } module vars implicit none integer z !$acc declare create (z)

<    3   4   5   6   7   8   9   10   11   12   >